diff options
author | Slávek Banko <[email protected]> | 2013-07-27 16:57:53 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-07-27 18:48:46 +0200 |
commit | 7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931 (patch) | |
tree | 4655c7263ca5c64d23d10167cb459dd9cb253815 /src/newstreamosd.h | |
parent | 88ea2b6cd4382627fb6efca9cc54825aee881d1e (diff) | |
download | tork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.tar.gz tork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.zip |
Initial TQt conversion
Diffstat (limited to 'src/newstreamosd.h')
-rw-r--r-- | src/newstreamosd.h | 56 |
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; |