diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 06:00:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 06:00:15 +0000 |
commit | b1057f437bf65300831a0ccb45b920787c6b318d (patch) | |
tree | f8a73db06ca1180d0da0ba6dfbe786197b4f4bc3 /kmid/channel.cpp | |
parent | 4ddfca384ced9ad654213aef9dc2c3973720b980 (diff) | |
download | tdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.tar.gz tdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.zip |
TQt4 port kdemultimedia
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1236079 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmid/channel.cpp')
-rw-r--r-- | kmid/channel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kmid/channel.cpp b/kmid/channel.cpp index 7d077dd7..a4547767 100644 --- a/kmid/channel.cpp +++ b/kmid/channel.cpp @@ -39,7 +39,7 @@ #include "instrname.h" #include <kiconloader.h> -KMidChannel::KMidChannel(int chn,TQWidget *parent) : TQWidget (parent) +KMidChannel::KMidChannel(int chn,TQWidget *tqparent) : TQWidget (tqparent) { channel=chn; replay=TRUE; @@ -48,7 +48,7 @@ KMidChannel::KMidChannel(int chn,TQWidget *parent) : TQWidget (parent) keyboard = TQPixmap(locate("appdata","icons/keyboard.xpm")); penB = new TQPen (black); penW = new TQPen (white); - penT = new TQPen (colorGroup().background()); + penT = new TQPen (tqcolorGroup().background()); KConfig *kcfg=KGlobal::instance()->config(); kcfg->setGroup("KMid"); @@ -87,7 +87,7 @@ void KMidChannel::paintEvent( TQPaintEvent * ) TQPainter *qpaint=new TQPainter(this); - TQString tmp = i18n("Channel %1").arg(channel); + TQString tmp = i18n("Channel %1").tqarg(channel); qpaint->setFont(*qcvfont); qpaint->setPen(*penB); qpaint->drawText(2,20,tmp); @@ -185,7 +185,7 @@ void KMidChannel::reset(int level) replay=TRUE; }; - repaint(FALSE); + tqrepaint(FALSE); } void KMidChannel::saveState(bool *p,int *pgm) @@ -198,7 +198,7 @@ void KMidChannel::loadState(bool *p,int *pgm) { for (int i=0;i<128;i++) pressed[i]=p[i]; instrumentCombo->setCurrentItem(*pgm); - repaint(FALSE); + tqrepaint(FALSE); } void KMidChannel::pgmChanged(int i) |