diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-01 15:30:08 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-02 15:38:19 +0100 |
| commit | d708287c9e73db94a097b8151ba8f2b6c820a84d (patch) | |
| tree | 9c9435fd63dbaa5f9ffbba09dad468fe578e660f /src/modflagicondelegate.h | |
| parent | 3bb189a42724ad028402ee8d4418703350ff1a2c (diff) | |
Clean code and reorganize.
Diffstat (limited to 'src/modflagicondelegate.h')
| -rw-r--r-- | src/modflagicondelegate.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modflagicondelegate.h b/src/modflagicondelegate.h index ecab7e95..c6c7c3e8 100644 --- a/src/modflagicondelegate.h +++ b/src/modflagicondelegate.h @@ -9,7 +9,7 @@ class ModFlagIconDelegate : public IconDelegate public:
explicit ModFlagIconDelegate(QObject *parent = 0, int logicalIndex = -1, int compactSize = 120);
- virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
+ QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
static QList<QString> getIconsForFlags(
std::vector<ModInfo::EFlag> flags, bool compact);
@@ -20,8 +20,8 @@ public slots: void columnResized(int logicalIndex, int oldSize, int newSize);
protected:
- virtual QList<QString> getIcons(const QModelIndex &index) const;
- virtual size_t getNumIcons(const QModelIndex &index) const;
+ QList<QString> getIcons(const QModelIndex &index) const override;
+ size_t getNumIcons(const QModelIndex &index) const override;
private:
int m_LogicalIndex;
|
