diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-21 14:19:21 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-03 03:26:34 +0200 |
commit | 0251b10c2e9a79e857e5729453d375d09fa8336e (patch) | |
tree | 11223ad7a12c1bdbc81b9bb698618b0386a1ce5e /klipper/clipboardpoll.cpp | |
parent | a5b44fbe44e58478ad74d819c5f4c36926d31872 (diff) | |
download | tdebase-0251b10c2e9a79e857e5729453d375d09fa8336e.tar.gz tdebase-0251b10c2e9a79e857e5729453d375d09fa8336e.zip |
Rename obsolete tq methods to standard names
(cherry picked from commit b492b550f35c84160958775c14ea7037c5b12181)
Diffstat (limited to 'klipper/clipboardpoll.cpp')
-rw-r--r-- | klipper/clipboardpoll.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/klipper/clipboardpoll.cpp b/klipper/clipboardpoll.cpp index 38ef196e4..2f7ce4ddb 100644 --- a/klipper/clipboardpoll.cpp +++ b/klipper/clipboardpoll.cpp @@ -109,8 +109,8 @@ ClipboardPoll::ClipboardPoll( TQWidget* parent ) void ClipboardPoll::initPolling() { - connect( kapp->tqclipboard(), TQT_SIGNAL( selectionChanged() ), TQT_SLOT(qtSelectionChanged())); - connect( kapp->tqclipboard(), TQT_SIGNAL( dataChanged() ), TQT_SLOT( qtClipboardChanged() )); + connect( kapp->clipboard(), TQT_SIGNAL( selectionChanged() ), TQT_SLOT(qtSelectionChanged())); + connect( kapp->clipboard(), TQT_SIGNAL( dataChanged() ), TQT_SLOT( qtClipboardChanged() )); connect( &timer, TQT_SIGNAL( timeout()), TQT_SLOT( timeout())); timer.start( 1000, false ); selection.atom = XA_PRIMARY; @@ -147,7 +147,7 @@ bool ClipboardPoll::x11Event( XEvent* e ) if( xfixes_event_base != -1 && e->type == xfixes_event_base + XFixesSelectionNotify ) { XFixesSelectionNotifyEvent* ev = reinterpret_cast< XFixesSelectionNotifyEvent* >( e ); - if( ev->selection == XA_PRIMARY && !kapp->tqclipboard()->ownsSelection()) + if( ev->selection == XA_PRIMARY && !kapp->clipboard()->ownsSelection()) { #ifdef NOISY_KLIPPER_ kdDebug() << "SELECTION CHANGED (XFIXES)" << endl; @@ -155,7 +155,7 @@ bool ClipboardPoll::x11Event( XEvent* e ) SET_QT_X_TIME(ev->timestamp); emit clipboardChanged( true ); } - else if( ev->selection == xa_clipboard && !kapp->tqclipboard()->ownsClipboard()) + else if( ev->selection == xa_clipboard && !kapp->clipboard()->ownsClipboard()) { #ifdef NOISY_KLIPPER_ kdDebug() << "CLIPBOARD CHANGED (XFIXES)" << endl; @@ -218,13 +218,13 @@ void ClipboardPoll::updateQtOwnership( SelectionData& data ) void ClipboardPoll::timeout() { KlipperWidget::updateTimestamp(); - if( !kapp->tqclipboard()->ownsSelection() && checkTimestamp( selection ) ) { + if( !kapp->clipboard()->ownsSelection() && checkTimestamp( selection ) ) { #ifdef NOISY_KLIPPER_ kdDebug() << "SELECTION CHANGED" << endl; #endif emit clipboardChanged( true ); } - if( !kapp->tqclipboard()->ownsClipboard() && checkTimestamp( clipboard ) ) { + if( !kapp->clipboard()->ownsClipboard() && checkTimestamp( clipboard ) ) { #ifdef NOISY_KLIPPER_ kdDebug() << "CLIPBOARD CHANGED" << endl; #endif |