summaryrefslogtreecommitdiff
path: root/widgets/CheckableItemComboBox.hpp
diff options
context:
space:
mode:
authortony mancill <tmancill@debian.org>2026-04-12 08:46:47 -0700
committertony mancill <tmancill@debian.org>2026-04-12 08:46:47 -0700
commitcd2dad3bc7ae0ee0a18b7b20a945009362ec3851 (patch)
tree5a622ec4193e9bc899f6499f936848a661be29cb /widgets/CheckableItemComboBox.hpp
parent558c0b9d6ecf70c5222e2069ece1fea3656c75d7 (diff)
parent291b3817bf0c7a742e9e17d42c94fc8c9530e40d (diff)
Merge branch 'debian/latest' into debian/trixie-backports
Diffstat (limited to 'widgets/CheckableItemComboBox.hpp')
-rw-r--r--[-rwxr-xr-x]widgets/CheckableItemComboBox.hpp74
1 files changed, 37 insertions, 37 deletions
diff --git a/widgets/CheckableItemComboBox.hpp b/widgets/CheckableItemComboBox.hpp
index 21223536..21e75116 100755..100644
--- a/widgets/CheckableItemComboBox.hpp
+++ b/widgets/CheckableItemComboBox.hpp
@@ -1,37 +1,37 @@
-#ifndef CHECKABLE_ITEM_COMBO_BOX_HPP__
-#define CHECKABLE_ITEM_COMBO_BOX_HPP__
-
-#include <QScopedPointer>
-
-#include "LazyFillComboBox.hpp"
-
-class QStandardItemModel;
-class QStandardItem;
-
-/**
- * @brief QComboBox with support of checkboxes
- * http://stackoverflow.com/questions/8422760/combobox-of-checkboxes
- */
-class CheckableItemComboBox
- : public LazyFillComboBox
-{
- Q_OBJECT
-
-public:
- explicit CheckableItemComboBox (QWidget * parent = nullptr);
- QStandardItem * addCheckItem (QString const& label, QVariant const& data, Qt::CheckState checkState);
-
-protected:
- bool eventFilter (QObject *, QEvent *) override;
-
-private:
- void update_text();
-
- Q_SLOT void model_data_changed ();
- Q_SLOT void item_pressed (QModelIndex const&);
-
-private:
- QScopedPointer<QStandardItemModel> model_;
-};
-
-#endif
+#ifndef CHECKABLE_ITEM_COMBO_BOX_HPP__
+#define CHECKABLE_ITEM_COMBO_BOX_HPP__
+
+#include <QScopedPointer>
+
+#include "LazyFillComboBox.hpp"
+
+class QStandardItemModel;
+class QStandardItem;
+
+/**
+ * @brief QComboBox with support of checkboxes
+ * http://stackoverflow.com/questions/8422760/combobox-of-checkboxes
+ */
+class CheckableItemComboBox
+ : public LazyFillComboBox
+{
+ Q_OBJECT
+
+public:
+ explicit CheckableItemComboBox (QWidget * parent = nullptr);
+ QStandardItem * addCheckItem (QString const& label, QVariant const& data, Qt::CheckState checkState);
+
+protected:
+ bool eventFilter (QObject *, QEvent *) override;
+
+private:
+ void update_text();
+
+ Q_SLOT void model_data_changed ();
+ Q_SLOT void item_pressed (QModelIndex const&);
+
+private:
+ QScopedPointer<QStandardItemModel> model_;
+};
+
+#endif