#include <QToolButton>
XGUI_Command::XGUI_Command(const QString& theId, QObject * parent, bool isCheckable)
- : QWidgetAction(parent), myCheckable(isCheckable)
+ : QWidgetAction(parent),
+ myCheckable(isCheckable)
{
setData(theId);
}
XGUI_Command::XGUI_Command(const QString& theId, const QIcon& icon, const QString& text,
QObject* parent, bool isCheckable)
- : QWidgetAction(parent), myCheckable(isCheckable)
+ : QWidgetAction(parent),
+ myCheckable(isCheckable)
{
setIcon(icon);
setText(text);
void XGUI_Command::connectTo(const QObject* theResiver, const char* theSlot)
{
- connect(this, SIGNAL(triggered(bool)), theResiver, theSlot);
+ connect(this, SIGNAL(triggered(bool)), theResiver, theSlot);
}
const QStringList& XGUI_Command::nestedCommands() const