1 #ifndef SUIT_TOOLBUTTON_H
2 #define SUIT_TOOLBUTTON_H
4 #include <qtoolbutton.h>
9 // Purpose: to draw down arrow on toolbutton.
11 class SUIT_EXPORT SUIT_ToolButton : public QToolButton
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 );
26 //drawButton is redefined to draw DownArrow
27 void drawButton( QPainter * pQPainter);
29 // Add action into popup
30 void AddAction(QAction* theAction);
32 // Sets myPopup item with theIndex as current
33 void SetItem(int theIndex);
36 void OnSelectAction(int theItemID);
39 void mouseReleaseEvent (QMouseEvent * theEvent);
46 bool myChangeItemAfterClick;