diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:56:31 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:56:31 -0600 |
commit | c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (patch) | |
tree | 1ee1912ac4bb966475f0db0f2a78678661b4b4a5 /kexi/core/kexi.cpp | |
parent | 94844816550ad672ccfcdc25659c625546239998 (diff) | |
download | koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.tar.gz koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 94844816550ad672ccfcdc25659c625546239998.
Diffstat (limited to 'kexi/core/kexi.cpp')
-rw-r--r-- | kexi/core/kexi.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/kexi/core/kexi.cpp b/kexi/core/kexi.cpp index e297ee52..24cd08e8 100644 --- a/kexi/core/kexi.cpp +++ b/kexi/core/kexi.cpp @@ -172,47 +172,47 @@ TQString Kexi::msgYouCanImproveData() { //-------------------------------------------------------------------------------- -ObjectStatus::ObjectStatus() +ObjecttqStatus::ObjecttqStatus() : msgHandler(0) { } -ObjectStatus::ObjectStatus(const TQString& message, const TQString& description) +ObjecttqStatus::ObjecttqStatus(const TQString& message, const TQString& description) : msgHandler(0) { - setStatus(message, description); + settqStatus(message, description); } -ObjectStatus::ObjectStatus(KexiDB::Object* dbObject, const TQString& message, const TQString& description) +ObjecttqStatus::ObjecttqStatus(KexiDB::Object* dbObject, const TQString& message, const TQString& description) : msgHandler(0) { - setStatus(dbObject, message, description); + settqStatus(dbObject, message, description); } -ObjectStatus::~ObjectStatus() +ObjecttqStatus::~ObjecttqStatus() { delete msgHandler; } -const ObjectStatus& ObjectStatus::status() const +const ObjecttqStatus& ObjecttqStatus::status() const { return *this; } -bool ObjectStatus::error() const +bool ObjecttqStatus::error() const { return !message.isEmpty() || (dynamic_cast<KexiDB::Object*>((TQObject*)dbObj) && dynamic_cast<KexiDB::Object*>((TQObject*)dbObj)->error()); } -void ObjectStatus::setStatus(const TQString& message, const TQString& description) +void ObjecttqStatus::settqStatus(const TQString& message, const TQString& description) { this->dbObj=0; this->message=message; this->description=description; } -void ObjectStatus::setStatus(KexiDB::Object* dbObject, const TQString& message, const TQString& description) +void ObjecttqStatus::settqStatus(KexiDB::Object* dbObject, const TQString& message, const TQString& description) { if (dynamic_cast<TQObject*>(dbObject)) { dbObj = dynamic_cast<TQObject*>(dbObject); @@ -221,7 +221,7 @@ void ObjectStatus::setStatus(KexiDB::Object* dbObject, const TQString& message, this->description=description; } -void ObjectStatus::setStatus(KexiDB::ResultInfo* result, const TQString& message, const TQString& description) +void ObjecttqStatus::settqStatus(KexiDB::ResultInfo* result, const TQString& message, const TQString& description) { if (result) { if (message.isEmpty()) @@ -235,41 +235,41 @@ void ObjectStatus::setStatus(KexiDB::ResultInfo* result, const TQString& message this->description = description + " " + result->desc; } else - clearStatus(); + cleartqStatus(); } -void ObjectStatus::setStatus(KexiDB::Object* dbObject, KexiDB::ResultInfo* result, +void ObjecttqStatus::settqStatus(KexiDB::Object* dbObject, KexiDB::ResultInfo* result, const TQString& message, const TQString& description) { if (!dbObject) - setStatus(result, message, description); + settqStatus(result, message, description); else if (!result) - setStatus(dbObject, message, description); + settqStatus(dbObject, message, description); else { - setStatus(dbObject, message, description); - setStatus(result, this->message, this->description); + settqStatus(dbObject, message, description); + settqStatus(result, this->message, this->description); } } -void ObjectStatus::clearStatus() +void ObjecttqStatus::cleartqStatus() { message=TQString(); description=TQString(); } -TQString ObjectStatus::singleStatusString() const { +TQString ObjecttqStatus::singleStatusString() const { if (message.isEmpty() || description.isEmpty()) return message; return message + " " + description; } -void ObjectStatus::append( const ObjectStatus& otherStatus ) { +void ObjecttqStatus::append( const ObjecttqStatus& othertqStatus ) { if (message.isEmpty()) { - message = otherStatus.message; - description = otherStatus.description; + message = othertqStatus.message; + description = othertqStatus.description; return; } - const TQString s( otherStatus.singleStatusString() ); + const TQString s( othertqStatus.singleStatusString() ); if (s.isEmpty()) return; if (description.isEmpty()) { @@ -283,7 +283,7 @@ void ObjectStatus::append( const ObjectStatus& otherStatus ) { class ObjectStatusMessageHandler : public KexiDB::MessageHandler { public: - ObjectStatusMessageHandler(ObjectStatus *status) + ObjectStatusMessageHandler(ObjecttqStatus *status) : KexiDB::MessageHandler() , m_status(status) { @@ -295,18 +295,18 @@ class ObjectStatusMessageHandler : public KexiDB::MessageHandler virtual void showErrorMessage(const TQString &title, const TQString &details = TQString()) { - m_status->setStatus(title, details); + m_status->settqStatus(title, details); } virtual void showErrorMessage(KexiDB::Object *obj, const TQString& msg = TQString()) { - m_status->setStatus(obj, msg); + m_status->settqStatus(obj, msg); } - ObjectStatus *m_status; + ObjecttqStatus *m_status; }; -ObjectStatus::operator KexiDB::MessageHandler*() +ObjecttqStatus::operator KexiDB::MessageHandler*() { if (!msgHandler) msgHandler = new ObjectStatusMessageHandler(this); @@ -330,14 +330,14 @@ void KEXI_UNFINISHED(const TQString& feature_name, const TQString& extra_text) TQString msg; if (feature_name.isEmpty()) msg = i18n("This function is not available for version %1 of %2 application.") - .arg(KEXI_VERSION_STRING) - .arg(KEXI_APP_NAME); + .tqarg(KEXI_VERSION_STRING) + .tqarg(KEXI_APP_NAME); else { TQString feature_name_(feature_name); msg = i18n("\"%1\" function is not available for version %2 of %3 application.") - .arg(feature_name_.replace("&","")) - .arg(KEXI_VERSION_STRING) - .arg(KEXI_APP_NAME); + .tqarg(feature_name_.replace("&","")) + .tqarg(KEXI_VERSION_STRING) + .tqarg(KEXI_APP_NAME); } TQString extra_text_(extra_text); |