1 #ifndef SUIT_TOOLBUTTON_H
2 #define SUIT_TOOLBUTTON_H
4 #include <qtoolbutton.h>
9 /*! To draw down arrow on toolbutton.*/
10 class SUIT_EXPORT SUIT_ToolButton : public QToolButton
15 /*! @name constructors*/
17 SUIT_ToolButton( QWidget *parent = 0,
19 bool changeItemAfterClick = true );
20 SUIT_ToolButton( const QPixmap & pm, const QString &textLabel,
21 const QString& grouptext,
22 QObject * receiver, const char* slot,
23 QToolBar * parent, const char* name = 0,
24 bool changeItemAfterClick = true );
27 void drawButton( QPainter * pQPainter);
29 void AddAction(QAction* theAction);
31 void SetItem(int theIndex);
34 void OnSelectAction(int theItemID);
37 void mouseReleaseEvent (QMouseEvent * theEvent);
44 bool myChangeItemAfterClick;