diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /krdc/vnc/kvncview.h | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krdc/vnc/kvncview.h')
-rw-r--r-- | krdc/vnc/kvncview.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/krdc/vnc/kvncview.h b/krdc/vnc/kvncview.h index c0f9fba3..a9de2378 100644 --- a/krdc/vnc/kvncview.h +++ b/krdc/vnc/kvncview.h @@ -19,8 +19,8 @@ #define KVNCVIEW_H #include "kremoteview.h" -#include <qcursor.h> -#include <qmap.h> +#include <tqcursor.h> +#include <tqmap.h> #include "pointerlatencyometer.h" #include "hostpreferences.h" @@ -36,54 +36,54 @@ private: ControllerThread m_cthread; WriterThread m_wthread; volatile bool m_quitFlag; // if set: all threads should die ASAP - QMutex m_framebufferLock; + TQMutex m_framebufferLock; bool m_enableFramebufferLocking; bool m_enableClientCursor; - QSize m_framebufferSize; + TQSize m_framebufferSize; bool m_scaling; bool m_remoteMouseTracking; bool m_viewOnly; int m_buttonMask; - QMap<unsigned int,bool> m_mods; + TQMap<unsigned int,bool> m_mods; - QString m_host; + TQString m_host; int m_port; QClipboard *m_cb; bool m_dontSendCb; - QCursor m_cursor; + TQCursor m_cursor; DotCursorState m_cursorState; PointerLatencyOMeter m_plom; - void mouseEvent(QMouseEvent*); - unsigned long toKeySym(QKeyEvent *k); + void mouseEvent(TQMouseEvent*); + unsigned long toKeySym(TQKeyEvent *k); bool checkLocalKRfb(); - void paintMessage(const QString &msg); + void paintMessage(const TQString &msg); void showDotCursorInternal(); void unpressModifiers(); protected: - void paintEvent(QPaintEvent*); - void customEvent(QCustomEvent*); - void mousePressEvent(QMouseEvent*); - void mouseDoubleClickEvent(QMouseEvent*); - void mouseReleaseEvent(QMouseEvent*); - void mouseMoveEvent(QMouseEvent*); - void wheelEvent(QWheelEvent *); - void focusOutEvent(QFocusEvent *); + void paintEvent(TQPaintEvent*); + void customEvent(TQCustomEvent*); + void mousePressEvent(TQMouseEvent*); + void mouseDoubleClickEvent(TQMouseEvent*); + void mouseReleaseEvent(TQMouseEvent*); + void mouseMoveEvent(TQMouseEvent*); + void wheelEvent(TQWheelEvent *); + void focusOutEvent(TQFocusEvent *); bool x11Event(XEvent*); public: - KVncView(QWidget* parent=0, const char *name=0, - const QString &host = QString(""), int port = 5900, - const QString &password = QString::null, + KVncView(TQWidget* parent=0, const char *name=0, + const TQString &host = TQString(""), int port = 5900, + const TQString &password = TQString::null, Quality quality = QUALITY_UNKNOWN, DotCursorState dotCursorState = DOT_CURSOR_AUTO, - const QString &encodings = QString::null); + const TQString &encodings = TQString::null); ~KVncView(); - QSize sizeHint(); + TQSize sizeHint(); void drawRegion(int x, int y, int w, int h); void lockFramebuffer(); void unlockFramebuffer(); @@ -91,15 +91,15 @@ public: virtual bool scaling() const; virtual bool supportsScaling() const; virtual bool supportsLocalCursor() const; - virtual QSize framebufferSize(); + virtual TQSize framebufferSize(); void setRemoteMouseTracking(bool s); bool remoteMouseTracking(); - void configureApp(Quality q, const QString specialEncodings = QString::null); + void configureApp(Quality q, const TQString specialEncodings = TQString::null); void showDotCursor(DotCursorState state); DotCursorState dotCursorState() const; virtual void startQuitting(); virtual bool isQuitting(); - virtual QString host(); + virtual TQString host(); virtual int port(); virtual bool start(); |