diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-05-15 17:03:09 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-05-15 17:03:09 +0000 |
| commit | 77124f3f105ea3837022d20a49028309a211c4b0 (patch) | |
| tree | 1cde0a6cc51bdd1048eb3d68b104a4abe2991377 /pokemodr/PokeModrUI.cpp | |
| parent | 9b537cc98f99f9de4f153dd33f6561d5cd89b2a6 (diff) | |
| download | sigen-77124f3f105ea3837022d20a49028309a211c4b0.tar.gz sigen-77124f3f105ea3837022d20a49028309a211c4b0.tar.xz sigen-77124f3f105ea3837022d20a49028309a211c4b0.zip | |
[FIX] Refactored the apply/discard buttons out of the widgets
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@137 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/PokeModrUI.cpp')
| -rw-r--r-- | pokemodr/PokeModrUI.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pokemodr/PokeModrUI.cpp b/pokemodr/PokeModrUI.cpp index 74e68eb3..4df5f88d 100644 --- a/pokemodr/PokeModrUI.cpp +++ b/pokemodr/PokeModrUI.cpp @@ -284,7 +284,7 @@ void PokeModrUI::on_splitter_splitterMoved() void PokeModrUI::on_treePokemod_clicked(const QModelIndex& index) { - QWidget* widget = treePokemod->editorWidget(index); + ObjectUI* widget = treePokemod->editorWidget(index); if (widget) { if (formPanel->widget()) @@ -293,6 +293,9 @@ void PokeModrUI::on_treePokemod_clicked(const QModelIndex& index) return; } connect(widget, SIGNAL(changed(bool)), this, SLOT(setChangedTitle(bool))); + connect(widget, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool))); + connect(buttonApply, SIGNAL(clicked()), widget, SLOT(apply())); + connect(buttonDiscard, SIGNAL(clicked()), widget, SLOT(discard())); setChangedTitle(false); formPanel->setWidget(widget); formPanel->show(); |
