Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

Obsolete Members for QCategoryManager

The following class members are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions


Member Function Documentation

bool QCategoryManager::addCategory ( const QString & id, const QString & trLabel, const QString & icon = QString(), bool forceGlobal = false, bool isSystem = false )

Creates a new category with category id id, the user-supplied label trLabel and icon icon in the scope of the QCategoryManager. If forceGlobal is true, when the category is created it will be created as a global category (ie with no scope). If the scope the class was created with is null the category will be global also. If isSystem is set to true, will set the system flag on the category, and will make it unmodifiable, and unremovable.

For creating categories on behalf of the user use the add() function. For creating system categories use the ensureSystemCategory() function.

Returns true if the new category is successfully added. Otherwise returns false.

bool QCategoryManager::setSystem ( const QString & id )

Sets the category with category id id to be a system category. Returns true on success; otherwise returns false. Doing this will make the category read only and undeleteable. Use with care.

System categories should be created using the ensureSystemCategory() function.

See also isSystem().


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3