summaryrefslogtreecommitdiffstats
path: root/src/statusbarmessagelabel.h
diff options
context:
space:
mode:
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; }