summaryrefslogtreecommitdiffstats
path: root/kicker/extensions/kasbar/kasclockitem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kicker/extensions/kasbar/kasclockitem.cpp
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/extensions/kasbar/kasclockitem.cpp')
-rw-r--r--kicker/extensions/kasbar/kasclockitem.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kicker/extensions/kasbar/kasclockitem.cpp b/kicker/extensions/kasbar/kasclockitem.cpp
index 0292a93cb..386a7922d 100644
--- a/kicker/extensions/kasbar/kasclockitem.cpp
+++ b/kicker/extensions/kasbar/kasclockitem.cpp
@@ -1,9 +1,9 @@
-#include <qpainter.h>
-#include <qbitmap.h>
-#include <qdatetime.h>
-#include <qdrawutil.h>
-#include <qlcdnumber.h>
-#include <qtimer.h>
+#include <tqpainter.h>
+#include <tqbitmap.h>
+#include <tqdatetime.h>
+#include <tqdrawutil.h>
+#include <tqlcdnumber.h>
+#include <tqtimer.h>
#include <kdatepicker.h>
#include <kglobal.h>
@@ -26,11 +26,11 @@
class LCD : public QLCDNumber
{
public:
- LCD( QWidget *parent, const char *name=0 )
- : QLCDNumber(parent,name) {}
+ LCD( TQWidget *parent, const char *name=0 )
+ : TQLCDNumber(parent,name) {}
~LCD() {}
- void draw( QPainter *p ) { drawContents(p); }
+ void draw( TQPainter *p ) { drawContents(p); }
};
KasClockItem::KasClockItem( KasBar *parent )
@@ -38,23 +38,23 @@ KasClockItem::KasClockItem( KasBar *parent )
{
setCustomPopup( true );
- QTimer *t = new QTimer( this );
- connect( t, SIGNAL( timeout() ), SLOT( updateTime() ) );
+ TQTimer *t = new TQTimer( this );
+ connect( t, TQT_SIGNAL( timeout() ), TQT_SLOT( updateTime() ) );
t->start( 1000 );
lcd = new LCD( parent );
lcd->hide();
- lcd->setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum );
+ lcd->setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum );
lcd->setBackgroundMode( NoBackground );
- lcd->setFrameStyle( QFrame::NoFrame );
- lcd->setSegmentStyle( QLCDNumber::Flat );
+ lcd->setFrameStyle( TQFrame::NoFrame );
+ lcd->setSegmentStyle( TQLCDNumber::Flat );
lcd->setNumDigits( 5 );
lcd->setAutoMask( true );
updateTime();
- connect( this, SIGNAL(leftButtonClicked(QMouseEvent *)), SLOT(togglePopup()) );
- connect( this, SIGNAL(rightButtonClicked(QMouseEvent *)), SLOT(showMenuAt(QMouseEvent *) ) );
+ connect( this, TQT_SIGNAL(leftButtonClicked(TQMouseEvent *)), TQT_SLOT(togglePopup()) );
+ connect( this, TQT_SIGNAL(rightButtonClicked(TQMouseEvent *)), TQT_SLOT(showMenuAt(TQMouseEvent *) ) );
}
KasClockItem::~KasClockItem()
@@ -75,17 +75,17 @@ KasPopup *KasClockItem::createPopup()
void KasClockItem::updateTime()
{
- setText( KGlobal::locale()->formatDate( QDate::currentDate(), true /* shortFormat */ ) );
- lcd->display( KGlobal::locale()->formatTime( QTime::currentTime(), false /* includeSecs */, false /* isDuration */) );
+ setText( KGlobal::locale()->formatDate( TQDate::currentDate(), true /* shortFormat */ ) );
+ lcd->display( KGlobal::locale()->formatTime( TQTime::currentTime(), false /* includeSecs */, false /* isDuration */) );
update();
}
-void KasClockItem::paint( QPainter *p )
+void KasClockItem::paint( TQPainter *p )
{
KasItem::paint( p );
- lcd->setGeometry( QRect( 0, 0, extent(), extent()-15 ) );
+ lcd->setGeometry( TQRect( 0, 0, extent(), extent()-15 ) );
p->save();
p->translate( 3, 15 );
@@ -100,13 +100,13 @@ void KasClockItem::paint( QPainter *p )
p->restore();
}
-void KasClockItem::showMenuAt( QMouseEvent *ev )
+void KasClockItem::showMenuAt( TQMouseEvent *ev )
{
hidePopup();
showMenuAt( ev->globalPos() );
}
-void KasClockItem::showMenuAt( QPoint p )
+void KasClockItem::showMenuAt( TQPoint p )
{
mouseLeave();
kasbar()->updateMouseOver();