19
19
#include <kpushbutton.h>
20
20
#include "k3b_export.h"
26
* A pushbutton with delayed popu pmenu support just like the KToolBarButton
28
class LIBK3B_EXPORT K3bPushButton : public KPushButton
34
* Default constructor.
36
K3bPushButton( QWidget* parent = 0 );
39
* Constructor, that sets the button-text to @p text
41
K3bPushButton( const QString& text, QWidget* parent = 0 );
44
* Constructor, that sets an icon and the button-text to @p text
46
/* K3bPushButton( const QIcon& icon, const QString& text, */
27
* A pushbutton with delayed popu pmenu support just like the KToolBarButton
29
class LIBK3B_EXPORT PushButton : public KPushButton
35
* Default constructor.
37
PushButton( QWidget* parent = 0 );
40
* Constructor, that sets the button-text to @p text
42
PushButton( const QString& text, QWidget* parent = 0 );
45
* Constructor, that sets an icon and the button-text to @p text
47
/* PushButton( const QIcon& icon, const QString& text, */
47
48
/* QWidget* parent = 0 ); */
50
* Constructor that takes a KGuiItem for the text, the icon, the tooltip
51
* and the what's this help
53
K3bPushButton( const KGuiItem& item, QWidget* parent = 0 );
56
* Destructs the button.
61
* The popup menu will show if the button is pressed down for about half a second
62
* or if the mouse is moved while pressed just like the KToolBarButton.
64
void setDelayedPopupMenu( QMenu* );
67
virtual bool eventFilter( QObject*, QEvent* );
70
void slotDelayedPopup();
51
* Constructor that takes a KGuiItem for the text, the icon, the tooltip
52
* and the what's this help
54
PushButton( const KGuiItem& item, QWidget* parent = 0 );
57
* Destructs the button.
62
* The popup menu will show if the button is pressed down for about half a second
63
* or if the mouse is moved while pressed just like the KToolBarButton.
65
void setDelayedPopupMenu( QMenu* );
68
virtual bool eventFilter( QObject*, QEvent* );
71
void slotDelayedPopup();