diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-23 01:42:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-23 01:42:07 +0000 |
commit | a2277b6bc715464e83882b90c2a058139b8a6b54 (patch) | |
tree | ab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /ksim/library/progress.cpp | |
parent | d3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff) | |
download | tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip |
TQt4 port kdeutils
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksim/library/progress.cpp')
-rw-r--r-- | ksim/library/progress.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/ksim/library/progress.cpp b/ksim/library/progress.cpp index 82ae16e..6a8d2ba 100644 --- a/ksim/library/progress.cpp +++ b/ksim/library/progress.cpp @@ -40,17 +40,17 @@ class KSim::Progress::Private }; KSim::Progress::Progress(int maxValue, - TQWidget *parent, const char *name, - WFlags fl) : KSim::Label(parent, name, fl) + TQWidget *tqparent, const char *name, + WFlags fl) : KSim::Label(tqparent, name, fl) { init(maxValue); configureObject(); } KSim::Progress::Progress(int maxValue, - int type, const TQString &label, TQWidget *parent, + int type, const TQString &label, TQWidget *tqparent, const char *name, WFlags fl) - : KSim::Label(type, label, parent, name, fl) + : KSim::Label(type, label, tqparent, name, fl) { init(maxValue); configureObject(); @@ -58,17 +58,17 @@ KSim::Progress::Progress(int maxValue, KSim::Progress::Progress(int maxValue, int type, const TQString &label, int value, - TQWidget *parent, const char *name, WFlags fl) - : KSim::Label(type, label, parent, name, fl) + TQWidget *tqparent, const char *name, WFlags fl) + : KSim::Label(type, label, tqparent, name, fl) { init(maxValue, value); configureObject(); } KSim::Progress::Progress(int maxValue, - int type, TQWidget *parent, + int type, TQWidget *tqparent, const char *name, WFlags fl) - : KSim::Label(type, parent, name, fl) + : KSim::Label(type, tqparent, name, fl) { init(maxValue); configureObject(); @@ -76,8 +76,8 @@ KSim::Progress::Progress(int maxValue, KSim::Progress::Progress(int maxValue, int type, ProgressType progressType, - TQWidget *parent, const char *name, WFlags fl) - : KSim::Label(type, parent, name, fl) + TQWidget *tqparent, const char *name, WFlags fl) + : KSim::Label(type, tqparent, name, fl) { init(maxValue, 0, progressType); configureObject(); @@ -108,7 +108,7 @@ const TQRect &KSim::Progress::rectOrigin() const return d->rectOrigin; } -void KSim::Progress::configureObject(bool repaintWidget) +void KSim::Progress::configureObject(bool tqrepaintWidget) { KSim::Label::configureObject(false); @@ -120,13 +120,13 @@ void KSim::Progress::configureObject(bool repaintWidget) setMeterPixmap(themeLoader().current().splitPixmap(KSim::Theme::KrellMeter)); } - if (repaintWidget) + if (tqrepaintWidget) update(); } -TQSize KSim::Progress::sizeHint() const +TQSize KSim::Progress::tqsizeHint() const { - TQSize hint(Label::sizeHint()); + TQSize hint(Label::tqsizeHint()); if (d->meterPixmap.height() > hint.height()) hint.setHeight(d->meterPixmap.height()); @@ -186,9 +186,9 @@ void KSim::Progress::setOrigin(const TQRect &origin) void KSim::Progress::setMeterPixmap(const TQPixmap &pixmap) { - TQSize oldSize = sizeHint(); + TQSize oldSize = tqsizeHint(); d->meterPixmap = pixmap; - relayoutLabel(oldSize); + retqlayoutLabel(oldSize); } int KSim::Progress::xLocation() const |