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

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:
QAction::isSeparator()

Definition at line 694 of file qaction.cpp.

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

{
    Q_D(QAction);
    if (d->separator == b)
        return;

    d->separator = b;
    d->sendDataChanged();
}


Generated by  Doxygen 1.6.0   Back to index