From 446fcd9248d4cef74e905c485ef767a94a8463ec Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 24 Apr 2008 20:21:59 +0000 Subject: [ADD] More model classes [FIX] Minor things within the models git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@106 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/PokeModrUI.cpp | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'pokemodr/PokeModrUI.cpp') diff --git a/pokemodr/PokeModrUI.cpp b/pokemodr/PokeModrUI.cpp index d98729ce..9be12b3a 100644 --- a/pokemodr/PokeModrUI.cpp +++ b/pokemodr/PokeModrUI.cpp @@ -29,6 +29,7 @@ #include // Qt includes +#include #include #include @@ -40,7 +41,7 @@ #include // PokeModr includes -#include "PokeModTreeItem.h" +#include "PokemodTreeModel.h" // Header include #include "PokeModrUI.h" @@ -142,8 +143,9 @@ void PokeModrUI::openPokeMod(const KUrl& path) void PokeModrUI::savePokeMod() { - if (formPanel->widget()) - static_cast(formPanel->widget())->original()->pokemod()->save(); + // TODO: save pokemod +// if (formPanel->widget()) +// static_cast(formPanel->widget())->original()->pokemod()->save(); } void PokeModrUI::closePokeMod() @@ -184,10 +186,11 @@ void PokeModrUI::closeEvent(QCloseEvent* event) void PokeModrUI::setChangedTitle(const bool c) { - if (formPanel->widget()) - setWindowTitle(QString::fromUtf8("%1%2 - PokéModr").arg(static_cast(formPanel->widget())->original()->pokemod()->title()).arg(c ? "*" : "")); - else - setWindowTitle(QString::fromUtf8("PokéModr")); + // TODO: set the title +// if (formPanel->widget()) +// setWindowTitle(QString::fromUtf8("%1%2 - PokéModr").arg(static_cast(formPanel->widget())->original()->pokemod()->title()).arg(c ? "*" : "")); +// else +// setWindowTitle(QString::fromUtf8("PokéModr")); } void PokeModrUI::on_actionNew_triggered() @@ -228,10 +231,10 @@ void PokeModrUI::on_actionSaveAs_triggered() void PokeModrUI::on_actionQuit_triggered() { - while (m_pokemods.size()) - closePokeMod(); - if (m_clipboard) - delete m_clipboard; +// while (m_pokemods.size()) +// closePokeMod(); +// if (m_clipboard) +// delete m_clipboard; close(); } -- cgit