Don't close tags menu when toggling items (#15098)

The issue was resolved by using QAction::toggled signal instead of
QAction::triggered. In QT 5.15+ the latter signal causes a QMenu
to close, whereas the former does not. Closes #13492.
This commit is contained in:
tgregerson
2021-06-16 09:57:56 -05:00
committed by GitHub
parent 2bd2490539
commit e74ad86f14
5 changed files with 20 additions and 16 deletions

View File

@@ -41,7 +41,7 @@ public:
TriStateWidget(const QString &text, QWidget *parent);
void setCheckState(Qt::CheckState checkState);
void setCloseOnTriggered(bool enabled);
void setCloseOnInteraction(bool enabled);
signals:
void triggered(bool checked) const;
@@ -55,7 +55,7 @@ private:
void toggleCheckState();
bool m_closeOnTriggered;
bool m_closeOnInteraction;
Qt::CheckState m_checkState;
const QString m_text;
};