24 #include <tqpushbutton.h>
26 #include <kstdguiitem.h>
40 TQ_PROPERTY(
int stdItem READ guiItm WRITE setGuiItm )
41 TQ_PROPERTY(
bool isDragEnabled READ isDragEnabled WRITE setDragEnabled)
48 KPushButton( TQWidget *parent,
const char *name=0 );
53 KPushButton(
const TQString &text, TQWidget *parent,
const char *name=0);
58 KPushButton(
const TQIconSet &icon,
const TQString &text,
59 TQWidget *parent,
const char *name=0 );
75 void setDragEnabled(
bool enable );
85 void setGuiItem(
const KGuiItem& item );
101 int guiItm()
const {
return (
int)guiItem(); }
107 void setIconSet(
const TQIconSet &iconSet );
112 void setText(
const TQString &text );
120 virtual TQDragObject * dragObject();
125 virtual void mousePressEvent( TQMouseEvent * );
129 virtual void mouseMoveEvent( TQMouseEvent * );
134 virtual void startDrag();
141 void slotSettingsChanged(
int category );
151 static bool s_useIcons;
154 virtual void virtual_hook(
int id,
void* data );
156 class KPushButtonPrivate;
157 KPushButtonPrivate *d;
An abstract class for GUI data such as ToolTip and Icon.