diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2020-01-19 16:09:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-19 16:09:25 +0100 |
commit | 4ff19c826072167417492277a22b16d767675f26 (patch) | |
tree | e38faffa057bf7556d3ed3ae7f0f35f19f8818cf /3rdparty/QtPropertyBrowser/src/qttreepropertybrowser.cpp | |
parent | b67ba18590f4a4ec5bb3f1062a8b1495e88f14bb (diff) | |
parent | 714769e1b83dd548967a1f6bc614b29abfc22bc1 (diff) | |
download | nextpnr-4ff19c826072167417492277a22b16d767675f26.tar.gz nextpnr-4ff19c826072167417492277a22b16d767675f26.tar.bz2 nextpnr-4ff19c826072167417492277a22b16d767675f26.zip |
Merge pull request #384 from YosysHQ/warning_fixes
Warning fixes
Diffstat (limited to '3rdparty/QtPropertyBrowser/src/qttreepropertybrowser.cpp')
-rw-r--r-- | 3rdparty/QtPropertyBrowser/src/qttreepropertybrowser.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/3rdparty/QtPropertyBrowser/src/qttreepropertybrowser.cpp b/3rdparty/QtPropertyBrowser/src/qttreepropertybrowser.cpp index bdca7dd5..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()) @@ -609,7 +609,7 @@ void QtTreePropertyBrowserPrivate::propertyInserted(QtBrowserItem *index, QtBrow m_indexToItem[index] = newItem; newItem->setFlags(newItem->flags() | Qt::ItemIsEditable); - m_treeWidget->setItemExpanded(newItem, true); + newItem->setExpanded(true); updateItem(newItem); } |