diff options
Diffstat (limited to 'kkbswitch/windowclasswatcher.cpp')
-rw-r--r-- | kkbswitch/windowclasswatcher.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kkbswitch/windowclasswatcher.cpp b/kkbswitch/windowclasswatcher.cpp index b88e781..d345a54 100644 --- a/kkbswitch/windowclasswatcher.cpp +++ b/kkbswitch/windowclasswatcher.cpp @@ -25,7 +25,7 @@ #include <X11/Xutil.h> -WindowClassWatcher::WindowClassWatcher(KBConfig *kbconf, QObject *parent, const char *name) +WindowClassWatcher::WindowClassWatcher(KBConfig *kbconf, TQObject *parent, const char *name) : WindowWatcher(kbconf, parent, name) { reset(); @@ -35,12 +35,12 @@ WindowClassWatcher::~WindowClassWatcher() { } -QString WindowClassWatcher::getWindowClass(WId id) +TQString WindowClassWatcher::getWindowClass(WId id) { XClassHint hint; - QString ret = QString::null; + TQString ret = TQString::null; - if (XGetClassHint(qt_xdisplay(), id, &hint)) { + if (XGetClassHint(tqt_xdisplay(), id, &hint)) { ret = hint.res_class; XFree(hint.res_name); XFree(hint.res_class); @@ -50,7 +50,7 @@ QString WindowClassWatcher::getWindowClass(WId id) void WindowClassWatcher::windowAdded(WId id) { - QString wclass = getWindowClass(id); + TQString wclass = getWindowClass(id); KBClassInfo &info = m_class_group_map[wclass]; if (info.refcount == 0) { // new class @@ -93,9 +93,9 @@ void WindowClassWatcher::reset() m_class_group_map.clear(); // fill the map with existing windows - const QValueList<WId> windows = m_kwin_module->windows(); - const QValueList<WId>::ConstIterator end = windows.end(); - for (QValueList<WId>::ConstIterator it = windows.begin(); it != end; ++it) + const TQValueList<WId> windows = m_kwin_module->windows(); + const TQValueList<WId>::ConstIterator end = windows.end(); + for (TQValueList<WId>::ConstIterator it = windows.begin(); it != end; ++it) windowAdded(*it); WId active_window = m_kwin_module->activeWindow(); |