diff options
author | Timothy Pearson <[email protected]> | 2012-03-02 02:13:02 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-03-02 02:13:02 -0600 |
commit | 8bd291c0e8a9d8b6eec6f5217e4d5c2f1fd06b96 (patch) | |
tree | bf71d4bfa94d0561e80456400ae5fe2bb501fbd8 /kcontrol/access | |
parent | e8a1cdc01d38125bea12d5494db977ae6429919a (diff) | |
download | tdebase-8bd291c0e8a9d8b6eec6f5217e4d5c2f1fd06b96.tar.gz tdebase-8bd291c0e8a9d8b6eec6f5217e4d5c2f1fd06b96.zip |
Rename additional global functions and variables for tqt3
Diffstat (limited to 'kcontrol/access')
-rw-r--r-- | kcontrol/access/kaccess.cpp | 36 | ||||
-rw-r--r-- | kcontrol/access/main.cpp | 4 |
2 files changed, 20 insertions, 20 deletions
diff --git a/kcontrol/access/kaccess.cpp b/kcontrol/access/kaccess.cpp index be6b11204..188353d5c 100644 --- a/kcontrol/access/kaccess.cpp +++ b/kcontrol/access/kaccess.cpp @@ -107,7 +107,7 @@ KAccessApp::KAccessApp(bool allowStyles, bool GUIenabled) initMasks(); XkbStateRec state_return; - XkbGetState (qt_xdisplay(), XkbUseCoreKbd, &state_return); + XkbGetState (tqt_xdisplay(), XkbUseCoreKbd, &state_return); unsigned char latched = XkbStateMods (&state_return); unsigned char locked = XkbModLocks (&state_return); state = ((int)locked)<<8 | latched; @@ -138,23 +138,23 @@ void KAccessApp::readSettings() // select bell events if we need them int state = (_artsBell || _visibleBell) ? XkbBellNotifyMask : 0; - XkbSelectEvents(qt_xdisplay(), XkbUseCoreKbd, XkbBellNotifyMask, state); + XkbSelectEvents(tqt_xdisplay(), XkbUseCoreKbd, XkbBellNotifyMask, state); // deactivate system bell if not needed if (!_systemBell) - XkbChangeEnabledControls(qt_xdisplay(), XkbUseCoreKbd, XkbAudibleBellMask, 0); + XkbChangeEnabledControls(tqt_xdisplay(), XkbUseCoreKbd, XkbAudibleBellMask, 0); else - XkbChangeEnabledControls(qt_xdisplay(), XkbUseCoreKbd, XkbAudibleBellMask, XkbAudibleBellMask); + XkbChangeEnabledControls(tqt_xdisplay(), XkbUseCoreKbd, XkbAudibleBellMask, XkbAudibleBellMask); // keyboard ------------------------------------------------------------- config->setGroup("Keyboard"); // get keyboard state - XkbDescPtr xkb = XkbGetMap(qt_xdisplay(), 0, XkbUseCoreKbd); + XkbDescPtr xkb = XkbGetMap(tqt_xdisplay(), 0, XkbUseCoreKbd); if (!xkb) return; - if (XkbGetControls(qt_xdisplay(), XkbAllControlsMask, xkb) != Success) + if (XkbGetControls(tqt_xdisplay(), XkbAllControlsMask, xkb) != Success) return; // sticky keys @@ -279,10 +279,10 @@ void KAccessApp::readSettings() if (dialog == 0) requestedFeatures = features; // set state - XkbSetControls(qt_xdisplay(), XkbControlsEnabledMask | XkbMouseKeysAccelMask | XkbStickyKeysMask | XkbSlowKeysMask | XkbBounceKeysMask | XkbAccessXKeysMask | XkbAccessXTimeoutMask, xkb); + XkbSetControls(tqt_xdisplay(), XkbControlsEnabledMask | XkbMouseKeysAccelMask | XkbStickyKeysMask | XkbSlowKeysMask | XkbBounceKeysMask | XkbAccessXKeysMask | XkbAccessXTimeoutMask, xkb); // select AccessX events - XkbSelectEvents(qt_xdisplay(), XkbUseCoreKbd, XkbAllEventsMask, XkbAllEventsMask); + XkbSelectEvents(tqt_xdisplay(), XkbUseCoreKbd, XkbAllEventsMask, XkbAllEventsMask); if (!_artsBell && !_visibleBell && !_gestureConfirmation && !_kNotifyModifiers && !_kNotifyAccessX) { @@ -290,13 +290,13 @@ void KAccessApp::readSettings() // We will exit, but the features need to stay configured uint ctrls = XkbStickyKeysMask | XkbSlowKeysMask | XkbBounceKeysMask | XkbMouseKeysMask | XkbAudibleBellMask | XkbControlsNotifyMask; uint values = xkb->ctrls->enabled_ctrls & ctrls; - XkbSetAutoResetControls(qt_xdisplay(), ctrls, &ctrls, &values); + XkbSetAutoResetControls(tqt_xdisplay(), ctrls, &ctrls, &values); exit(0); } else { // reset them after program exit uint ctrls = XkbStickyKeysMask | XkbSlowKeysMask | XkbBounceKeysMask | XkbMouseKeysMask | XkbAudibleBellMask | XkbControlsNotifyMask; uint values = XkbAudibleBellMask; - XkbSetAutoResetControls(qt_xdisplay(), ctrls, &ctrls, &values); + XkbSetAutoResetControls(tqt_xdisplay(), ctrls, &ctrls, &values); } delete overlay; @@ -319,14 +319,14 @@ void KAccessApp::initMasks() { int mask = modifierKeys[i].mask; if (mask == 0) if (modifierKeys[i].keysym != 0) - mask = XkbKeysymToModifiers (qt_xdisplay(), modifierKeys[i].keysym); + mask = XkbKeysymToModifiers (tqt_xdisplay(), modifierKeys[i].keysym); else if (!strcmp(modifierKeys[i].name, "Win")) mask = KKeyNative::modX(KKey::WIN); else - mask = XkbKeysymToModifiers (qt_xdisplay(), XK_Mode_switch) - | XkbKeysymToModifiers (qt_xdisplay(), XK_ISO_Level3_Shift) - | XkbKeysymToModifiers (qt_xdisplay(), XK_ISO_Level3_Latch) - | XkbKeysymToModifiers (qt_xdisplay(), XK_ISO_Level3_Lock); + mask = XkbKeysymToModifiers (tqt_xdisplay(), XK_Mode_switch) + | XkbKeysymToModifiers (tqt_xdisplay(), XK_ISO_Level3_Shift) + | XkbKeysymToModifiers (tqt_xdisplay(), XK_ISO_Level3_Latch) + | XkbKeysymToModifiers (tqt_xdisplay(), XK_ISO_Level3_Lock); int bit = maskToBit (mask); if (bit != -1 && keys[bit] == -1) @@ -376,7 +376,7 @@ void KAccessApp::activeWindowChanged(WId wid) void KAccessApp::xkbStateNotify () { XkbStateRec state_return; - XkbGetState (qt_xdisplay(), XkbUseCoreKbd, &state_return); + XkbGetState (tqt_xdisplay(), XkbUseCoreKbd, &state_return); unsigned char latched = XkbStateMods (&state_return); unsigned char locked = XkbModLocks (&state_return); int mods = ((int)locked)<<8 | latched; @@ -430,7 +430,7 @@ void KAccessApp::xkbBellNotify(XkbBellNotifyEvent *event) WId id = _activeWindow; NETRect frame, window; - NETWinInfo net(qt_xdisplay(), id, desktop()->winId(), 0); + NETWinInfo net(tqt_xdisplay(), id, desktop()->winId(), 0); net.kdeGeometry(frame, window); @@ -733,7 +733,7 @@ void KAccessApp::xkbControlsNotify(XkbControlsNotifyEvent *event) else if ((enabled | disabled) == XkbStickyKeysMask) explanation = i18n("You pressed the Shift key 5 consecutive times or an application has requested to change this setting."); else if ((enabled | disabled) == XkbMouseKeysMask) { - TQString shortcut = mouseKeysShortcut(qt_xdisplay()); + TQString shortcut = mouseKeysShortcut(tqt_xdisplay()); if (!shortcut.isEmpty() && !shortcut.isNull()) explanation = i18n("You pressed %1 or an application has requested to change this setting.").arg(shortcut); } diff --git a/kcontrol/access/main.cpp b/kcontrol/access/main.cpp index a2dd0d5c7..48c9e8423 100644 --- a/kcontrol/access/main.cpp +++ b/kcontrol/access/main.cpp @@ -27,7 +27,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char * argv[] ) } kdDebug() << "Xlib XKB extension major=" << major << " minor=" << minor << endl; - // we need an application object for qt_xdisplay() + // we need an application object for tqt_xdisplay() KAccessApp app; // verify the X server has matching XKB extension @@ -35,7 +35,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char * argv[] ) int opcode_rtrn; int error_rtrn; int xkb_opcode; - if (!XkbQueryExtension(qt_xdisplay(), &opcode_rtrn, &xkb_opcode, &error_rtrn, + if (!XkbQueryExtension(tqt_xdisplay(), &opcode_rtrn, &xkb_opcode, &error_rtrn, &major, &minor)) { kdError() << "X server has not matching XKB extension" << endl; |