diff options
Diffstat (limited to 'pokemodr/TileDelegate.h')
-rw-r--r-- | pokemodr/TileDelegate.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/pokemodr/TileDelegate.h b/pokemodr/TileDelegate.h deleted file mode 100644 index 03cf22d6..00000000 --- a/pokemodr/TileDelegate.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2008 Ben Boeckel <MathStuf@gmail.com> - * - * 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 3 of the License, or - * (at your option) 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 __POKEMODR_TILEDELEGATE__ -#define __POKEMODR_TILEDELEGATE__ - -// Qt includes -#include <QItemDelegate> -#include <QObject> - -class TileDelegate : public QItemDelegate -{ - Q_OBJECT - - public: - TileDelegate(QObject* parent = 0) : - QItemDelegate(parent) - { - } - - QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem&, const QModelIndex&) const; - - void setEditorData(QWidget* editor, const QModelIndex& index) const; - void setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const; - - void updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex&) const; -}; - -#endif |