summaryrefslogtreecommitdiffstats
path: root/src/newstreamosd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/newstreamosd.h')
-rw-r--r--src/newstreamosd.h56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/newstreamosd.h b/src/newstreamosd.h
index 9675968..95705a9 100644
--- a/src/newstreamosd.h
+++ b/src/newstreamosd.h
@@ -16,20 +16,20 @@
#ifndef _K3B_JOB_PROGRESS_OSD_H_
#define _K3B_JOB_PROGRESS_OSD_H_
-#include <qwidget.h>
-#include <qpixmap.h>
-#include <qlistview.h>
-#include <qtoolbutton.h>
+#include <ntqwidget.h>
+#include <ntqpixmap.h>
+#include <ntqlistview.h>
+#include <ntqtoolbutton.h>
#include "statgraph.h"
#include "chart.h"
-class QPaintEvent;
-class QMouseEvent;
+class TQPaintEvent;
+class TQMouseEvent;
class KConfigBase;
-class QHBox;
-class QListView;
-class QToolButton;
+class TQHBox;
+class TQListView;
+class TQToolButton;
class StatGraph;
class Chart;
class torkView;
@@ -38,7 +38,7 @@ class torkView;
*
* Insprired by Amarok's OSD (I also took a bit of their code. :)
*/
-class StreamOSD : public QWidget
+class StreamOSD : public TQWidget
{
Q_OBJECT
@@ -47,7 +47,7 @@ class StreamOSD : public QWidget
~StreamOSD();
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* );
@@ -56,11 +56,11 @@ class StreamOSD : public QWidget
void requestHideMonitor();
void requestToggleKDE();
void requestChangeID();
- void closeStream(const QString &);
+ void closeStream(const TQString &);
public slots:
void setScreen( int );
- void setText( const QString& );
+ void setText( const TQString& );
void setProgress( int );
void slotHideMonitor();
void slotToggleKDE();
@@ -72,43 +72,43 @@ class StreamOSD : 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 contextMenuRequested( QListViewItem *, const QPoint & point, int );
+ void contextMenuRequested( TQListViewItem *, const TQPoint & point, int );
void slotCloseStream();
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 renderNonTorOSD();
void refresh();
- void reposition( QSize size = QSize() );
+ void reposition( TQSize size = TQSize() );
public:
- QListView* infoList;
+ TQListView* infoList;
StatGraph* m_graphIn;
StatGraph* m_graphOut;
Chart* chart;
- QToolButton* toggleKDE;
- QToolButton* changeID;
+ TQToolButton* toggleKDE;
+ TQToolButton* changeID;
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;
torkView* m_parent;
bool m_tortraffic;