diff options
author | Darrell Anderson <[email protected]> | 2012-04-13 01:04:19 -0500 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2012-04-13 01:04:19 -0500 |
commit | 008eae43da364c9a910416652cf277c4ef5895c9 (patch) | |
tree | 5f9060ce2395120f3ce327d444b035a6ece978a4 /krdc/vnc | |
parent | 2bc02dc6e21b9f38a76c6733a0931c7ebc944547 (diff) | |
download | tdenetwork-008eae43da364c9a910416652cf277c4ef5895c9.tar.gz tdenetwork-008eae43da364c9a910416652cf277c4ef5895c9.zip |
Fix inadvertent "TQ" changes.
Diffstat (limited to 'krdc/vnc')
-rw-r--r-- | krdc/vnc/kvncview.cpp | 14 | ||||
-rw-r--r-- | krdc/vnc/kvncview.h | 2 | ||||
-rw-r--r-- | krdc/vnc/threads.cpp | 12 |
3 files changed, 14 insertions, 14 deletions
diff --git a/krdc/vnc/kvncview.cpp b/krdc/vnc/kvncview.cpp index 6f4066e6..c332afbd 100644 --- a/krdc/vnc/kvncview.cpp +++ b/krdc/vnc/kvncview.cpp @@ -103,7 +103,7 @@ KVncView::KVncView(TQWidget *parent, "pics/pointcursormask.png")); m_cursor = TQCursor(cursorBitmap, cursorMask); - if ((quality != TQUALITY_UNKNOWN) || + if ((quality != QUALITY_UNKNOWN) || !encodings.isNull()) configureApp(quality, encodings); } @@ -160,21 +160,21 @@ void KVncView::configureApp(Quality q, const TQString specialEncodings) { appData.shareDesktop = 1; appData.viewOnly = 0; - if (q == TQUALITY_LOW) { + if (q == QUALITY_LOW) { appData.useBGR233 = 1; appData.encodingsString = "background copyrect softcursor tight zlib hextile raw"; appData.compressLevel = -1; appData.qualityLevel = 1; appData.dotCursor = 1; } - else if (q == TQUALITY_MEDIUM) { + else if (q == QUALITY_MEDIUM) { appData.useBGR233 = 0; appData.encodingsString = "background copyrect softcursor tight zlib hextile raw"; appData.compressLevel = -1; appData.qualityLevel = 7; appData.dotCursor = 1; } - else if ((q == TQUALITY_HIGH) || (q == TQUALITY_UNKNOWN)) { + else if ((q == QUALITY_HIGH) || (q == QUALITY_UNKNOWN)) { appData.useBGR233 = 0; appData.encodingsString = "copyrect softcursor hextile raw"; appData.compressLevel = -1; @@ -281,11 +281,11 @@ bool KVncView::start() { Quality quality; if (ci == 0) - quality = TQUALITY_HIGH; + quality = QUALITY_HIGH; else if (ci == 1) - quality = TQUALITY_MEDIUM; + quality = QUALITY_MEDIUM; else if (ci == 2) - quality = TQUALITY_LOW; + quality = QUALITY_LOW; else { kdDebug() << "Unknown quality"; return false; diff --git a/krdc/vnc/kvncview.h b/krdc/vnc/kvncview.h index c2c137b6..daaf30b1 100644 --- a/krdc/vnc/kvncview.h +++ b/krdc/vnc/kvncview.h @@ -80,7 +80,7 @@ public: KVncView(TQWidget* parent=0, const char *name=0, const TQString &host = TQString(""), int port = 5900, const TQString &password = TQString(), - Quality quality = TQUALITY_UNKNOWN, + Quality quality = QUALITY_UNKNOWN, DotCursorState dotCursorState = DOT_CURSOR_AUTO, const TQString &encodings = TQString()); ~KVncView(); diff --git a/krdc/vnc/threads.cpp b/krdc/vnc/threads.cpp index 097e1367..cb33b46c 100644 --- a/krdc/vnc/threads.cpp +++ b/krdc/vnc/threads.cpp @@ -33,9 +33,9 @@ static const int MAXIMUM_WAIT_PERIOD = 8000; // time to postpone incremental updates that have not been requested explicitly static const int POSTPONED_INCRRTQ_WAIT_PERIOD = 110; -static const int MOUSEPRESS_TQUEUE_SIZE = 5; -static const int MOUSEMOVE_TQUEUE_SIZE = 3; -static const int KEY_TQUEUE_SIZE = 8192; +static const int MOUSEPRESS_QUEUE_SIZE = 5; +static const int MOUSEMOVE_QUEUE_SIZE = 3; +static const int KEY_QUEUE_SIZE = 8192; ControllerThread::ControllerThread(KVncView *v, WriterThread &wt, volatile bool &quitFlag) : @@ -246,12 +246,12 @@ void WriterThread::queueMouseEvent(int x, int y, int buttonMask) { m_lock.unlock(); return; } - if (m_mouseEventNum >= MOUSEPRESS_TQUEUE_SIZE) { + if (m_mouseEventNum >= MOUSEPRESS_QUEUE_SIZE) { m_lock.unlock(); return; } if ((m_lastMouseEvent.buttons == buttonMask) && - (m_mouseEventNum >= MOUSEMOVE_TQUEUE_SIZE)) { + (m_mouseEventNum >= MOUSEMOVE_QUEUE_SIZE)) { m_lock.unlock(); return; } @@ -272,7 +272,7 @@ void WriterThread::queueKeyEvent(unsigned int k, bool down) { e.e.k.down = down; m_lock.lock(); - if (m_keyEventNum >= KEY_TQUEUE_SIZE) { + if (m_keyEventNum >= KEY_QUEUE_SIZE) { m_lock.unlock(); return; } |