summaryrefslogtreecommitdiffstats
path: root/kopete/kopete/chatwindow/tests/chatwindowstylerendering_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/kopete/chatwindow/tests/chatwindowstylerendering_test.cpp')
-rw-r--r--kopete/kopete/chatwindow/tests/chatwindowstylerendering_test.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kopete/kopete/chatwindow/tests/chatwindowstylerendering_test.cpp b/kopete/kopete/chatwindow/tests/chatwindowstylerendering_test.cpp
index 9fe66c06..6649f6b3 100644
--- a/kopete/kopete/chatwindow/tests/chatwindowstylerendering_test.cpp
+++ b/kopete/kopete/chatwindow/tests/chatwindowstylerendering_test.cpp
@@ -20,7 +20,7 @@
#include <stdlib.h>
-// Qt includes
+// TQt includes
#include <tqdir.h>
#include <tqfile.h>
#include <tqdatetime.h>
@@ -61,7 +61,7 @@ public:
class FakeProtocol : public Kopete::Protocol
{
public:
-FakeProtocol( KInstance *instance, TQObject *parent, const char *name ) : Kopete::Protocol(instance, parent, name)
+FakeProtocol( KInstance *instance, TQObject *tqparent, const char *name ) : Kopete::Protocol(instance, tqparent, name)
{
}
@@ -71,12 +71,12 @@ Account* createNewAccount( const TQString &/*accountId*/ )
return 0L;
}
-AddContactPage* createAddContactWidget( TQWidget */*parent*/, Kopete::Account */*account*/)
+AddContactPage* createAddContactWidget( TQWidget */*tqparent*/, Kopete::Account */*account*/)
{
return 0L;
}
-KopeteEditAccountWidget* createEditAccountWidget( Kopete::Account */*account*/, TQWidget */*parent */)
+KopeteEditAccountWidget* createEditAccountWidget( Kopete::Account */*account*/, TQWidget */*tqparent */)
{
return 0L;
}
@@ -86,7 +86,7 @@ KopeteEditAccountWidget* createEditAccountWidget( Kopete::Account */*account*/,
class FakeAccount : public Kopete::Account
{
public:
-FakeAccount(Kopete::Protocol *parent, const TQString &accountID, const char *name) : Kopete::Account(parent, accountID, name)
+FakeAccount(Kopete::Protocol *tqparent, const TQString &accountID, const char *name) : Kopete::Account(tqparent, accountID, name)
{
}
@@ -96,12 +96,12 @@ FakeAccount(Kopete::Protocol *parent, const TQString &accountID, const char *nam
}
-bool createContact( const TQString &/*contactId*/, Kopete::MetaContact */*parentContact*/ )
+bool createContact( const TQString &/*contactId*/, Kopete::MetaContact */*tqparentContact*/ )
{
return true;
}
-void connect( const Kopete::OnlineStatus& /*initialStatus*/)
+void connect( const Kopete::OnlineStatus& /*initialtqStatus*/)
{
// do nothing
}
@@ -205,8 +205,8 @@ void ChatWindowStyleRendering_Test::testHeaderRendering()
"<div>Outgoing/buddy_icon.png</div>\n"
"<div>%1</div>\n"
"<div>%2</div>"
- ).arg(KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime(), true, true ) )
- .arg(TQDateTime::currentDateTime().toString("hh:mm"));
+ ).tqarg(KGlobal::locale()->formatDateTime( TQDateTime::tqcurrentDateTime(), true, true ) )
+ .tqarg(TQDateTime::tqcurrentDateTime().toString("hh:mm"));
TQString headerHtml = d->testStyle->getHeaderHtml();
TQString resultHtml;
@@ -230,7 +230,7 @@ void ChatWindowStyleRendering_Test::testMessageRendering()
"<div>%1</div>\n"
"<div>%2</div>\n"
"<div id=\"insert\">"
- ).arg( TQDateTime::currentDateTime().toString( "hh:mm:ss" ), TQDateTime::currentDateTime().toString( "hh:mm" ) );
+ ).tqarg( TQDateTime::tqcurrentDateTime().toString( "hh:mm:ss" ), TQDateTime::tqcurrentDateTime().toString( "hh:mm" ) );
TQString expectedOutgoingHtml = TQString(
"Outgoing:\n"
@@ -242,7 +242,7 @@ void ChatWindowStyleRendering_Test::testMessageRendering()
"<div>%1</div>\n"
"<div>%2</div>\n"
"<div id=\"insert\">"
- ).arg( TQDateTime::currentDateTime().toString( "hh:mm:ss" ), TQDateTime::currentDateTime().toString( "hh:mm" ) );
+ ).tqarg( TQDateTime::tqcurrentDateTime().toString( "hh:mm:ss" ), TQDateTime::tqcurrentDateTime().toString( "hh:mm" ) );
TQString tempHtml;
@@ -272,13 +272,13 @@ void ChatWindowStyleRendering_Test::testStatusRendering()
"<div><span style=\"\"class=\"KopeteMessageBody\">A contact went offline.</span></div>\n"
"<div>%1</div>\n"
"<div>%2</div>"
- ).arg( TQDateTime::currentDateTime().toString( "hh:mm:ss" ), TQDateTime::currentDateTime().toString( "hh:mm" ) );
+ ).tqarg( TQDateTime::tqcurrentDateTime().toString( "hh:mm:ss" ), TQDateTime::tqcurrentDateTime().toString( "hh:mm" ) );
TQString statusHtml = d->testStyle->getStatusHtml();
TQString resultHtml;
- Kopete::Message msgStatus(0,0, TQString::fromUtf8("A contact went offline."), Kopete::Message::Internal);
- resultHtml = chatPart->formatStyleKeywords(statusHtml, msgStatus);
+ Kopete::Message msgtqStatus(0,0, TQString::fromUtf8("A contact went offline."), Kopete::Message::Internal);
+ resultHtml = chatPart->formatStyleKeywords(statusHtml, msgtqStatus);
CHECK(resultHtml, expectedStatusHtml);
}
@@ -291,8 +291,8 @@ void ChatWindowStyleRendering_Test::testFullRendering()
Kopete::Message msgIn1(d->myself, d->other, TQString("Hello there !"), Kopete::Message::Inbound);
Kopete::Message msgIn2(d->myself, d->other, TQString("How are you doing ?"), Kopete::Message::Inbound);
Kopete::Message msgOut1(d->other, d->myself, TQString("Fine and you ?"), Kopete::Message::Outbound);
- Kopete::Message msgStatus1(d->myself,d->other, TQString("You are now marked as away."), Kopete::Message::Internal);
- Kopete::Message msgStatus2(d->myself,d->other, TQString("You are now marked as online."), Kopete::Message::Internal);
+ Kopete::Message msgtqStatus1(d->myself,d->other, TQString("You are now marked as away."), Kopete::Message::Internal);
+ Kopete::Message msgtqStatus2(d->myself,d->other, TQString("You are now marked as online."), Kopete::Message::Internal);
Kopete::Message msgIn3(d->myself, d->other, TQString("Well, doing some tests."), Kopete::Message::Internal);
Kopete::Message msgOut2(d->other, d->myself, TQString("All your bases are belong to us."), Kopete::Message::Outbound);
Kopete::Message msgOut3(d->other, d->myself, TQString("You are on the way to destruction"), Kopete::Message::Outbound);
@@ -304,8 +304,8 @@ void ChatWindowStyleRendering_Test::testFullRendering()
chatPart->appendMessage(msgIn1);
chatPart->appendMessage(msgIn2);
chatPart->appendMessage(msgOut1);
- chatPart->appendMessage(msgStatus1);
- chatPart->appendMessage(msgStatus2);
+ chatPart->appendMessage(msgtqStatus1);
+ chatPart->appendMessage(msgtqStatus2);
chatPart->appendMessage(msgIn3);
chatPart->appendMessage(msgOut2);
chatPart->appendMessage(msgOut3);