Fix -Winconsistent-missing-override
This commit is contained in:
parent
c1570df362
commit
cca4395fe6
|
@ -107,7 +107,7 @@ else()
|
|||
endif()
|
||||
|
||||
# find c++utilities
|
||||
find_package(c++utilities 3.3.0 REQUIRED)
|
||||
find_package(c++utilities 4.0.0 REQUIRED)
|
||||
use_cpp_utilities()
|
||||
|
||||
# include modules to apply configuration
|
||||
|
|
|
@ -158,4 +158,10 @@ void RecentMenuManager::handleActionTriggered()
|
|||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
* \fn RecentMenuManager::fileSelected()
|
||||
* \brief Emitted after the user selected a file.
|
||||
* \remarks Only emitted when the selected file still existed; otherwise the user is ask whether to keep or delete the entry.
|
||||
*/
|
||||
|
||||
}
|
||||
|
|
|
@ -17,18 +17,13 @@ class LIB_EXPORT RecentMenuManager : public QObject
|
|||
public:
|
||||
RecentMenuManager(QMenu *menu, QObject *parent = nullptr);
|
||||
|
||||
public Q_SLOTS:
|
||||
void restore(const QStringList &savedEntries);
|
||||
QStringList save();
|
||||
|
||||
public Q_SLOTS:
|
||||
void addEntry(const QString &path);
|
||||
void clearEntries();
|
||||
|
||||
Q_SIGNALS:
|
||||
/*!
|
||||
* \brief Emitted after the user selected a file.
|
||||
* \remarks Only emitted when the selected file still existed; otherwise the user is ask whether to keep or delete the entry.
|
||||
*/
|
||||
void fileSelected(const QString &path);
|
||||
|
||||
private Q_SLOTS:
|
||||
|
|
|
@ -146,7 +146,7 @@ public:
|
|||
signals:
|
||||
void changed(QWidget *widget);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void emitResetProperty();
|
||||
|
||||
private:
|
||||
|
@ -164,19 +164,15 @@ class LIB_EXPORT ColorDelegate : public QItemDelegate
|
|||
public:
|
||||
explicit ColorDelegate(QObject *parent = nullptr);
|
||||
|
||||
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
|
||||
const QModelIndex &index) const;
|
||||
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
|
||||
void setEditorData(QWidget *ed, const QModelIndex &index) const;
|
||||
void setModelData(QWidget *ed, QAbstractItemModel *model,
|
||||
const QModelIndex &index) const;
|
||||
void setModelData(QWidget *ed, QAbstractItemModel *model, const QModelIndex &index) const;
|
||||
|
||||
void updateEditorGeometry(QWidget *ed,
|
||||
const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
void updateEditorGeometry(QWidget *ed, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
|
||||
virtual void paint(QPainter *painter, const QStyleOptionViewItem &opt,
|
||||
const QModelIndex &index) const;
|
||||
QSize sizeHint(const QStyleOptionViewItem &opt, const QModelIndex &index) const Q_DECL_OVERRIDE;
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &opt, const QModelIndex &index) const;
|
||||
QSize sizeHint(const QStyleOptionViewItem &opt, const QModelIndex &index) const;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue