From 03e7dcdcf8624a6c2a5d25e25484cd5d8c7df74b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 23 Feb 2014 12:59:26 +0300 Subject: Move questsmodel into gui/models directory. --- src/gui/models/questsmodel.h | 40 ++++++++++++++++++++++++++++++++++++++++ src/gui/windows/questswindow.cpp | 15 +-------------- 2 files changed, 41 insertions(+), 14 deletions(-) create mode 100644 src/gui/models/questsmodel.h 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 . + */ + +#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() : -- cgit v1.2.3-60-g2f50