X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_MenuGroupPanel.cpp;h=4f4673470417dad3dcb02a3d1ac5f13080df9201;hb=d86c77d1c6210bbe04fbc3e5b00f9e212e1ec930;hp=00d131278ca54b0036977d42da2d37a1bac2587f;hpb=10c74b99318f5265c9a60a178932b03f69adfee5;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_MenuGroupPanel.cpp b/src/XGUI/XGUI_MenuGroupPanel.cpp index 00d131278..4f4673470 100644 --- a/src/XGUI/XGUI_MenuGroupPanel.cpp +++ b/src/XGUI/XGUI_MenuGroupPanel.cpp @@ -7,6 +7,7 @@ #include #include +#include XGUI_MenuGroupPanel::XGUI_MenuGroupPanel(QWidget *parent) : QWidget(parent), myNewRow(0), myNewCol(0), myMaxRow(1) @@ -61,9 +62,9 @@ void XGUI_MenuGroupPanel::resizeEvent(QResizeEvent* theEvent) XGUI_Command* XGUI_MenuGroupPanel::addFeature(const QString& theId, const QString& theTitle, const QString& theTip, const QIcon& theIcon, - const QKeySequence& theKeys) + const QKeySequence& theKeys, bool isCheckable) { - XGUI_Command* aCommand = new XGUI_Command(theId, theIcon, theTitle, this); + XGUI_Command* aCommand = new XGUI_Command(theId, theIcon, theTitle, this, isCheckable); aCommand->setToolTip(theTip); if (!theKeys.isEmpty()) aCommand->setShortcut(theKeys); @@ -80,4 +81,4 @@ XGUI_Command* XGUI_MenuGroupPanel::feature(const QString& theId) const if ((*aIt)->id() == theId) return (*aIt); return 0; -} \ No newline at end of file +}