From 7a741e43ff09e70396a918956219b8316c48e522 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 27 Apr 2011 00:40:29 +0000 Subject: TQt4 port Dolphin This enables compilation under Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/dolphin@1229359 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/dolphinstatusbar.cpp | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'src/dolphinstatusbar.cpp') 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 -#include -#include +#include +#include #include #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; } -- cgit v1.2.1