summaryrefslogtreecommitdiffstats
path: root/ksim/library/led.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
commita2277b6bc715464e83882b90c2a058139b8a6b54 (patch)
treeab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /ksim/library/led.h
parentd3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff)
downloadtdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz
tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip
TQt4 port kdeutils
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksim/library/led.h')
-rw-r--r--ksim/library/led.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/ksim/library/led.h b/ksim/library/led.h
index a3ef85e..1d0cb4f 100644
--- a/ksim/library/led.h
+++ b/ksim/library/led.h
@@ -34,7 +34,7 @@ namespace KSim
* @short led using gkrellm themes
* @author Robbie Ward <linuxphreak@gmx.co.uk>
*/
- class KDE_EXPORT Led : public QPixmap
+ class KDE_EXPORT Led : public TQPixmap
{
public:
enum Type { First = 0, Second };
@@ -46,7 +46,7 @@ namespace KSim
* @param ImageName is the image to display
* the image's height is divided by 4 and each item is used for send in,
* send out, receive in and receive out
- * @param parent is the parent widget
+ * @param tqparent is the tqparent widget
* @param name is the object instance name
*/
Led(Type type, const TQString &imageName);
@@ -88,7 +88,7 @@ namespace KSim
*/
Type type() const;
/**
- * Force the Led to repaint its state
+ * Force the Led to tqrepaint its state
*/
void update();
@@ -107,35 +107,36 @@ namespace KSim
class KDE_EXPORT LedLabel : public KSim::Progress
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructs a KSim::LedLabel.
*
* @param type is the theme type
* @param label is the default text to display
- * @param parent is the parent widget
+ * @param tqparent is the tqparent widget
* @see KSim::ThemeLoader
*/
LedLabel(int max, int type, const TQString &label,
- TQWidget *parent, const char *name = 0, WFlags fl = 0);
+ TQWidget *tqparent, const char *name = 0, WFlags fl = 0);
/**
* Constructs a KSim::LedLabel.
*
* @param type is the theme type
* @param label is the default text to display
- * @param parent is the parent widget
+ * @param tqparent is the tqparent widget
* @see KSim::ThemeLoader
*/
- LedLabel(int max, int type, TQWidget *parent,
+ LedLabel(int max, int type, TQWidget *tqparent,
const char *name = 0, WFlags fl = 0);
/**
* Constructs a KSim::LedLabel.
*
* @param label is the default text to display
- * @param parent is the parent widget
+ * @param tqparent is the tqparent widget
* @see KSim::ThemeLoader
*/
- LedLabel(int max, TQWidget *parent,
+ LedLabel(int max, TQWidget *tqparent,
const char *name = 0, WFlags fl = 0);
/**
* destructor for KSim::LedLabel.
@@ -149,7 +150,7 @@ namespace KSim
/**
* reimplemented for internal reasons
*/
- virtual TQSize sizeHint() const;
+ virtual TQSize tqsizeHint() const;
public slots:
/**
@@ -183,7 +184,7 @@ namespace KSim
virtual void resizeEvent(TQResizeEvent *);
private:
- void layoutLeds();
+ void tqlayoutLeds();
void init();
class Private;