diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-07-24 03:10:05 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-07-24 03:10:05 -0500 |
commit | 5ee7b67829cd6083b95dc26804f446ec6d75ebcc (patch) | |
tree | 68c1b2d23692332c78517b80eda32bf3cbe995b5 /experimental/tqtinterface/qt4/src/kernel/tqapplication_x11.cpp | |
parent | 2f4ee8ef5d1fe9a8daa9d342d71b021e6a25ca01 (diff) | |
download | tde-5ee7b67829cd6083b95dc26804f446ec6d75ebcc.tar.gz tde-5ee7b67829cd6083b95dc26804f446ec6d75ebcc.zip |
Fixed FTBFS due to prior commit
Diffstat (limited to 'experimental/tqtinterface/qt4/src/kernel/tqapplication_x11.cpp')
-rw-r--r-- | experimental/tqtinterface/qt4/src/kernel/tqapplication_x11.cpp | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/experimental/tqtinterface/qt4/src/kernel/tqapplication_x11.cpp b/experimental/tqtinterface/qt4/src/kernel/tqapplication_x11.cpp index e7cf92f9a..aaa9faffb 100644 --- a/experimental/tqtinterface/qt4/src/kernel/tqapplication_x11.cpp +++ b/experimental/tqtinterface/qt4/src/kernel/tqapplication_x11.cpp @@ -1791,8 +1791,8 @@ void qt_init_internal( int *argcptr, char **argv, #ifndef TQT_NO_XSYNC // Try to initialize SYNC extension on the connected display int xsync_major, xsync_minor; - if ( XSyncQueryExtension( appDpy, &xsync_eventbase, &xsync_errorbase ) && - XSyncInitialize( appDpy, &xsync_major, &xsync_minor ) ) { + if ( XSyncQueryExtension( QX11Info::display(), &xsync_eventbase, &xsync_errorbase ) && + XSyncInitialize( QX11Info::display(), &xsync_major, &xsync_minor ) ) { qt_use_xsync = TRUE; } #endif @@ -2758,6 +2758,26 @@ void qt_leave_modal( TQWidget *widget ) } } +int qt_x11_translateButtonState( int s ) +{ + int bst = 0; + if ( s & Button1Mask ) + bst |= Qt::LeftButton; + if ( s & Button2Mask ) + bst |= Qt::MidButton; + if ( s & Button3Mask ) + bst |= Qt::RightButton; + if ( s & ShiftMask ) + bst |= TQt::ShiftButton; + if ( s & ControlMask ) + bst |= TQt::ControlButton; + if ( s & qt_alt_mask ) + bst |= TQt::AltButton; + if ( s & qt_meta_mask ) + bst |= TQt::MetaButton; + return bst; +} + #else // USE_QT4 /***************************************************************************** |