diff --git a/src/AppGui.cpp b/src/AppGui.cpp index 0bcb3dc2..b2115a2a 100644 --- a/src/AppGui.cpp +++ b/src/AppGui.cpp @@ -139,6 +139,7 @@ bool AppGui::initialize() mainWindowHide(); } #else + Q_UNUSED(this) Q_UNUSED(reason) #endif }); diff --git a/src/CredentialModelFilter.h b/src/CredentialModelFilter.h index f8a90a4d..301deb6d 100644 --- a/src/CredentialModelFilter.h +++ b/src/CredentialModelFilter.h @@ -22,8 +22,8 @@ class CredentialModelFilter : public QSortFilterProxyModel QModelIndexList getNextRow(const QModelIndex &rowIdx); protected: - virtual bool filterAcceptsRow(int iSrcRow, const QModelIndex &srcParent) const; - virtual bool lessThan(const QModelIndex &srcLeft, const QModelIndex &srcRight) const; + virtual bool filterAcceptsRow(int iSrcRow, const QModelIndex &srcParent) const override; + virtual bool lessThan(const QModelIndex &srcLeft, const QModelIndex &srcRight) const override; private: bool acceptRow(int iSrcRow, const QModelIndex &srcParent) const; diff --git a/src/ItemDelegate.h b/src/ItemDelegate.h index 6029729e..e623798b 100644 --- a/src/ItemDelegate.h +++ b/src/ItemDelegate.h @@ -12,7 +12,8 @@ class ItemDelegate : public QStyledItemDelegate { public: explicit ItemDelegate(QWidget* parent = nullptr); - virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const; + virtual QSize sizeHint(const QStyleOptionViewItem &option, + const QModelIndex &index) const override; virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; void emitSizeHintChanged(const QModelIndex &index); diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 5060e7a3..f4323b64 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -96,7 +96,7 @@ MainWindow::MainWindow(WSClient *client, DbMasterController *mc, QWidget *parent refreshAppLangCb(); ui->checkBoxLongPress->setChecked(s.value("settings/long_press_cancel", true).toBool()); - connect(ui->checkBoxLongPress, &QCheckBox::toggled, [this](bool checked) + connect(ui->checkBoxLongPress, &QCheckBox::toggled, [](bool checked) { QSettings settings; settings.setValue("settings/long_press_cancel", checked);