diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2020-01-18 15:34:58 +0100 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2020-01-18 15:34:58 +0100 |
commit | d281e1811334a244f9b18b82da50750a505f3dc5 (patch) | |
tree | 1bdb0c5568f840664d33e2845209c76470a57900 /3rdparty/QtPropertyBrowser | |
parent | 38e3b6338c18e77cb14dae594befdbc4f4cdf8d0 (diff) | |
download | nextpnr-d281e1811334a244f9b18b82da50750a505f3dc5.tar.gz nextpnr-d281e1811334a244f9b18b82da50750a505f3dc5.tar.bz2 nextpnr-d281e1811334a244f9b18b82da50750a505f3dc5.zip |
Warnings noticed by clang
Diffstat (limited to '3rdparty/QtPropertyBrowser')
-rw-r--r-- | 3rdparty/QtPropertyBrowser/src/qttreepropertybrowser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/3rdparty/QtPropertyBrowser/src/qttreepropertybrowser.cpp b/3rdparty/QtPropertyBrowser/src/qttreepropertybrowser.cpp index 408d7972..1ed0c983 100644 --- a/3rdparty/QtPropertyBrowser/src/qttreepropertybrowser.cpp +++ b/3rdparty/QtPropertyBrowser/src/qttreepropertybrowser.cpp @@ -132,9 +132,9 @@ public: protected: void mouseMoveEvent(QMouseEvent *event) override; void leaveEvent(QEvent *event) override; - void keyPressEvent(QKeyEvent *event); - void mousePressEvent(QMouseEvent *event); - void drawRow(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const; + void keyPressEvent(QKeyEvent *event) override; + void mousePressEvent(QMouseEvent *event) override; + void drawRow(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; Q_SIGNALS: void hoverPropertyChanged(QtBrowserItem *item); @@ -383,7 +383,7 @@ void QtPropertyEditorDelegate::paint(QPainter *painter, const QStyleOptionViewIt opt.palette.setColor(QPalette::Text, opt.palette.color(QPalette::BrightText)); } else { c = m_editorPrivate->calculatedBackgroundColor(m_editorPrivate->indexToBrowserItem(index)); - if (c.isValid() && (opt.features & QStyleOptionViewItemV2::Alternate)) + if (c.isValid() && (opt.features & QStyleOptionViewItem::Alternate)) c = c.lighter(112); } if (c.isValid()) |