summaryrefslogtreecommitdiffstats
path: root/karm/tray.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /karm/tray.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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 'karm/tray.cpp')
-rw-r--r--karm/tray.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/karm/tray.cpp b/karm/tray.cpp
index 228d807d8..ac820abbb 100644
--- a/karm/tray.cpp
+++ b/karm/tray.cpp
@@ -8,13 +8,13 @@
*/
-// #include <qkeycode.h>
-// #include <qlayout.h>
-#include <qpixmap.h>
-#include <qptrlist.h>
-#include <qstring.h>
-#include <qtimer.h>
-#include <qtooltip.h>
+// #include <tqkeycode.h>
+// #include <tqlayout.h>
+#include <tqpixmap.h>
+#include <tqptrlist.h>
+#include <tqstring.h>
+#include <tqtimer.h>
+#include <tqtooltip.h>
#include <kaction.h> // actionPreferences()
#include <kglobal.h>
@@ -28,21 +28,21 @@
#include "task.h"
#include "tray.h"
-QPtrVector<QPixmap> *KarmTray::icons = 0;
+TQPtrVector<TQPixmap> *KarmTray::icons = 0;
KarmTray::KarmTray(MainWindow* parent)
: KSystemTray(parent, "Karm Tray")
{
// the timer that updates the "running" icon in the tray
- _taskActiveTimer = new QTimer(this);
- connect( _taskActiveTimer, SIGNAL( timeout() ), this,
- SLOT( advanceClock()) );
+ _taskActiveTimer = new TQTimer(this);
+ connect( _taskActiveTimer, TQT_SIGNAL( timeout() ), this,
+ TQT_SLOT( advanceClock()) );
if (icons == 0) {
- icons = new QPtrVector<QPixmap>(8);
+ icons = new TQPtrVector<TQPixmap>(8);
for (int i=0; i<8; i++) {
- QPixmap *icon = new QPixmap();
- QString name;
+ TQPixmap *icon = new TQPixmap();
+ TQString name;
name.sprintf("active-icon-%d.xpm",i);
*icon = UserIcon(name);
icons->insert(i,icon);
@@ -66,7 +66,7 @@ KarmTray::KarmTray(MainWindow* parent)
// experimenting with menus for the tray
/*
trayPopupMenu = contextMenu();
- trayPopupMenu2 = new QPopupMenu();
+ trayPopupMenu2 = new TQPopupMenu();
trayPopupMenu->insertItem(i18n("Submenu"), *trayPopupMenu2);
*/
}
@@ -85,7 +85,7 @@ KarmTray::~KarmTray()
// experiment
/*
-void KarmTray::insertTitle(QString title)
+void KarmTray::insertTitle(TQString title)
{
trayPopupMenu->insertTitle(title);
}
@@ -125,29 +125,29 @@ void KarmTray::resetClock()
void KarmTray::initToolTip()
{
- updateToolTip(QPtrList<Task> ());
+ updateToolTip(TQPtrList<Task> ());
}
-void KarmTray::updateToolTip(QPtrList<Task> activeTasks)
+void KarmTray::updateToolTip(TQPtrList<Task> activeTasks)
{
if ( activeTasks.isEmpty() ) {
- QToolTip::add( this, i18n("No active tasks") );
+ TQToolTip::add( this, i18n("No active tasks") );
return;
}
- QFontMetrics fm( QToolTip::font() );
- const QString continued = i18n( ", ..." );
+ TQFontMetrics fm( TQToolTip::font() );
+ const TQString continued = i18n( ", ..." );
const int buffer = fm.boundingRect( continued ).width();
const int desktopWidth = KGlobalSettings::desktopGeometry(this).width();
const int maxWidth = desktopWidth - buffer;
- QString qTip;
- QString s;
+ TQString qTip;
+ TQString s;
// Build the tool tip with all of the names of the active tasks.
// If at any time the width of the tool tip is larger than the desktop,
// stop building it.
- QPtrListIterator<Task> item( activeTasks );
+ TQPtrListIterator<Task> item( activeTasks );
for ( int i = 0; item.current(); ++item, ++i ) {
Task* task = item.current();
if ( i > 0 )
@@ -162,7 +162,7 @@ void KarmTray::updateToolTip(QPtrList<Task> activeTasks)
qTip = s;
}
- QToolTip::add( this, qTip );
+ TQToolTip::add( this, qTip );
}
#include "tray.moc"