20 #ifndef QTXTOOLBUTTON_H
21 #define QTXTOOLBUTTON_H
25 #include <QStringList>
26 #include <QToolButton>
33 enum Move { NoMove=0, MoveUp, MoveDown, MoveFirst, MoveLast };
39 int addItem(
const QString&,
const QVariant& = QVariant() );
40 int addItem(
const QIcon&,
const QString&,
const QVariant& = QVariant() );
41 void addItems(
const QStringList& );
43 int addSeparator(
const QString& = QString() );
44 int addSeparator(
const QIcon&,
const QString& );
46 void removeItem(
int );
50 QVariant currentData()
const;
51 int currentIndex()
const;
52 QString currentText()
const;
54 QVariant itemData(
int )
const;
55 QIcon itemIcon(
int )
const;
56 QString itemText(
int )
const;
58 void setItemData(
int,
const QVariant& );
59 void setItemIcon(
int,
const QIcon& );
60 void setItemText(
int,
const QString& );
62 int findText(
const QString& );
67 void setCurrentIndex(
int );
68 void setCurrentText(
const QString& );
71 void keyPressEvent( QKeyEvent* );
72 void wheelEvent( QWheelEvent* );
75 void activated(
int );
76 void activated(
const QString& );
77 void currentIndexChanged(
int );
78 void currentIndexChanged(
const QString& );
79 void currentTextChanged(
const QString& );
82 void actionTriggered(
QAction* );
85 void internalUpdate();
87 void moveIndex( Move );
88 void emitCurrentChanged(
bool,
bool );
91 #endif // QTXTOOLBUTTON_H