Krita Source Code Documentation
Loading...
Searching...
No Matches
rcombobox.h
Go to the documentation of this file.
1
27#ifndef RCOMBOBOX_H
28#define RCOMBOBOX_H
29
30// Qt includes
31
32#include <QWidget>
33#include <QComboBox>
34
35// Local includes
36
37
38
39namespace KDcrawIface
40{
41
42class RComboBox : public QWidget
43{
44
45 Q_OBJECT
46
47public:
48
49 RComboBox(QWidget* const parent=0);
50 ~RComboBox() override;
51
52 void setCurrentIndex(int d);
53 int currentIndex() const;
54
55 void setDefaultIndex(int d);
56 int defaultIndex() const;
57
58 QComboBox* combo() const;
59
60 void addItem(const QString& t, int index = -1);
61 void insertItem(int index, const QString& t);
62
63Q_SIGNALS:
64
65 void reset();
66 void activated(int);
68
69public Q_SLOTS:
70
71 void slotReset();
72
73private Q_SLOTS:
74
75 void slotItemActivated(int);
77
78private:
79
80 class Private;
81 Private* const d;
82};
83
84} // namespace KDcrawIface
85
86#endif /* RCOMBOBOX_H */
void insertItem(int index, const QString &t)
QComboBox * combo() const
void setCurrentIndex(int d)
Private *const d
Definition rcombobox.h:81
RComboBox(QWidget *const parent=0)
Definition rcombobox.cpp:64
void setDefaultIndex(int d)
int defaultIndex() const
void currentIndexChanged(int)
void addItem(const QString &t, int index=-1)
void slotCurrentIndexChanged(int)