diff options
Diffstat (limited to 'dev-db/tora/files/tora-clipboard.patch')
-rw-r--r-- | dev-db/tora/files/tora-clipboard.patch | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/dev-db/tora/files/tora-clipboard.patch b/dev-db/tora/files/tora-clipboard.patch new file mode 100644 index 000000000000..b7f3dfa4f9aa --- /dev/null +++ b/dev-db/tora/files/tora-clipboard.patch @@ -0,0 +1,86 @@ +Index: qtlegacy/qtmultilineedit.cpp +=================================================================== +RCS file: /cvsroot/tora/tora/qtlegacy/qtmultilineedit.cpp,v +retrieving revision 1.6 +diff -u -r1.6 qtmultilineedit.cpp +--- qtlegacy/qtmultilineedit.cpp 24 Jul 2003 02:26:48 -0000 1.6 ++++ qtlegacy/qtmultilineedit.cpp 26 Aug 2003 08:34:32 -0000 +@@ -1348,7 +1348,7 @@ + case Key_Y: + redo(); + break; +-#if defined (_WS_WIN_) ++#if defined (Q_WS_WIN) + case Key_Insert: + copy(); + #endif +@@ -1379,7 +1379,7 @@ + end( e->state() & ShiftButton ); + break; + case Key_Delete: +-#if defined (_WS_WIN_) ++#if defined (Q_WS_WIN) + if ( e->state() & ShiftButton ) { + cut(); + break; +@@ -1401,7 +1401,7 @@ + case Key_Tab: + insert( e->text() ); + break; +-#if defined (_WS_WIN_) ++#if defined (Q_WS_WIN) + case Key_Insert: + if ( e->state() & ShiftButton ) + paste(); +@@ -2376,13 +2376,13 @@ + turnMark( FALSE ); + + #ifndef QT_NO_CLIPBOARD +-#if defined(_WS_X11_) ++#if defined(Q_WS_X11) + else if ( echoMode() == Normal ) + copy(); + #endif + + if ( e->button() == MidButton && !readOnly ) { +-#if defined(_WS_X11_) ++#if defined(Q_WS_X11) + paste(); // Will repaint the cursor line. + #else + #ifndef QT_NO_COMPAT +@@ -2845,7 +2845,7 @@ + turnMark( markDragX != markAnchorX || markDragY != markAnchorY ); + + #ifndef QT_NO_CLIPBOARD +-#if defined(_WS_X11_) ++#if defined(Q_WS_X11) + if ( echoMode() == Normal ) + copy(); + #endif +@@ -2876,7 +2876,7 @@ + { + QString t = markedText(); + if ( !t.isEmpty() && echoMode() == Normal ) { +-#if defined(_WS_X11_) ++#if defined(Q_WS_X11) + disconnect( QApplication::clipboard(), SIGNAL(dataChanged()), this, 0); + #endif + #if defined(_OS_WIN32_) +@@ -2924,7 +2924,7 @@ + + void QtMultiLineEdit::clipboardChanged() + { +-#if defined(_WS_X11_) ++#if defined(Q_WS_X11) + disconnect( QApplication::clipboard(), SIGNAL(dataChanged()), + this, SLOT(clipboardChanged()) ); + turnMark( FALSE ); +@@ -4195,7 +4195,7 @@ + switch ( ke->key() ) { + case Key_A: + case Key_E: +-#if defined (_WS_WIN_) ++#if defined (Q_WS_WIN) + case Key_Insert: + #endif + case Key_X: |