diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kmobile/systemtray.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmobile/systemtray.cpp')
-rw-r--r-- | kmobile/systemtray.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kmobile/systemtray.cpp b/kmobile/systemtray.cpp index b057086e4..01f21c8a5 100644 --- a/kmobile/systemtray.cpp +++ b/kmobile/systemtray.cpp @@ -24,10 +24,10 @@ #include <kiconeffect.h> #include <kdebug.h> -#include <qhbox.h> -#include <qpushbutton.h> -#include <qtooltip.h> -#include <qpainter.h> +#include <tqhbox.h> +#include <tqpushbutton.h> +#include <tqtooltip.h> +#include <tqpainter.h> #include "systemtray.h" @@ -68,22 +68,22 @@ void SystemTray::contextMenuAboutToShow(KPopupMenu *menu) menu->removeItemAt(pos); // create menu entries for each mobile device and add it's icon - QStringList list = main->mainView()->deviceNames(); + TQStringList list = main->mainView()->deviceNames(); for (unsigned int no=0; no<list.count(); no++) { - QString devName = list[no]; - QString iconName = main->mainView()->iconFileName(devName); - QPixmap pm = KGlobal::instance()->iconLoader()->loadIcon(iconName, KIcon::Small); + TQString devName = list[no]; + TQString iconName = main->mainView()->iconFileName(devName); + TQPixmap pm = KGlobal::instance()->iconLoader()->loadIcon(iconName, KIcon::Small); menu->insertItem(pm, devName, SYSTEMTRAY_STARTID+no, 3+no); - menu->connectItem(SYSTEMTRAY_STARTID+no, this, SLOT(menuItemSelected())); + menu->connectItem(SYSTEMTRAY_STARTID+no, this, TQT_SLOT(menuItemSelected())); } - connect(menu, SIGNAL(activated(int)), this, SLOT(menuItemActivated(int))); + connect(menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(menuItemActivated(int))); } void SystemTray::menuItemSelected() { if (m_menuID<SYSTEMTRAY_STARTID || m_menuID>SYSTEMTRAY_STARTID+1000) return; - QString devName = contextMenu()->text(m_menuID); + TQString devName = contextMenu()->text(m_menuID); KMobile *main = static_cast<KMobile *>(parent()); main->mainView()->startKonqueror(devName); } @@ -93,12 +93,12 @@ void SystemTray::menuItemActivated(int id) m_menuID = id; } -void SystemTray::setToolTip(const QString &tip) +void SystemTray::setToolTip(const TQString &tip) { if (tip.isEmpty()) - QToolTip::add(this, "KMobile"); + TQToolTip::add(this, "KMobile"); else - QToolTip::add(this, tip); + TQToolTip::add(this, tip); } #include "systemtray.moc" |