Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void QAction::setSeparator ( bool  b  )  [inherited]

If b is true then this action will be considered a separator.

How a separator is represented depends on the widget it is inserted into. Under most circumstances the text, submenu, and icon will be ignored for separator actions.

See also:

Definition at line 654 of file qaction.cpp.

Referenced by QMenuBar::addSeparator(), QToolBar::addSeparator(), QMenu::addSeparator(), QAbstractFormBuilder::create(), QMenu::insertSeparator(), QMenuBar::insertSeparator(), and QToolBar::insertSeparator().

    if (d->separator == b)

    d->separator = b;

Generated by  Doxygen 1.6.0   Back to index