summaryrefslogtreecommitdiffstats
path: root/konversation/src/konversationstatusbar.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/konversationstatusbar.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/konversationstatusbar.cpp')
-rw-r--r--konversation/src/konversationstatusbar.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/konversation/src/konversationstatusbar.cpp b/konversation/src/konversationstatusbar.cpp
index db29a06..bdfc9ca 100644
--- a/konversation/src/konversationstatusbar.cpp
+++ b/konversation/src/konversationstatusbar.cpp
@@ -14,9 +14,9 @@
#include "viewcontainer.h"
#include "ssllabel.h"
-#include <qwhatsthis.h>
-#include <qlabel.h>
-#include <qtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqlabel.h>
+#include <tqtooltip.h>
#include <kstatusbar.h>
#include <klocale.h>
@@ -33,31 +33,31 @@ KonversationStatusBar::KonversationStatusBar(KonversationMainWindow* window)
m_mainLabel = new KSqueezedTextLabel(m_window->statusBar(),"mainLabel");
setMainLabelText(i18n("Ready."));
- m_mainLabel->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed));
+ m_mainLabel->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed));
m_mainLabel->setMinimumWidth(0);
// KSqueezedLabel calculates the wrong height. Popular workaround.
int height = m_window->fontMetrics().height()+2;
m_mainLabel->setFixedHeight(height);
- m_infoLabel = new QLabel(m_window->statusBar(), "infoLabel");
+ m_infoLabel = new TQLabel(m_window->statusBar(), "infoLabel");
m_infoLabel->hide();
- QWhatsThis::add(m_infoLabel, i18n("<qt>This shows the number of users in the channel, and the number of those that are operators (ops).<p>A channel operator is a user that has special privileges, such as the ability to kick and ban users, change the channel modes, make other users operators</qt>"));
+ TQWhatsThis::add(m_infoLabel, i18n("<qt>This shows the number of users in the channel, and the number of those that are operators (ops).<p>A channel operator is a user that has special privileges, such as the ability to kick and ban users, change the channel modes, make other users operators</qt>"));
- m_lagLabel = new QLabel(i18n("Lag: Unknown"), m_window->statusBar(), "lagLabel");
+ m_lagLabel = new TQLabel(i18n("Lag: Unknown"), m_window->statusBar(), "lagLabel");
m_lagLabel->hide();
m_sslLabel = new SSLLabel(m_window->statusBar(),"sslLabel");
m_sslLabel->setPixmap(SmallIcon("encrypted"));
m_sslLabel->hide();
- QWhatsThis::add(m_sslLabel, i18n("All communication with the server is encrypted. This makes it harder for someone to listen in on your communications."));
+ TQWhatsThis::add(m_sslLabel, i18n("All communication with the server is encrypted. This makes it harder for someone to listen in on your communications."));
m_window->statusBar()->addWidget(m_mainLabel, 1, false);
m_window->statusBar()->addWidget(m_infoLabel, 0, true);
m_window->statusBar()->addWidget(m_lagLabel, 0, true);
m_window->statusBar()->addWidget(m_sslLabel, 0, true);
- QWhatsThis::add(m_window->statusBar(), i18n("<qt>The status bar shows various messages, including any problems connecting to the server. On the far right the current delay to the server is shown. The delay is the time it takes for messages from you to reach the server, and from the server back to you.</qt>"));
+ TQWhatsThis::add(m_window->statusBar(), i18n("<qt>The status bar shows various messages, including any problems connecting to the server. On the far right the current delay to the server is shown. The delay is the time it takes for messages from you to reach the server, and from the server back to you.</qt>"));
}
KonversationStatusBar::~KonversationStatusBar()
@@ -80,7 +80,7 @@ void KonversationStatusBar::resetStatusBar()
resetLagLabel();
}
-void KonversationStatusBar::setMainLabelText(const QString& text)
+void KonversationStatusBar::setMainLabelText(const TQString& text)
{
m_oldMainLabelText = text;
@@ -89,7 +89,7 @@ void KonversationStatusBar::setMainLabelText(const QString& text)
m_mainLabel->setText(text);
}
-void KonversationStatusBar::setMainLabelTempText(const QString& text)
+void KonversationStatusBar::setMainLabelTempText(const TQString& text)
{
if (!text.isEmpty())
{
@@ -103,7 +103,7 @@ void KonversationStatusBar::setMainLabelTempText(const QString& text)
void KonversationStatusBar::clearMainLabelTempText()
{
// Unset the temp text so the next setMainLabelText won't fail.
- m_tempMainLabelText = QString();
+ m_tempMainLabelText = TQString();
m_mainLabel->setText(m_oldMainLabelText);
}
@@ -116,9 +116,9 @@ void KonversationStatusBar::setInfoLabelShown(bool shown)
m_infoLabel->hide();
}
-void KonversationStatusBar::updateInfoLabel(const QString& text)
+void KonversationStatusBar::updateInfoLabel(const TQString& text)
{
- QString formatted = Konversation::removeIrcMarkup(text);
+ TQString formatted = Konversation::removeIrcMarkup(text);
m_infoLabel->setText(formatted);
if (m_infoLabel->isHidden()) m_infoLabel->show();
@@ -126,7 +126,7 @@ void KonversationStatusBar::updateInfoLabel(const QString& text)
void KonversationStatusBar::clearInfoLabel()
{
- m_infoLabel->setText(QString());
+ m_infoLabel->setText(TQString());
}
void KonversationStatusBar::setLagLabelShown(bool shown)
@@ -143,7 +143,7 @@ void KonversationStatusBar::updateLagLabel(Server* lagServer, int msec)
{
setMainLabelText(i18n("Ready."));
- QString lagString = lagServer->getServerName() + " - ";
+ TQString lagString = lagServer->getServerName() + " - ";
if (msec == -1)
lagString += i18n("Lag: Unknown");
@@ -171,31 +171,31 @@ void KonversationStatusBar::setTooLongLag(Server* lagServer, int msec)
int minutes = seconds/60;
int hours = minutes/60;
int days = hours/24;
- QString lagString;
+ TQString lagString;
if (days)
{
- const QString daysString = i18n("1 day", "%n days", days);
- const QString hoursString = i18n("1 hour", "%n hours", (hours % 24));
- const QString minutesString = i18n("1 minute", "%n minutes", (minutes % 60));
- const QString secondsString = i18n("1 second", "%n seconds", (seconds % 60));
+ const TQString daysString = i18n("1 day", "%n days", days);
+ const TQString hoursString = i18n("1 hour", "%n hours", (hours % 24));
+ const TQString minutesString = i18n("1 minute", "%n minutes", (minutes % 60));
+ const TQString secondsString = i18n("1 second", "%n seconds", (seconds % 60));
lagString = i18n("%1 = name of server, %2 = (x days), %3 = (x hours), %4 = (x minutes), %5 = (x seconds)", "No answer from server %1 for more than %2, %3, %4, and %5.").arg(lagServer->getServerName())
.arg(daysString).arg(hoursString).arg(minutesString).arg(secondsString);
// or longer than an hour
}
else if (hours)
{
- const QString hoursString = i18n("1 hour", "%n hours", hours);
- const QString minutesString = i18n("1 minute", "%n minutes", (minutes % 60));
- const QString secondsString = i18n("1 second", "%n seconds", (seconds % 60));
+ const TQString hoursString = i18n("1 hour", "%n hours", hours);
+ const TQString minutesString = i18n("1 minute", "%n minutes", (minutes % 60));
+ const TQString secondsString = i18n("1 second", "%n seconds", (seconds % 60));
lagString = i18n("%1 = name of server, %2 = (x hours), %3 = (x minutes), %4 = (x seconds)", "No answer from server %1 for more than %2, %3, and %4.").arg(lagServer->getServerName())
.arg(hoursString).arg(minutesString).arg(secondsString);
// or longer than a minute
}
else if (minutes)
{
- const QString minutesString = i18n("1 minute", "%n minutes", minutes);
- const QString secondsString = i18n("1 second", "%n seconds", (seconds % 60));
+ const TQString minutesString = i18n("1 minute", "%n minutes", minutes);
+ const TQString secondsString = i18n("1 second", "%n seconds", (seconds % 60));
lagString = i18n("%1 = name of server, %2 = (x minutes), %3 = (x seconds)", "No answer from server %1 for more than %2 and %3.").arg(lagServer->getServerName())
.arg(minutesString).arg(secondsString);
// or just some seconds
@@ -210,7 +210,7 @@ void KonversationStatusBar::setTooLongLag(Server* lagServer, int msec)
if (lagServer==m_window->getViewContainer()->getFrontServer())
{
- QString lagString = lagServer->getServerName() + " - ";
+ TQString lagString = lagServer->getServerName() + " - ";
lagString.append(i18n("Lag: %1 s").arg(msec/1000));
if (m_lagLabel->isHidden()) m_lagLabel->show();
@@ -224,9 +224,9 @@ void KonversationStatusBar::updateSSLLabel(Server* server)
&& server->getUseSSL() && server->isConnected())
{
disconnect(m_sslLabel,0,0,0);
- connect(m_sslLabel,SIGNAL(clicked()),server,SLOT(showSSLDialog()));
- QToolTip::remove(m_sslLabel);
- QToolTip::add(m_sslLabel,server->getSSLInfo());
+ connect(m_sslLabel,TQT_SIGNAL(clicked()),server,TQT_SLOT(showSSLDialog()));
+ TQToolTip::remove(m_sslLabel);
+ TQToolTip::add(m_sslLabel,server->getSSLInfo());
m_sslLabel->show();
}
else