diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-08-18 16:22:39 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-08-18 16:22:39 +0200 |
commit | 0af498ec7d2af08ea8e01b54cc29fae9975b8c91 (patch) | |
tree | 4803270143afa7788a254b7791da7bd605a661a3 /kkbswitch/kbswitchapp.cpp | |
parent | 43e0b376e766d90e825697d0aa419c41007324a6 (diff) | |
download | kkbswitch-0af498ec7d2af08ea8e01b54cc29fae9975b8c91.tar.gz kkbswitch-0af498ec7d2af08ea8e01b54cc29fae9975b8c91.zip |
Initial TQt conversion
Diffstat (limited to 'kkbswitch/kbswitchapp.cpp')
-rw-r--r-- | kkbswitch/kbswitchapp.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kkbswitch/kbswitchapp.cpp b/kkbswitch/kbswitchapp.cpp index 9dab46a..7798be3 100644 --- a/kkbswitch/kbswitchapp.cpp +++ b/kkbswitch/kbswitchapp.cpp @@ -45,20 +45,20 @@ KBSwitchApp::KBSwitchApp() #endif m_intf = new KBSwitchIntf(this, &m_kbconf); - QObject::connect(m_intf, SIGNAL(nextGroupSelected()), this, SLOT(slotSelectNextGroup())); - QObject::connect(m_intf, SIGNAL(groupSelected(int)), this, SLOT(slotGroupSelected(int))); + TQObject::connect(m_intf, SIGNAL(nextGroupSelected()), this, SLOT(slotSelectNextGroup())); + TQObject::connect(m_intf, SIGNAL(groupSelected(int)), this, SLOT(slotGroupSelected(int))); - QObject::connect(&m_xkb, SIGNAL(layoutChanged()), this, SLOT(reconfigure())); - QObject::connect(&m_xkb, SIGNAL(groupChanged(int)), this, SLOT(slotXkbGroupChanged(int))); + TQObject::connect(&m_xkb, SIGNAL(layoutChanged()), this, SLOT(reconfigure())); + TQObject::connect(&m_xkb, SIGNAL(groupChanged(int)), this, SLOT(slotXkbGroupChanged(int))); m_force_group_setting = false; int start_group = m_kbconf.default_groupno(); m_trayicon = new KBSwitchTrayIcon(&m_kbconf); - QObject::connect(m_trayicon, SIGNAL(groupSelected(int)), this, + TQObject::connect(m_trayicon, SIGNAL(groupSelected(int)), this, SLOT(slotGroupSelected(int))); - QObject::connect(m_trayicon, SIGNAL(clicked()), this, SLOT(slotSelectNextGroup())); - QObject::connect(m_trayicon, SIGNAL(preferencesSelected()), this, + TQObject::connect(m_trayicon, SIGNAL(clicked()), this, SLOT(slotSelectNextGroup())); + TQObject::connect(m_trayicon, SIGNAL(preferencesSelected()), this, SLOT(slotPreferences())); if (start_group != m_xkb.getGroupNo()) { @@ -144,10 +144,10 @@ void KBSwitchApp::slotSelectNextGroup() /** No descriptions */ void KBSwitchApp::slotPreferences(){ KBConfigDlg dlg(&m_kbconf); - QObject::connect(&dlg, SIGNAL(okClicked()), m_trayicon, SLOT(slotUpdateIcons())); - QObject::connect(&dlg, SIGNAL(applyClicked()), m_trayicon, SLOT(slotUpdateIcons())); - QObject::connect(&dlg, SIGNAL(okClicked()), this, SLOT(slotPrefChanged())); - QObject::connect(&dlg, SIGNAL(applyClicked()), this, SLOT(slotPrefChanged())); + TQObject::connect(&dlg, SIGNAL(okClicked()), m_trayicon, SLOT(slotUpdateIcons())); + TQObject::connect(&dlg, SIGNAL(applyClicked()), m_trayicon, SLOT(slotUpdateIcons())); + TQObject::connect(&dlg, SIGNAL(okClicked()), this, SLOT(slotPrefChanged())); + TQObject::connect(&dlg, SIGNAL(applyClicked()), this, SLOT(slotPrefChanged())); dlg.exec(); } @@ -179,7 +179,7 @@ void KBSwitchApp::slotXkbGroupChanged(int groupno){ #ifdef HAVE_LIBXKLAVIER updateIcon(groupno); /* XWindowAttributes attrs; - XGetWindowAttributes(qt_xdisplay(), qt_xrootwin(), &attrs); + XGetWindowAttributes(tqt_xdisplay(), tqt_xrootwin(), &attrs); kdDebug() << "root event mask is " << attrs.your_event_mask << endl; kdDebug() << "SubstructureNotifyMask is " << ((attrs.your_event_mask & SubstructureNotifyMask) ? "ON" : "OFF") << endl;*/ |