summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/clickarea.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /superkaramba/src/clickarea.cpp
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz
tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'superkaramba/src/clickarea.cpp')
-rw-r--r--superkaramba/src/clickarea.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/superkaramba/src/clickarea.cpp b/superkaramba/src/clickarea.cpp
index d060b4d..c2ca63e 100644
--- a/superkaramba/src/clickarea.cpp
+++ b/superkaramba/src/clickarea.cpp
@@ -18,18 +18,18 @@ ClickArea::ClickArea(karamba* k, int x, int y, int w, int h )
: Meter(k, x, y, w, h )
{
value = "";
- rect = QRect( x, y, w, h );
+ rect = TQRect( x, y, w, h );
}
ClickArea::~ClickArea()
{}
-bool ClickArea::click( QMouseEvent *e )
+bool ClickArea::click( TQMouseEvent *e )
{
if( rect.contains( e->x(), e->y() ) )
{
- //qDebug(QString::number(e->type()));
+ //qDebug(TQString::number(e->type()));
//KShellProcess ksp;
if( e->button() != Qt::LeftButton )
return false;
@@ -42,9 +42,9 @@ bool ClickArea::click( QMouseEvent *e )
}
else
{
- QString program;
+ TQString program;
program = onClick;
- program.replace( QRegExp("%v", false), value );
+ program.replace( TQRegExp("%v", false), value );
if( !program.isEmpty() )
{
@@ -56,30 +56,30 @@ bool ClickArea::click( QMouseEvent *e )
return false;
}
-void ClickArea::setOnClick( QString oc )
+void ClickArea::setOnClick( TQString oc )
{
onClick = oc;
}
-void ClickArea::setServiceOnClick( QString name , QString exec, QString icon )
+void ClickArea::setServiceOnClick( TQString name , TQString exec, TQString icon )
{
svc_name = name;
svc_onClick = exec;
svc_icon = icon;
}
-void ClickArea::setOnMiddleClick( QString oc )
+void ClickArea::setOnMiddleClick( TQString oc )
{
onMiddleClick = oc;
}
-QRect ClickArea::getRectangle()
+TQRect ClickArea::getRectangle()
{
return rect;
}
-void ClickArea::mUpdate( QPainter *p )
+void ClickArea::mUpdate( TQPainter *p )
{
p->drawRect(boundingBox);
@@ -90,12 +90,12 @@ void ClickArea::mUpdate( QPainter *p )
void ClickArea::setValue( long v)
{
- setValue( QString::number( v ) );
+ setValue( TQString::number( v ) );
}
-void ClickArea::setValue( QString v )
+void ClickArea::setValue( TQString v )
{
value = v;
}