summaryrefslogtreecommitdiff
path: root/libqtaux
Side-by-side diff
Diffstat (limited to 'libqtaux') (more/less context) (ignore whitespace changes)
-rw-r--r--libqtaux/oticker.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/libqtaux/oticker.cpp b/libqtaux/oticker.cpp
index e954cc8..29478fd 100644
--- a/libqtaux/oticker.cpp
+++ b/libqtaux/oticker.cpp
@@ -30,8 +30,10 @@
#include "oticker.h"
/* OPIE */
+#include <opie2/odebug.h>
+
#include <qpe/config.h>
using namespace Opie::Ui;
@@ -71,16 +73,16 @@ void OTicker::setFrame( int frameStyle )
void OTicker::setText( const QString& text )
{
pos = 0; // reset it everytime the text is changed
scrollText = text;
- qDebug( scrollText );
+ odebug << scrollText << oendl;
int pixelLen = 0;
bool bigger = false;
int contWidth = contentsRect().width();
int contHeight = contentsRect().height();
int pixelTextLen = fontMetrics().width( text );
- qDebug( "<<<<<<<height %d, width %d, text width %d %d\n", contHeight, contWidth, pixelTextLen, scrollText.length() );
+ odebug << "<<<<<<<height " << contHeight << ", width " << contWidth << ", text width " << pixelTextLen << " " << scrollText.length() << "\n" << oendl;
if ( pixelTextLen < contWidth )
{
pixelLen = contWidth;
}
@@ -99,9 +101,9 @@ void OTicker::setText( const QString& text )
pmp.end();
scrollTextPixmap = pm;
killTimers();
- // qDebug("Scrollupdate %d", updateTimerTime);
+ // odebug << "Scrollupdate " << updateTimerTime << "" << oendl;
if ( bigger /*pixelTextLen > contWidth*/ )
startTimer( updateTimerTime );
update();
}
@@ -122,9 +124,9 @@ void OTicker::drawContents( QPainter *p )
}
void OTicker::mouseReleaseEvent( QMouseEvent * )
{
- // qDebug("<<<<<<<>>>>>>>>>");
+ // odebug << "<<<<<<<>>>>>>>>>" << oendl;
emit mousePressed();
}
void OTicker::setUpdateTime( int time )