diff options
| author | Brian Munro <brian.alexander.munro@gmail.com> | 2018-02-22 18:02:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-22 18:02:02 +0200 |
| commit | 28714f0eb800f2170acbf29dddce1582d20d6b8b (patch) | |
| tree | 0684c123db375336e0e03f0240155a12e744db16 /src/icondelegate.h | |
| parent | 0bcd752b2758bdb072b498ccc90905276be065e9 (diff) | |
| parent | 5e5c9c07291f6b09623d31c92b1fb61c4ede576e (diff) | |
Merge pull request #236 from SuperSandro2000/new_vfs_library
Update reame.md
Diffstat (limited to 'src/icondelegate.h')
| -rw-r--r-- | src/icondelegate.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/icondelegate.h b/src/icondelegate.h index 39694481..c0c28388 100644 --- a/src/icondelegate.h +++ b/src/icondelegate.h @@ -21,31 +21,25 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #define ICONDELEGATE_H
#include "modinfo.h"
-#include <QStyledItemDelegate>
#include <QAbstractProxyModel>
+#include <QStyledItemDelegate>
-
-class IconDelegate : public QStyledItemDelegate
-{
- Q_OBJECT
+class IconDelegate : public QStyledItemDelegate {
+ Q_OBJECT
public:
+ explicit IconDelegate(QObject* parent = 0);
- explicit IconDelegate(QObject *parent = 0);
-
- virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
+ virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
signals:
-
+
public slots:
private:
-
- virtual QList<QString> getIcons(const QModelIndex &index) const = 0;
- virtual size_t getNumIcons(const QModelIndex &index) const = 0;
-
+ virtual QList<QString> getIcons(const QModelIndex& index) const = 0;
+ virtual size_t getNumIcons(const QModelIndex& index) const = 0;
private:
-
};
#endif // ICONDELEGATE_H
|
