Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef QXTCHECKCOMBOBOX_H
00026 #define QXTCHECKCOMBOBOX_H
00027
00028 #include <QComboBox>
00029 #include "qxtnamespace.h"
00030 #include "qxtglobal.h"
00031 #include "qxtpimpl.h"
00032
00033 class QxtCheckComboBoxPrivate;
00034
00035 class QXT_GUI_EXPORT QxtCheckComboBox : public QComboBox
00036 {
00037 Q_OBJECT
00038 QXT_DECLARE_PRIVATE(QxtCheckComboBox);
00039 Q_PROPERTY(QString separator READ separator WRITE setSeparator)
00040 Q_PROPERTY(QString defaultText READ defaultText WRITE setDefaultText)
00041 Q_PROPERTY(QStringList checkedItems READ checkedItems WRITE setCheckedItems)
00042
00043 public:
00044 explicit QxtCheckComboBox(QWidget* parent = 0);
00045 virtual ~QxtCheckComboBox();
00046
00047 virtual void hidePopup();
00048
00049 QString defaultText() const;
00050 void setDefaultText(const QString& text);
00051
00052 Qt::CheckState itemCheckState(int index) const;
00053 void setItemCheckState(int index, Qt::CheckState state);
00054
00055 QString separator() const;
00056 void setSeparator(const QString& separator);
00057
00058 QStringList checkedItems() const;
00059
00060 public Q_SLOTS:
00061 void setCheckedItems(const QStringList& items);
00062
00063 Q_SIGNALS:
00064 void checkedItemsChanged(const QStringList& items);
00065 };
00066
00067 #endif // QXTCHECKCOMBOBOX_H