summaryrefslogtreecommitdiffstats
path: root/src/k3bjobprogressosd_mod.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/k3bjobprogressosd_mod.h')
-rw-r--r--src/k3bjobprogressosd_mod.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/k3bjobprogressosd_mod.h b/src/k3bjobprogressosd_mod.h
index 8b4ffb1..123f43a 100644
--- a/src/k3bjobprogressosd_mod.h
+++ b/src/k3bjobprogressosd_mod.h
@@ -16,11 +16,11 @@
#ifndef _K3B_JOB_PROGRESS_OSD_H_
#define _K3B_JOB_PROGRESS_OSD_H_
-#include <qwidget.h>
-#include <qpixmap.h>
+#include <tqwidget.h>
+#include <tqpixmap.h>
-class QPaintEvent;
-class QMouseEvent;
+class TQPaintEvent;
+class TQMouseEvent;
class KConfigBase;
/**
@@ -28,23 +28,23 @@ class KConfigBase;
*
* Insprired by Amarok's OSD (I also took a bit of their code. :)
*/
-class K3bJobProgressOSD : public QWidget
+class K3bJobProgressOSD : public TQWidget
{
Q_OBJECT
public:
- K3bJobProgressOSD( QWidget* parent = 0, const char* name = 0 );
+ K3bJobProgressOSD( TQWidget* parent = 0, const char* name = 0 );
~K3bJobProgressOSD();
int screen() const { return m_screen; }
- const QPoint& position() const { return m_position; }
+ const TQPoint& position() const { return m_position; }
void readSettings( KConfigBase* );
void saveSettings( KConfigBase* );
public slots:
void setScreen( int );
- void setText( const QString& );
+ void setText( const TQString& );
void setProgress( int );
/**
@@ -53,34 +53,34 @@ class K3bJobProgressOSD : public QWidget
* If for example the x coordinate is bigger than half the screen
* width it refers to the left edge of the widget.
*/
- void setPosition( const QPoint& );
+ void setPosition( const TQPoint& );
void show();
protected:
- void paintEvent( QPaintEvent* );
- void mousePressEvent( QMouseEvent* );
- void mouseReleaseEvent( QMouseEvent* );
- void mouseMoveEvent( QMouseEvent* );
+ void paintEvent( TQPaintEvent* );
+ void mousePressEvent( TQMouseEvent* );
+ void mouseReleaseEvent( TQMouseEvent* );
+ void mouseMoveEvent( TQMouseEvent* );
void renderOSD();
void refresh();
- void reposition( QSize size = QSize() );
+ void reposition( TQSize size = TQSize() );
private:
/**
* Ensure that the position is inside m_screen
*/
- QPoint fixupPosition( const QPoint& p );
+ TQPoint fixupPosition( const TQPoint& p );
static const int s_outerMargin = 15;
- QPixmap m_osdBuffer;
+ TQPixmap m_osdBuffer;
bool m_dirty;
- QString m_text;
+ TQString m_text;
int m_progress;
bool m_dragging;
- QPoint m_dragOffset;
+ TQPoint m_dragOffset;
int m_screen;
- QPoint m_position;
+ TQPoint m_position;
};
#endif