summaryrefslogtreecommitdiffstats
path: root/konversation/src/nick.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-20 20:20:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-20 20:20:19 +0000
commitdf6d1c3c6fd22031d432af447798938c1d7e1877 (patch)
tree4f74f2a214b347b651f6df4cee9d3e47dbfa84db /konversation/src/nick.cpp
parent449e0b1b356e63cb4869fc6e0020134efa83825d (diff)
downloadkonversation-df6d1c3c6fd22031d432af447798938c1d7e1877.tar.gz
konversation-df6d1c3c6fd22031d432af447798938c1d7e1877.zip
TQt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/konversation@1166088 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konversation/src/nick.cpp')
-rw-r--r--konversation/src/nick.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/konversation/src/nick.cpp b/konversation/src/nick.cpp
index 1ea7ffc..4a14ff6 100644
--- a/konversation/src/nick.cpp
+++ b/konversation/src/nick.cpp
@@ -14,7 +14,7 @@
#include "nick.h"
#include "addressbook.h"
-#include <qtextstream.h>
+#include <tqtextstream.h>
#include <kdebug.h>
#include <klistview.h>
@@ -26,8 +26,8 @@
Nick::Nick(KListView *listView,
const ChannelNickPtr& channelnick)
- : QObject (),
- KListViewItem (listView, listView->lastItem(), QString::null,
+ : TQObject (),
+ KListViewItem (listView, listView->lastItem(), TQString::null,
channelnick->getNickname(), channelnick->getHostmask())
{
m_channelnickptr = channelnick;
@@ -40,9 +40,9 @@ const ChannelNickPtr& channelnick)
refresh();
- connect(this, SIGNAL(refreshed()), listView, SLOT(startResortTimer()));
- connect(getChannelNick(), SIGNAL(channelNickChanged()), SLOT(refresh()));
- connect(getChannelNick()->getNickInfo(), SIGNAL(nickInfoChanged()), SLOT(refresh()));
+ connect(this, TQT_SIGNAL(refreshed()), listView, TQT_SLOT(startResortTimer()));
+ connect(getChannelNick(), TQT_SIGNAL(channelNickChanged()), TQT_SLOT(refresh()));
+ connect(getChannelNick()->getNickInfo(), TQT_SIGNAL(nickInfoChanged()), TQT_SLOT(refresh()));
}
Nick::~Nick()
@@ -68,7 +68,7 @@ void Nick::refresh()
flags=1;
Images* images = KonversationApplication::instance()->images();
- QPixmap icon;
+ TQPixmap icon;
if ( getChannelNick()->isOwner() )
{
@@ -112,11 +112,11 @@ void Nick::refresh()
if(pic.isIntern())
{
- QPixmap qpixmap(pic.data().scaleHeight(m_height));
+ TQPixmap qpixmap(pic.data().scaleHeight(m_height));
setPixmap(1,qpixmap);
}
- QString newtext1 = calculateLabel1();
+ TQString newtext1 = calculateLabel1();
if(newtext1 != text(1))
{
setText(1, newtext1);
@@ -133,7 +133,7 @@ void Nick::refresh()
}
}
-QString Nick::calculateLabel1()
+TQString Nick::calculateLabel1()
{
NickInfoPtr nickinfo = getChannelNick()->getNickInfo();
KABC::Addressee addressee = nickinfo->getAddressee();
@@ -150,12 +150,12 @@ QString Nick::calculateLabel1()
return nickinfo->getNickname();
}
-QString Nick::calculateLabel2()
+TQString Nick::calculateLabel2()
{
return getChannelNick()->getNickInfo()->getHostmask();
}
-int Nick::compare(QListViewItem* item,int col,bool ascending) const
+int Nick::compare(TQListViewItem* item,int col,bool ascending) const
{
Nick* otherItem = static_cast<Nick*>(item);
@@ -198,8 +198,8 @@ int Nick::compare(QListViewItem* item,int col,bool ascending) const
}
}
- QString thisKey;
- QString otherKey;
+ TQString thisKey;
+ TQString otherKey;
if(col > 1) //the reason we need this: enabling hostnames adds another column
{
@@ -231,14 +231,14 @@ int Nick::compare(QListViewItem* item,int col,bool ascending) const
return thisKey.compare(otherKey);
}
-void Nick::paintCell(QPainter * p, const QColorGroup & cg, int column, int width, int align )
+void Nick::paintCell(TQPainter * p, const TQColorGroup & cg, int column, int width, int align )
{
- QColorGroup cg2 = cg;
+ TQColorGroup cg2 = cg;
NickInfo* nickInfo = getChannelNick()->getNickInfo();
if(nickInfo->isAway())
{
- cg2.setColor(QColorGroup::Text, kapp->palette(listView()).disabled().text());
+ cg2.setColor(TQColorGroup::Text, kapp->palette(listView()).disabled().text());
}
KListViewItem::paintCell(p,cg2,column,width,align);
@@ -247,7 +247,7 @@ void Nick::paintCell(QPainter * p, const QColorGroup & cg, int column, int width
int Nick::getSortingValue() const
{
int flags;
- QString sortingOrder = Preferences::sortOrder();
+ TQString sortingOrder = Preferences::sortOrder();
if(getChannelNick()->isOwner()) flags=sortingOrder.find('q');
else if(getChannelNick()->isAdmin()) flags=sortingOrder.find('p');