diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /kommander/widgets/progressbar.cpp | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/widgets/progressbar.cpp')
-rw-r--r-- | kommander/widgets/progressbar.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kommander/widgets/progressbar.cpp b/kommander/widgets/progressbar.cpp index 874601f5..30d4f329 100644 --- a/kommander/widgets/progressbar.cpp +++ b/kommander/widgets/progressbar.cpp @@ -17,11 +17,11 @@ #include <klocale.h> /* QT INCLUDES */ -#include <qobject.h> -#include <qstring.h> -#include <qwidget.h> -#include <qstringlist.h> -#include <qevent.h> +#include <tqobject.h> +#include <tqstring.h> +#include <tqwidget.h> +#include <tqstringlist.h> +#include <tqevent.h> /* OTHER INCLUDES */ #include <specials.h> @@ -35,25 +35,25 @@ enum Functions { LastFunction }; -ProgressBar::ProgressBar(QWidget *a_parent, const char *a_name) +ProgressBar::ProgressBar(TQWidget *a_parent, const char *a_name) : KProgress(a_parent, a_name), KommanderWidget(this) { - QStringList states; + TQStringList states; states << "default"; setStates(states); setDisplayStates(states); KommanderPlugin::setDefaultGroup(Group::DCOP); - KommanderPlugin::registerFunction(PB_setHighlightColor, "setBarColor(QString widget, QString Color)", i18n("Sets the ProgresBar color"), 2); - KommanderPlugin::registerFunction(PB_setHightlightTextColor, "setBarTextColor(QString widget, QString Color)", i18n("Sets the ProgresBar text color"), 2); + KommanderPlugin::registerFunction(PB_setHighlightColor, "setBarColor(TQString widget, TQString Color)", i18n("Sets the ProgresBar color"), 2); + KommanderPlugin::registerFunction(PB_setHightlightTextColor, "setBarTextColor(TQString widget, TQString Color)", i18n("Sets the ProgresBar text color"), 2); } ProgressBar::~ProgressBar() { } -QString ProgressBar::currentState() const +TQString ProgressBar::currentState() const { - return QString("default"); + return TQString("default"); } bool ProgressBar::isKommanderWidget() const @@ -61,22 +61,22 @@ bool ProgressBar::isKommanderWidget() const return true; } -QStringList ProgressBar::associatedText() const +TQStringList ProgressBar::associatedText() const { return KommanderWidget::associatedText(); } -void ProgressBar::setAssociatedText(const QStringList& a_at) +void ProgressBar::setAssociatedText(const TQStringList& a_at) { KommanderWidget::setAssociatedText(a_at); } -void ProgressBar::setPopulationText(const QString& a_text) +void ProgressBar::setPopulationText(const TQString& a_text) { KommanderWidget::setPopulationText(a_text); } -QString ProgressBar::populationText() const +TQString ProgressBar::populationText() const { return KommanderWidget::populationText(); } @@ -86,9 +86,9 @@ void ProgressBar::populate() setProgress(KommanderWidget::evalAssociatedText(populationText()).toUInt()); } -void ProgressBar::showEvent(QShowEvent *e) +void ProgressBar::showEvent(TQShowEvent *e) { - QProgressBar::showEvent(e); + TQProgressBar::showEvent(e); emit widgetOpened(); } @@ -97,11 +97,11 @@ bool ProgressBar::isFunctionSupported(int f) return f == DCOP::text || f == DCOP::setText || f == DCOP::clear || f == DCOP::setMaximum || f == DCOP::geometry || (f > FirstFunction && f < LastFunction); } -QString ProgressBar::handleDCOP(int function, const QStringList& args) +TQString ProgressBar::handleDCOP(int function, const TQStringList& args) { switch (function) { case DCOP::text: - return QString::number(progress()); + return TQString::number(progress()); case DCOP::setText: setProgress(args[0].toUInt()); break; @@ -113,32 +113,32 @@ QString ProgressBar::handleDCOP(int function, const QStringList& args) break; case DCOP::geometry: { - QString geo = QString::number(this->x())+" "+QString::number(this->y())+" "+QString::number(this->width())+" "+QString::number(this->height()); + TQString geo = TQString::number(this->x())+" "+TQString::number(this->y())+" "+TQString::number(this->width())+" "+TQString::number(this->height()); return geo; break; } case PB_setHighlightColor: { - QColor color; + TQColor color; color.setNamedColor(args[0]); - QPalette p = this->palette(); - p.setColor(QPalette::Active, QColorGroup::Highlight, color); + TQPalette p = this->palette(); + p.setColor(TQPalette::Active, TQColorGroup::Highlight, color); this->setPalette( p, TRUE ); break; } case PB_setHightlightTextColor: { - QColor color; + TQColor color; color.setNamedColor(args[0]); - QPalette p = this->palette(); - p.setColor(QPalette::Active, QColorGroup::HighlightedText, color); + TQPalette p = this->palette(); + p.setColor(TQPalette::Active, TQColorGroup::HighlightedText, color); this->setPalette( p, TRUE ); break; } default: return KommanderWidget::handleDCOP(function, args); } - return QString(); + return TQString(); } #include "progressbar.moc" |