diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-05-28 22:38:24 -0400 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-05-28 22:38:24 -0400 |
| commit | 156e8386329eb032ae7e9fef4de49595e225248b (patch) | |
| tree | a63e1ee8cf694b71f7a56b5f23d069b20ac48a56 /sigmodr/SigmodrUI.cpp | |
| parent | 5f587c8985c8fe9d1ef60d1ca975f5c44ca46ebd (diff) | |
| download | sigen-156e8386329eb032ae7e9fef4de49595e225248b.tar.gz sigen-156e8386329eb032ae7e9fef4de49595e225248b.tar.xz sigen-156e8386329eb032ae7e9fef4de49595e225248b.zip | |
Remove the context menu from the widgets and use a button instead
Diffstat (limited to 'sigmodr/SigmodrUI.cpp')
| -rw-r--r-- | sigmodr/SigmodrUI.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sigmodr/SigmodrUI.cpp b/sigmodr/SigmodrUI.cpp index aad5d75b..6d11f34e 100644 --- a/sigmodr/SigmodrUI.cpp +++ b/sigmodr/SigmodrUI.cpp @@ -75,6 +75,7 @@ SigmodrUI::SigmodrUI(QWidget* parent) : setAcceptDrops(true); buttonApply->setIcon(KIcon("dialog-ok-apply")); buttonReset->setIcon(KIcon("edit-undo")); + buttonValidate->setIcon(KIcon("script-error")); splitter->setSizes(QList<int>() << SigmodrPreferences::treeWidth() << SigmodrPreferences::panelWidth()); connect(buttonApply, SIGNAL(clicked()), this, SLOT(update())); KCmdLineArgs* args = KCmdLineArgs::parsedArgs(); @@ -490,6 +491,7 @@ void SigmodrUI::on_treeSigmod_clicked(const QModelIndex& index) connect(editor, SIGNAL(saved()), treeSigmod, SLOT(doItemsLayout())); connect(buttonApply, SIGNAL(clicked()), editor, SLOT(apply())); connect(buttonReset, SIGNAL(clicked()), editor, SLOT(discard())); + connect(buttonValidate, SIGNAL(clicked()), editor, SLOT(validate())); m_editedIndex = index; setChangedTitle(treeSigmod->dirty(treeSigmod->game(index))); formPanel->setWidget(editor); |
