summaryrefslogtreecommitdiff
path: root/widgets/LazyFillComboBox.hpp
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2022-08-23 10:23:31 +0200
committerChristoph Berg <christoph.berg@credativ.de>2022-08-23 10:23:31 +0200
commit0e579a45e2e5823f90e2632073749583cd15fa0d (patch)
tree5e709e13d41c8ea0da0968fb6c4566057b4b7909 /widgets/LazyFillComboBox.hpp
parent28d1767618141cd6481de2e93e36e3dfa555d4b4 (diff)
parent2d1068e60bce7ae1fff11623454900e8cee956b1 (diff)
Update upstream source from tag 'upstream/2.6.0_rc3+repack'
Update to upstream version '2.6.0~rc3+repack' with Debian dir 9ee8bc3a4b60bb88f4d57c7d1f2d37dbc1632144
Diffstat (limited to 'widgets/LazyFillComboBox.hpp')
-rwxr-xr-xwidgets/LazyFillComboBox.hpp108
1 files changed, 54 insertions, 54 deletions
diff --git a/widgets/LazyFillComboBox.hpp b/widgets/LazyFillComboBox.hpp
index 7ac828fe..7cff2505 100755
--- a/widgets/LazyFillComboBox.hpp
+++ b/widgets/LazyFillComboBox.hpp
@@ -1,54 +1,54 @@
-#ifndef LAZY_FILL_COMBO_BOX_HPP__
-#define LAZY_FILL_COMBO_BOX_HPP__
-
-#include <QComboBox>
-
-class QWidget;
-
-//
-// Class LazyFillComboBox
-//
-// QComboBox derivative that signals show and hide of the pop up list.
-//
-class LazyFillComboBox
- : public QComboBox
-{
- Q_OBJECT
-
-public:
- Q_SIGNAL void about_to_show_popup ();
- Q_SIGNAL void popup_hidden ();
-
- explicit LazyFillComboBox (QWidget * parent = nullptr)
- : QComboBox {parent}
- {
- }
-
-#if QT_VERSION >= QT_VERSION_CHECK (5, 12, 0)
- void showPopup () override
- {
- Q_EMIT about_to_show_popup ();
- QComboBox::showPopup ();
- }
-
- void hidePopup () override
- {
- 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
+#ifndef LAZY_FILL_COMBO_BOX_HPP__
+#define LAZY_FILL_COMBO_BOX_HPP__
+
+#include <QComboBox>
+
+class QWidget;
+
+//
+// Class LazyFillComboBox
+//
+// QComboBox derivative that signals show and hide of the pop up list.
+//
+class LazyFillComboBox
+ : public QComboBox
+{
+ Q_OBJECT
+
+public:
+ Q_SIGNAL void about_to_show_popup ();
+ Q_SIGNAL void popup_hidden ();
+
+ explicit LazyFillComboBox (QWidget * parent = nullptr)
+ : QComboBox {parent}
+ {
+ }
+
+#if QT_VERSION >= QT_VERSION_CHECK (5, 12, 0)
+ void showPopup () override
+ {
+ Q_EMIT about_to_show_popup ();
+ QComboBox::showPopup ();
+ }
+
+ void hidePopup () override
+ {
+ 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