mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 05:38:46 -05:00
Compatibility with older Qt versions
This commit is contained in:
parent
8d088cf4f5
commit
9b1695285d
@ -24,6 +24,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK (5, 12, 0)
|
||||
void showPopup () override
|
||||
{
|
||||
Q_EMIT about_to_show_popup ();
|
||||
@ -35,6 +36,19 @@ public:
|
||||
QComboBox::hidePopup ();
|
||||
Q_EMIT popup_hidden ();
|
||||
}
|
||||
#else
|
||||
void mousePressEvent (QMouseEvent * e) override
|
||||
{
|
||||
Q_EMIT about_to_show_popup ();
|
||||
QComboBox::mousePressEvent (e);
|
||||
}
|
||||
|
||||
void mouseReleaseEvent (QMouseEvent * e) override
|
||||
{
|
||||
QComboBox::mouseReleaseEvent (e);
|
||||
Q_EMIT popup_hidden ();
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user