summaryrefslogtreecommitdiffstats
path: root/ksirc/alistbox.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /ksirc/alistbox.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
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
Diffstat (limited to 'ksirc/alistbox.cpp')
-rw-r--r--ksirc/alistbox.cpp18
1 files changed, 9 insertions, 9 deletions
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 <kglobal.h>
#include <kurldrag.h>
-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);