summaryrefslogtreecommitdiffstats
path: root/src/progressmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/progressmanager.cpp')
-rw-r--r--src/progressmanager.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/progressmanager.cpp b/src/progressmanager.cpp
index a487710..ab83392 100644
--- a/src/progressmanager.cpp
+++ b/src/progressmanager.cpp
@@ -14,7 +14,7 @@
#include "progressmanager.h"
#include "tellico_debug.h"
-#include <qtimer.h>
+#include <tqtimer.h>
using Tellico::ProgressItem;
using Tellico::ProgressManager;
@@ -24,7 +24,7 @@ ProgressItem::Done::~Done() {
ProgressManager::self()->setDone(m_object);
}
-ProgressItem::ProgressItem(const QString& label_, bool canCancel_)
+ProgressItem::ProgressItem(const TQString& label_, bool canCancel_)
: m_label(label_)
, m_canCancel(canCancel_)
, m_progress(0)
@@ -56,7 +56,7 @@ void ProgressItem::setDone() {
}
emit signalDone(this);
// make sure the deleting doesn't interfere with anything
- QTimer::singleShot(3000, this, SLOT(deleteLater()));
+ TQTimer::singleShot(3000, this, TQT_SLOT(deleteLater()));
}
void ProgressItem::cancel() {
@@ -69,11 +69,11 @@ void ProgressItem::cancel() {
emit signalCancelled(this);
}
-ProgressManager::ProgressManager() : QObject() {
+ProgressManager::ProgressManager() : TQObject() {
}
-void ProgressManager::setProgress(const QObject* owner_, uint steps_) {
- if(!m_items.contains(owner_)) {
+void ProgressManager::setProgress(const TQObject* owner_, uint steps_) {
+ if(!m_items.tqcontains(owner_)) {
return;
}
@@ -82,8 +82,8 @@ void ProgressManager::setProgress(const QObject* owner_, uint steps_) {
// emit signalItemProgress(m_items[owner_]);
}
-void ProgressManager::setTotalSteps(const QObject* owner_, uint steps_) {
- if(!m_items.contains(owner_)) {
+void ProgressManager::setTotalSteps(const TQObject* owner_, uint steps_) {
+ if(!m_items.tqcontains(owner_)) {
return;
}
@@ -91,8 +91,8 @@ void ProgressManager::setTotalSteps(const QObject* owner_, uint steps_) {
// updateTotalProgress(); // called in ProgressItem::setTotalSteps()
}
-void ProgressManager::setDone(const QObject* owner_) {
- if(!m_items.contains(owner_)) {
+void ProgressManager::setDone(const TQObject* owner_) {
+ if(!m_items.tqcontains(owner_)) {
return;
}
setDone(m_items[owner_]);
@@ -120,23 +120,23 @@ void ProgressManager::slotItemDone(ProgressItem* item_) {
// emit signalItemDone(item_);
}
-ProgressItem& ProgressManager::newProgressItemImpl(const QObject* owner_,
- const QString& label_,
+ProgressItem& ProgressManager::newProgressItemImpl(const TQObject* owner_,
+ const TQString& label_,
bool canCancel_) {
// myDebug() << "ProgressManager::newProgressItem() - " << owner_->className() << ":" << label_ << endl;
- if(m_items.contains(owner_)) {
+ if(m_items.tqcontains(owner_)) {
return *m_items[owner_];
}
ProgressItem* item = new ProgressItem(label_, canCancel_);
m_items.insert(owner_, item);
- connect(item, SIGNAL(signalTotalSteps(ProgressItem*)), SLOT(slotUpdateTotalProgress()));
- connect(item, SIGNAL(signalProgress(ProgressItem*)), SLOT(slotUpdateTotalProgress()));
- connect(item, SIGNAL(signalDone(ProgressItem*)), SLOT(slotUpdateTotalProgress()));
- connect(item, SIGNAL(signalDone(ProgressItem*)), SLOT(slotItemDone(ProgressItem*)));
+ connect(item, TQT_SIGNAL(signalTotalSteps(ProgressItem*)), TQT_SLOT(slotUpdateTotalProgress()));
+ connect(item, TQT_SIGNAL(signalProgress(ProgressItem*)), TQT_SLOT(slotUpdateTotalProgress()));
+ connect(item, TQT_SIGNAL(signalDone(ProgressItem*)), TQT_SLOT(slotUpdateTotalProgress()));
+ connect(item, TQT_SIGNAL(signalDone(ProgressItem*)), TQT_SLOT(slotItemDone(ProgressItem*)));
-// connect(item, SIGNAL(signalProgress(ProgressItem*)), SIGNAL(signalItemProgress(ProgressItem*)));
+// connect(item, TQT_SIGNAL(signalProgress(ProgressItem*)), TQT_SIGNAL(signalItemProgress(ProgressItem*)));
// emit signalItemAdded(item);
return *item;
}