From 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 00:30:31 +0000 Subject: TQt4 port kdenetwork This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksirc/alistbox.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'ksirc/alistbox.cpp') diff --git a/ksirc/alistbox.cpp b/ksirc/alistbox.cpp index 779bd730..9702cd5e 100644 --- a/ksirc/alistbox.cpp +++ b/ksirc/alistbox.cpp @@ -23,11 +23,11 @@ #include #include -aListBox::aListBox(TQWidget *parent, const char *name ) - : TQListBox(parent,name) +aListBox::aListBox(TQWidget *tqparent, const char *name ) + : TQListBox(tqparent,name) { clear(); - p_scroll = palette().copy(); + p_scroll = TQPalette(tqpalette()); setAcceptDrops( true ); connect(this, TQT_SIGNAL(selected (const TQString&)), this, TQT_SIGNAL(selectedNick(const TQString&))); @@ -208,7 +208,7 @@ int aListBox::findNick(const TQString &str) index = searchFor(str, found, FALSE); if(found == TRUE) return index; -// debug("Did not find: %s", str.data()); +// debug("Did not tqfind: %s", str.data()); return -1; } @@ -402,25 +402,25 @@ void nickListItem::paint(TQPainter *p) if(is_voice == TRUE){ TQPen open = p->pen(); p->setPen(ksopts->channelColor); - p->drawText( nickPosX, yPos, "+" ); + p->drawText( nickPosX, yPos, TQString("+") ); nickPosX += fm.width( "+" ); p->setPen(open); -// p->fillRect(0,0, listBox()->maxItemWidth(), height(listBox()), TQBrush(ksopts->channelColor, Qt::Dense7Pattern)); +// p->fillRect(0,0, listBox()->maxItemWidth(), height(listBox()), TQBrush(ksopts->channelColor, TQt::Dense7Pattern)); } if(is_op == TRUE) { TQPen open = p->pen(); p->setPen(ksopts->errorColor); - p->drawText( nickPosX, yPos, "@" ); + p->drawText( nickPosX, yPos, TQString("@") ); nickPosX += fm.width( "@" ); p->setPen(open); -// p->fillRect(0,0, listBox()->maxItemWidth(), height(listBox()), TQBrush(ksopts->errorColor, Qt::Dense7Pattern)); +// p->fillRect(0,0, listBox()->maxItemWidth(), height(listBox()), TQBrush(ksopts->errorColor, TQt::Dense7Pattern)); } if(is_away == TRUE) p->setPen(p->pen().color().dark(150)); if(is_ircop == TRUE){ TQPen open = p->pen(); p->setPen(ksopts->errorColor); - p->drawText( nickPosX, yPos, "*" ); + p->drawText( nickPosX, yPos, TQString("*") ); nickPosX += fm.width( "*" ); p->setPen(open); -- cgit v1.2.3