diff options
author | Timothy Pearson <[email protected]> | 2013-01-26 13:17:43 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-26 13:17:43 -0600 |
commit | cb68a7857c80661d242ee5527ec6f99dc3f79fa7 (patch) | |
tree | a3b54203ca6bce0e8e1dc5107dc9653db246a281 /tdemid/tdemidbutton.h | |
parent | 7534907d3759a8c520eeb9a701b316d891c63bdf (diff) | |
download | tdemultimedia-cb68a7857c80661d242ee5527ec6f99dc3f79fa7.tar.gz tdemultimedia-cb68a7857c80661d242ee5527ec6f99dc3f79fa7.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdemid/tdemidbutton.h')
-rw-r--r-- | tdemid/tdemidbutton.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tdemid/tdemidbutton.h b/tdemid/tdemidbutton.h new file mode 100644 index 00000000..ca48d9fb --- /dev/null +++ b/tdemid/tdemidbutton.h @@ -0,0 +1,32 @@ +#include <tqpushbutton.h> +#include <tqpainter.h> + +class KMidButton : public TQPushButton +{ +protected: + + TQPixmap pixmap1,pixmap2; + + virtual void drawButton(TQPainter *paint) + { + if ((isOn())&&(!pixmap1.isNull())) paint->drawPixmap(0,0,pixmap1); + else if ((!isOn())&&(!pixmap2.isNull())) paint->drawPixmap(0,0,pixmap2); + }; + +public: + + KMidButton (TQWidget *parent,const char *name) : TQPushButton (parent,name) + { + }; + + ~KMidButton() + { + }; + + void setPixmaps(const TQPixmap& p1, const TQPixmap& p2) + { + pixmap1=p1; + pixmap2=p2; + }; + +}; |