summaryrefslogtreecommitdiffstats
path: root/src/statusbarmessagelabel.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-27 00:40:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-27 00:40:29 +0000
commit7a741e43ff09e70396a918956219b8316c48e522 (patch)
tree3d0f60eccd59786cea7236db2d5c4c1f25874515 /src/statusbarmessagelabel.h
parenta48487ef0c329434b58b6f920111bb0999f1109e (diff)
downloaddolphin-7a741e43ff09e70396a918956219b8316c48e522.tar.gz
dolphin-7a741e43ff09e70396a918956219b8316c48e522.zip
TQt4 port Dolphin
This enables compilation under Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/dolphin@1229359 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/statusbarmessagelabel.h')
-rw-r--r--src/statusbarmessagelabel.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/src/statusbarmessagelabel.h b/src/statusbarmessagelabel.h
index c743f85..0c7c31f 100644
--- a/src/statusbarmessagelabel.h
+++ b/src/statusbarmessagelabel.h
@@ -21,11 +21,11 @@
#ifndef STATUSBARMESSAGELABEL_H
#define STATUSBARMESSAGELABEL_H
-#include <qwidget.h>
-#include <qpixmap.h>
-#include <qstring.h>
+#include <tqwidget.h>
+#include <tqpixmap.h>
+#include <tqstring.h>
#include <dolphinstatusbar.h>
-class QTimer;
+class TQTimer;
/**
* @brief Represents a message text label as part of the status bar.
@@ -37,30 +37,31 @@ class QTimer;
*
* @author Peter Penz
*/
-class StatusBarMessageLabel : public QWidget
+class StatusBarMessageLabel : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- StatusBarMessageLabel(QWidget* parent);
+ StatusBarMessageLabel(TQWidget* tqparent);
virtual ~StatusBarMessageLabel();
void setType(DolphinStatusBar::Type type);
DolphinStatusBar::Type type() const { return m_type; }
- void setText(const QString& text);
- const QString& text() const { return m_text; }
+ void setText(const TQString& text);
+ const TQString& text() const { return m_text; }
// TODO: maybe a better approach is possible with the size hint
void setMinimumTextHeight(int min);
int minimumTextHeight() const { return m_minTextHeight; }
protected:
- /** @see QWidget::paintEvent */
- virtual void paintEvent(QPaintEvent* event);
+ /** @see TQWidget::paintEvent */
+ virtual void paintEvent(TQPaintEvent* event);
- /** @see QWidget::resizeEvent */
- virtual void resizeEvent(QResizeEvent* event);
+ /** @see TQWidget::resizeEvent */
+ virtual void resizeEvent(TQResizeEvent* event);
private slots:
void timerDone();
@@ -78,12 +79,12 @@ private:
State m_state;
int m_illumination;
int m_minTextHeight;
- QTimer* m_timer;
- QString m_text;
- QPixmap m_pixmap;
+ TQTimer* m_timer;
+ TQString m_text;
+ TQPixmap m_pixmap;
- QColor mixColors(const QColor& c1,
- const QColor& c2,
+ TQColor mixColors(const TQColor& c1,
+ const TQColor& c2,
int percent) const;
int pixmapGap() const { return 3; }