KDEUI
kanimatedbutton.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KANIMATEDBUTTON_H
00020 #define KANIMATEDBUTTON_H
00021
00022 #include <kdeui_export.h>
00023 #include <QtGui/QToolButton>
00024
00038 class KDEUI_EXPORT KAnimatedButton : public QToolButton
00039 {
00040 Q_OBJECT
00041 Q_PROPERTY( QString icons READ icons WRITE setIcons )
00042
00043 public:
00049 explicit KAnimatedButton(QWidget *parent = 0L);
00050
00054 virtual ~KAnimatedButton();
00055
00059 int iconDimensions() const;
00060
00064 QString icons() const;
00065
00072 void setIcons( const QString& icons );
00073
00074 public Q_SLOTS:
00078 void start();
00079
00083 void stop();
00084
00091 void updateIcons();
00092
00093 Q_SIGNALS:
00094 void clicked();
00095
00096 protected Q_SLOTS:
00097 void slotTimerUpdate();
00098
00099 private:
00100 class KAnimatedButtonPrivate *const d;
00101
00102 Q_DISABLE_COPY(KAnimatedButton)
00103 };
00104
00105 #endif // KANIMATEDBUTTON_H