From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kxkb/kxkbtraywindow.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kxkb/kxkbtraywindow.h') diff --git a/kxkb/kxkbtraywindow.h b/kxkb/kxkbtraywindow.h index 9c2c070c6..4c58c5871 100644 --- a/kxkb/kxkbtraywindow.h +++ b/kxkb/kxkbtraywindow.h @@ -14,8 +14,8 @@ #include -#include -#include +#include +#include #include "kxkbconfig.h" @@ -35,12 +35,12 @@ class KxkbLabelController: public QObject public: enum { START_MENU_ID = 100, CONFIG_MENU_ID = 130, HELP_MENU_ID = 131 }; - KxkbLabelController(QLabel *label, QPopupMenu* contextMenu); + KxkbLabelController(TQLabel *label, TQPopupMenu* contextMenu); - void initLayoutList(const QValueList& layouts, const XkbRules& rule); + void initLayoutList(const TQValueList& layouts, const XkbRules& rule); void setCurrentLayout(const LayoutUnit& layout); -// void setCurrentLayout(const QString& layout, const QString &variant); - void setError(const QString& layoutInfo=""); +// void setCurrentLayout(const TQString& layout, const TQString &variant); + void setError(const TQString& layoutInfo=""); void setShowFlag(bool showFlag) { m_showFlag = showFlag; } void show() { label->show(); } @@ -51,19 +51,19 @@ public: // protected: // -// void mouseReleaseEvent(QMouseEvent *); +// void mouseReleaseEvent(TQMouseEvent *); private: - QLabel* label; - QPopupMenu* contextMenu; + TQLabel* label; + TQPopupMenu* contextMenu; const int m_menuStartIndex; bool m_showFlag; int m_prevLayoutCount; - QMap m_descriptionMap; + TQMap m_descriptionMap; - void setToolTip(const QString& tip); - void setPixmap(const QPixmap& pixmap); + void setToolTip(const TQString& tip); + void setPixmap(const TQPixmap& pixmap); }; @@ -76,9 +76,9 @@ class KxkbSystemTray : public KSystemTray KSystemTray(NULL) {} - void mouseReleaseEvent(QMouseEvent *ev) + void mouseReleaseEvent(TQMouseEvent *ev) { - if (ev->button() == QMouseEvent::LeftButton) + if (ev->button() == TQMouseEvent::LeftButton) emit toggled(); KSystemTray::mouseReleaseEvent(ev); } -- cgit v1.2.3