summaryrefslogtreecommitdiffstats
path: root/src/dolphinstatusbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphinstatusbar.cpp')
-rw-r--r--src/dolphinstatusbar.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/dolphinstatusbar.cpp b/src/dolphinstatusbar.cpp
index cfa5fb4..9c0dcbd 100644
--- a/src/dolphinstatusbar.cpp
+++ b/src/dolphinstatusbar.cpp
@@ -20,44 +20,44 @@
#include "dolphinstatusbar.h"
#include <kprogress.h>
-#include <qlabel.h>
-#include <qtimer.h>
+#include <tqlabel.h>
+#include <tqtimer.h>
#include <kiconloader.h>
#include "dolphinview.h"
#include "statusbarmessagelabel.h"
#include "statusbarspaceinfo.h"
-DolphinStatusBar::DolphinStatusBar(DolphinView* parent) :
- QHBox(parent),
+DolphinStatusBar::DolphinStatusBar(DolphinView* tqparent) :
+ TQHBox(tqparent),
m_messageLabel(0),
m_spaceInfo(0),
m_progressBar(0),
m_progress(100)
{
m_messageLabel = new StatusBarMessageLabel(this);
- m_messageLabel->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
+ m_messageLabel->tqsetSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Fixed);
m_spaceInfo = new StatusBarSpaceInfo(this);
- m_spaceInfo->setURL(parent->url());
+ m_spaceInfo->setURL(tqparent->url());
- m_progressText = new QLabel(this);
+ m_progressText = new TQLabel(this);
m_progressText->hide();
m_progressBar = new KProgress(this);
m_progressBar->hide();
- m_progressTimer = new QTimer(this);
- connect(m_progressTimer, SIGNAL(timeout()),
- this, SLOT(slotProgressTimer()));
+ m_progressTimer = new TQTimer(this);
+ connect(m_progressTimer, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(slotProgressTimer()));
- const QSize size(m_progressBar->sizeHint());
+ const TQSize size(m_progressBar->tqsizeHint());
m_progressBar->setMaximumWidth(size.width());
setMinimumHeight(size.height());
m_messageLabel->setMinimumTextHeight(size.height());
- connect(parent, SIGNAL(signalURLChanged(const KURL&)),
- this, SLOT(slotURLChanged(const KURL&)));
+ connect(tqparent, TQT_SIGNAL(signalURLChanged(const KURL&)),
+ this, TQT_SLOT(slotURLChanged(const KURL&)));
}
@@ -65,7 +65,7 @@ DolphinStatusBar::~DolphinStatusBar()
{
}
-void DolphinStatusBar::setMessage(const QString& msg,
+void DolphinStatusBar::setMessage(const TQString& msg,
Type type)
{
m_messageLabel->setText(msg);
@@ -89,17 +89,17 @@ DolphinStatusBar::Type DolphinStatusBar::type() const
return m_messageLabel->type();
}
-QString DolphinStatusBar::message() const
+TQString DolphinStatusBar::message() const
{
return m_messageLabel->text();
}
-void DolphinStatusBar::setProgressText(const QString& text)
+void DolphinStatusBar::setProgressText(const TQString& text)
{
m_progressText->setText(text);
}
-QString DolphinStatusBar::progressText() const
+TQString DolphinStatusBar::progressText() const
{
return m_progressText->text();
}
@@ -117,10 +117,10 @@ void DolphinStatusBar::setProgress(int percent)
m_progressBar->setProgress(m_progress);
m_progressTimer->start(300, true);
- const QString msg(m_messageLabel->text());
+ const TQString msg(m_messageLabel->text());
if (msg.isEmpty() || (msg == m_defaultText)) {
if (percent == 0) {
- m_messageLabel->setText(QString::null);
+ m_messageLabel->setText(TQString());
m_messageLabel->setType(Default);
}
else if (percent == 100) {
@@ -137,7 +137,7 @@ void DolphinStatusBar::clear()
m_messageLabel->setType(Default);
}
-void DolphinStatusBar::setDefaultText(const QString& text)
+void DolphinStatusBar::setDefaultText(const TQString& text)
{
m_defaultText = text;
}