diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-23 12:59:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-23 12:59:26 +0300 |
commit | 03e7dcdcf8624a6c2a5d25e25484cd5d8c7df74b (patch) | |
tree | 20fe1cc2b0d4fce9b0d42517b0bf8a7fcefae725 | |
parent | a82f24070bc8d11f0fd487a18df0c73c63a0742c (diff) | |
download | manaplus-03e7dcdcf8624a6c2a5d25e25484cd5d8c7df74b.tar.gz manaplus-03e7dcdcf8624a6c2a5d25e25484cd5d8c7df74b.tar.bz2 manaplus-03e7dcdcf8624a6c2a5d25e25484cd5d8c7df74b.tar.xz manaplus-03e7dcdcf8624a6c2a5d25e25484cd5d8c7df74b.zip |
Move questsmodel into gui/models directory.
-rw-r--r-- | src/gui/models/questsmodel.h | 40 | ||||
-rw-r--r-- | src/gui/windows/questswindow.cpp | 15 |
2 files changed, 41 insertions, 14 deletions
diff --git a/src/gui/models/questsmodel.h b/src/gui/models/questsmodel.h new file mode 100644 index 000000000..d9421f402 --- /dev/null +++ b/src/gui/models/questsmodel.h @@ -0,0 +1,40 @@ +/* + * The ManaPlus Client + * Copyright (C) 2012-2014 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef GUI_MODELS_QUESTSMODEL_H +#define GUI_MODELS_QUESTSMODEL_H + +#include "gui/models/extendednamesmodel.h" + +class QuestsModel final : public ExtendedNamesModel +{ + public: + QuestsModel() : + ExtendedNamesModel() + { + } + + A_DELETE_COPY(QuestsModel) + + ~QuestsModel() + { } +}; + +#endif // GUI_MODELS_QUESTSMODEL_H diff --git a/src/gui/windows/questswindow.cpp b/src/gui/windows/questswindow.cpp index 1ee78e563..319bf5df0 100644 --- a/src/gui/windows/questswindow.cpp +++ b/src/gui/windows/questswindow.cpp @@ -30,6 +30,7 @@ #include "gui/gui.h" #include "gui/models/extendednamesmodel.h" +#include "gui/models/questsmodel.h" #include "gui/widgets/browserbox.h" #include "gui/widgets/button.h" @@ -89,20 +90,6 @@ struct QuestItem final bool broken; }; -class QuestsModel final : public ExtendedNamesModel -{ - public: - QuestsModel() : - ExtendedNamesModel() - { - } - - A_DELETE_COPY(QuestsModel) - - ~QuestsModel() - { } -}; - struct QuestEffect final { QuestEffect() : |