From 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 2 Jul 2011 06:40:27 +0000 Subject: TQt4 port tellico This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/fetch/execexternalfetcher.cpp | 248 +++++++++++++++++++------------------- 1 file changed, 124 insertions(+), 124 deletions(-) (limited to 'src/fetch/execexternalfetcher.cpp') diff --git a/src/fetch/execexternalfetcher.cpp b/src/fetch/execexternalfetcher.cpp index 07b99d8..88f8cd5 100644 --- a/src/fetch/execexternalfetcher.cpp +++ b/src/fetch/execexternalfetcher.cpp @@ -31,38 +31,38 @@ #include #include -#include -#include -#include -#include -#include -#include // needed for QFile::remove +#include +#include +#include +#include +#include +#include // needed for TQFile::remove using Tellico::Fetch::ExecExternalFetcher; -QStringList ExecExternalFetcher::parseArguments(const QString& str_) { +TQStringList ExecExternalFetcher::parseArguments(const TQString& str_) { // matching escaped quotes is too hard... :( -// QRegExp quotes(QString::fromLatin1("[^\\\\](['\"])(.*[^\\\\])\\1")); - QRegExp quotes(QString::fromLatin1("(['\"])(.*)\\1")); +// TQRegExp quotes(TQString::tqfromLatin1("[^\\\\](['\"])(.*[^\\\\])\\1")); + TQRegExp quotes(TQString::tqfromLatin1("(['\"])(.*)\\1")); quotes.setMinimal(true); - QRegExp spaces(QString::fromLatin1("\\s+")); + TQRegExp spaces(TQString::tqfromLatin1("\\s+")); spaces.setMinimal(true); - QStringList args; + TQStringList args; int pos = 0; for(int nextPos = quotes.search(str_); nextPos > -1; pos = nextPos+1, nextPos = quotes.search(str_, pos)) { // a non-quotes arguments runs from pos to nextPos - args += QStringList::split(spaces, str_.mid(pos, nextPos-pos)); + args += TQStringList::split(spaces, str_.mid(pos, nextPos-pos)); // move nextpos marker to end of match pos = quotes.pos(2); // skip quotation mark nextPos += quotes.matchedLength(); args += str_.mid(pos, nextPos-pos-1); } // catch the end stuff - args += QStringList::split(spaces, str_.mid(pos)); + args += TQStringList::split(spaces, str_.mid(pos)); #if 0 - for(QStringList::ConstIterator it = args.begin(); it != args.end(); ++it) { + for(TQStringList::ConstIterator it = args.begin(); it != args.end(); ++it) { myDebug() << *it << endl; } #endif @@ -70,7 +70,7 @@ QStringList ExecExternalFetcher::parseArguments(const QString& str_) { return args; } -ExecExternalFetcher::ExecExternalFetcher(QObject* parent_, const char* name_/*=0*/) : Fetcher(parent_, name_), +ExecExternalFetcher::ExecExternalFetcher(TQObject* tqparent_, const char* name_/*=0*/) : Fetcher(tqparent_, name_), m_started(false), m_collType(-1), m_formatType(-1), m_canUpdate(false), m_process(0), m_deleteOnRemove(false) { } @@ -78,11 +78,11 @@ ExecExternalFetcher::~ExecExternalFetcher() { stop(); } -QString ExecExternalFetcher::defaultName() { +TQString ExecExternalFetcher::defaultName() { return i18n("External Application"); } -QString ExecExternalFetcher::source() const { +TQString ExecExternalFetcher::source() const { return m_name; } @@ -91,21 +91,21 @@ bool ExecExternalFetcher::canFetch(int type_) const { } void ExecExternalFetcher::readConfigHook(const KConfigGroup& config_) { - QString s = config_.readPathEntry("ExecPath"); + TQString s = config_.readPathEntry("ExecPath"); if(!s.isEmpty()) { m_path = s; } - QValueList il; + TQValueList il; if(config_.hasKey("ArgumentKeys")) { il = config_.readIntListEntry("ArgumentKeys"); } else { il.append(Keyword); } - QStringList sl = config_.readListEntry("Arguments"); + TQStringList sl = config_.readListEntry("Arguments"); if(il.count() != sl.count()) { kdWarning() << "ExecExternalFetcher::readConfig() - unequal number of arguments and keys" << endl; } - int n = QMIN(il.count(), sl.count()); + int n = TQMIN(il.count(), sl.count()); for(int i = 0; i < n; ++i) { m_args[static_cast(il[i])] = sl[i]; } @@ -121,10 +121,10 @@ void ExecExternalFetcher::readConfigHook(const KConfigGroup& config_) { m_newStuffName = config_.readEntry("NewStuffName"); } -void ExecExternalFetcher::search(FetchKey key_, const QString& value_) { +void ExecExternalFetcher::search(FetchKey key_, const TQString& value_) { m_started = true; - if(!m_args.contains(key_)) { + if(!m_args.tqcontains(key_)) { stop(); return; } @@ -134,22 +134,22 @@ void ExecExternalFetcher::search(FetchKey key_, const QString& value_) { // the search value needs to be enclosed in quotation marks // but first check to make sure the user didn't do that already // AND the "%1" wasn't used in the settings - QString value = value_; + TQString value = value_; if(key_ == ISBN) { value.remove('-'); // remove hyphens from isbn values // shouldn't hurt and might keep from confusing stupid search sources } - QRegExp rx1(QString::fromLatin1("['\"].*\\1")); + TQRegExp rx1(TQString::tqfromLatin1("['\"].*\\1")); if(!rx1.exactMatch(value)) { value.prepend('"').append('"'); } - QString args = m_args[key_]; - QRegExp rx2(QString::fromLatin1("['\"]%1\\1")); - args.replace(rx2, QString::fromLatin1("%1")); - startSearch(parseArguments(args.arg(value))); // replace %1 with search value + TQString args = m_args[key_]; + TQRegExp rx2(TQString::tqfromLatin1("['\"]%1\\1")); + args.tqreplace(rx2, TQString::tqfromLatin1("%1")); + startSearch(parseArguments(args.tqarg(value))); // tqreplace %1 with search value } -void ExecExternalFetcher::startSearch(const QStringList& args_) { +void ExecExternalFetcher::startSearch(const TQStringList& args_) { if(m_path.isEmpty()) { stop(); return; @@ -157,15 +157,15 @@ void ExecExternalFetcher::startSearch(const QStringList& args_) { #if 0 myDebug() << m_path << endl; - for(QStringList::ConstIterator it = args_.begin(); it != args_.end(); ++it) { + for(TQStringList::ConstIterator it = args_.begin(); it != args_.end(); ++it) { myDebug() << " " << *it << endl; } #endif m_process = new KProcess(); - connect(m_process, SIGNAL(receivedStdout(KProcess*, char*, int)), SLOT(slotData(KProcess*, char*, int))); - connect(m_process, SIGNAL(receivedStderr(KProcess*, char*, int)), SLOT(slotError(KProcess*, char*, int))); - connect(m_process, SIGNAL(processExited(KProcess*)), SLOT(slotProcessExited(KProcess*))); + connect(m_process, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), TQT_SLOT(slotData(KProcess*, char*, int))); + connect(m_process, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), TQT_SLOT(slotError(KProcess*, char*, int))); + connect(m_process, TQT_SIGNAL(processExited(KProcess*)), TQT_SLOT(slotProcessExited(KProcess*))); *m_process << m_path << args_; if(!m_process->start(KProcess::NotifyOnExit, KProcess::AllOutput)) { myDebug() << "ExecExternalFetcher::startSearch() - process failed to start" << endl; @@ -189,15 +189,15 @@ void ExecExternalFetcher::stop() { } void ExecExternalFetcher::slotData(KProcess*, char* buffer_, int len_) { - QDataStream stream(m_data, IO_WriteOnly | IO_Append); + TQDataStream stream(m_data, IO_WriteOnly | IO_Append); stream.writeRawBytes(buffer_, len_); } void ExecExternalFetcher::slotError(KProcess*, char* buffer_, int len_) { - GUI::CursorSaver cs(Qt::arrowCursor); - QString msg = QString::fromLocal8Bit(buffer_, len_); - msg.prepend(source() + QString::fromLatin1(": ")); - if(msg.endsWith(QChar('\n'))) { + GUI::CursorSaver cs(TQt::arrowCursor); + TQString msg = TQString::fromLocal8Bit(buffer_, len_); + msg.prepend(source() + TQString::tqfromLatin1(": ")); + if(msg.endsWith(TQChar('\n'))) { msg.truncate(msg.length()-1); } myDebug() << "ExecExternalFetcher::slotError() - " << msg << endl; @@ -209,13 +209,13 @@ void ExecExternalFetcher::slotProcessExited(KProcess*) { if(!m_process->normalExit() || m_process->exitStatus()) { myDebug() << "ExecExternalFetcher::slotProcessExited() - "<< source() << ": process did not exit successfully" << endl; if(!m_errors.isEmpty()) { - message(m_errors.join(QChar('\n')), MessageHandler::Error); + message(m_errors.join(TQChar('\n')), MessageHandler::Error); } stop(); return; } if(!m_errors.isEmpty()) { - message(m_errors.join(QChar('\n')), MessageHandler::Warning); + message(m_errors.join(TQChar('\n')), MessageHandler::Warning); } if(m_data.isEmpty()) { @@ -231,11 +231,11 @@ void ExecExternalFetcher::slotProcessExited(KProcess*) { return; } - imp->setText(QString::fromUtf8(m_data, m_data.size())); + imp->setText(TQString::fromUtf8(m_data, m_data.size())); Data::CollPtr coll = imp->collection(); if(!coll) { if(!imp->statusMessage().isEmpty()) { - message(imp->statusMessage(), MessageHandler::Status); + message(imp->statusMessage(), MessageHandler::tqStatus); } myDebug() << "ExecExternalFetcher::slotProcessExited() - "<< source() << ": no collection pointer" << endl; delete imp; @@ -252,60 +252,60 @@ void ExecExternalFetcher::slotProcessExited(KProcess*) { Data::EntryVec entries = coll->entries(); for(Data::EntryVec::Iterator entry = entries.begin(); entry != entries.end(); ++entry) { - QString desc; + TQString desc; switch(coll->type()) { case Data::Collection::Book: case Data::Collection::Bibtex: - desc = entry->field(QString::fromLatin1("author")) - + QChar('/') - + entry->field(QString::fromLatin1("publisher")); - if(!entry->field(QString::fromLatin1("cr_year")).isEmpty()) { - desc += QChar('/') + entry->field(QString::fromLatin1("cr_year")); - } else if(!entry->field(QString::fromLatin1("pub_year")).isEmpty()){ - desc += QChar('/') + entry->field(QString::fromLatin1("pub_year")); + desc = entry->field(TQString::tqfromLatin1("author")) + + TQChar('/') + + entry->field(TQString::tqfromLatin1("publisher")); + if(!entry->field(TQString::tqfromLatin1("cr_year")).isEmpty()) { + desc += TQChar('/') + entry->field(TQString::tqfromLatin1("cr_year")); + } else if(!entry->field(TQString::tqfromLatin1("pub_year")).isEmpty()){ + desc += TQChar('/') + entry->field(TQString::tqfromLatin1("pub_year")); } break; case Data::Collection::Video: - desc = entry->field(QString::fromLatin1("studio")) - + QChar('/') - + entry->field(QString::fromLatin1("director")) - + QChar('/') - + entry->field(QString::fromLatin1("year")) - + QChar('/') - + entry->field(QString::fromLatin1("medium")); + desc = entry->field(TQString::tqfromLatin1("studio")) + + TQChar('/') + + entry->field(TQString::tqfromLatin1("director")) + + TQChar('/') + + entry->field(TQString::tqfromLatin1("year")) + + TQChar('/') + + entry->field(TQString::tqfromLatin1("medium")); break; case Data::Collection::Album: - desc = entry->field(QString::fromLatin1("artist")) - + QChar('/') - + entry->field(QString::fromLatin1("label")) - + QChar('/') - + entry->field(QString::fromLatin1("year")); + desc = entry->field(TQString::tqfromLatin1("artist")) + + TQChar('/') + + entry->field(TQString::tqfromLatin1("label")) + + TQChar('/') + + entry->field(TQString::tqfromLatin1("year")); break; case Data::Collection::Game: - desc = entry->field(QString::fromLatin1("platform")); + desc = entry->field(TQString::tqfromLatin1("platform")); break; case Data::Collection::ComicBook: - desc = entry->field(QString::fromLatin1("publisher")) - + QChar('/') - + entry->field(QString::fromLatin1("pub_year")); + desc = entry->field(TQString::tqfromLatin1("publisher")) + + TQChar('/') + + entry->field(TQString::tqfromLatin1("pub_year")); break; case Data::Collection::BoardGame: - desc = entry->field(QString::fromLatin1("designer")) - + QChar('/') - + entry->field(QString::fromLatin1("publisher")) - + QChar('/') - + entry->field(QString::fromLatin1("year")); + desc = entry->field(TQString::tqfromLatin1("designer")) + + TQChar('/') + + entry->field(TQString::tqfromLatin1("publisher")) + + TQChar('/') + + entry->field(TQString::tqfromLatin1("year")); break; default: break; } - SearchResult* r = new SearchResult(this, entry->title(), desc, entry->field(QString::fromLatin1("isbn"))); + SearchResult* r = new SearchResult(this, entry->title(), desc, entry->field(TQString::tqfromLatin1("isbn"))); m_entries.insert(r->uid, entry); emit signalResultFound(r); } @@ -324,36 +324,36 @@ void ExecExternalFetcher::updateEntry(Data::EntryPtr entry_) { m_started = true; Data::ConstEntryPtr e(entry_.data()); - QStringList args = parseArguments(m_updateArgs); - for(QStringList::Iterator it = args.begin(); it != args.end(); ++it) { + TQStringList args = parseArguments(m_updateArgs); + for(TQStringList::Iterator it = args.begin(); it != args.end(); ++it) { *it = Data::Entry::dependentValue(e, *it, false); } startSearch(args); } -Tellico::Fetch::ConfigWidget* ExecExternalFetcher::configWidget(QWidget* parent_) const { - return new ExecExternalFetcher::ConfigWidget(parent_, this); +Tellico::Fetch::ConfigWidget* ExecExternalFetcher::configWidget(TQWidget* tqparent_) const { + return new ExecExternalFetcher::ConfigWidget(tqparent_, this); } -ExecExternalFetcher::ConfigWidget::ConfigWidget(QWidget* parent_, const ExecExternalFetcher* fetcher_/*=0*/) - : Fetch::ConfigWidget(parent_), m_deleteOnRemove(false) { - QGridLayout* l = new QGridLayout(optionsWidget(), 5, 2); +ExecExternalFetcher::ConfigWidget::ConfigWidget(TQWidget* tqparent_, const ExecExternalFetcher* fetcher_/*=0*/) + : Fetch::ConfigWidget(tqparent_), m_deleteOnRemove(false) { + TQGridLayout* l = new TQGridLayout(optionsWidget(), 5, 2); l->setSpacing(4); l->setColStretch(1, 10); int row = -1; - QLabel* label = new QLabel(i18n("Collection &type:"), optionsWidget()); + TQLabel* label = new TQLabel(i18n("Collection &type:"), optionsWidget()); l->addWidget(label, ++row, 0); m_collCombo = new GUI::CollectionTypeCombo(optionsWidget()); - connect(m_collCombo, SIGNAL(activated(int)), SLOT(slotSetModified())); + connect(m_collCombo, TQT_SIGNAL(activated(int)), TQT_SLOT(slotSetModified())); l->addWidget(m_collCombo, row, 1); - QString w = i18n("Set the collection type of the data returned from the external application."); - QWhatsThis::add(label, w); - QWhatsThis::add(m_collCombo, w); + TQString w = i18n("Set the collection type of the data returned from the external application."); + TQWhatsThis::add(label, w); + TQWhatsThis::add(m_collCombo, w); label->setBuddy(m_collCombo); - label = new QLabel(i18n("&Result type: "), optionsWidget()); + label = new TQLabel(i18n("&Result type: "), optionsWidget()); l->addWidget(label, ++row, 0); m_formatCombo = new GUI::ComboBox(optionsWidget()); Import::FormatMap formatMap = ImportDialog::formatMap(); @@ -362,30 +362,30 @@ ExecExternalFetcher::ConfigWidget::ConfigWidget(QWidget* parent_, const ExecExte m_formatCombo->insertItem(it.data(), it.key()); } } - connect(m_formatCombo, SIGNAL(activated(int)), SLOT(slotSetModified())); + connect(m_formatCombo, TQT_SIGNAL(activated(int)), TQT_SLOT(slotSetModified())); l->addWidget(m_formatCombo, row, 1); w = i18n("Set the result type of the data returned from the external application."); - QWhatsThis::add(label, w); - QWhatsThis::add(m_formatCombo, w); + TQWhatsThis::add(label, w); + TQWhatsThis::add(m_formatCombo, w); label->setBuddy(m_formatCombo); - label = new QLabel(i18n("Application &path: "), optionsWidget()); + label = new TQLabel(i18n("Application &path: "), optionsWidget()); l->addWidget(label, ++row, 0); m_pathEdit = new KURLRequester(optionsWidget()); - connect(m_pathEdit, SIGNAL(textChanged(const QString&)), SLOT(slotSetModified())); + connect(m_pathEdit, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(slotSetModified())); l->addWidget(m_pathEdit, row, 1); w = i18n("Set the path of the application to run that should output a valid Tellico data file."); - QWhatsThis::add(label, w); - QWhatsThis::add(m_pathEdit, w); + TQWhatsThis::add(label, w); + TQWhatsThis::add(m_pathEdit, w); label->setBuddy(m_pathEdit); w = i18n("Select the search keys supported by the data source."); - QString w2 = i18n("Add any arguments that may be needed. %1 will be replaced by the search term."); - QVGroupBox* box = new QVGroupBox(i18n("Arguments"), optionsWidget()); + TQString w2 = i18n("Add any arguments that may be needed. %1 will be replaced by the search term."); + TQVGroupBox* box = new TQVGroupBox(i18n("Arguments"), optionsWidget()); ++row; l->addMultiCellWidget(box, row, row, 0, 1); - QWidget* grid = new QWidget(box); - QGridLayout* gridLayout = new QGridLayout(grid); + TQWidget* grid = new TQWidget(box); + TQGridLayout* gridLayout = new TQGridLayout(grid); gridLayout->setSpacing(2); row = -1; const Fetch::KeyMap keyMap = Fetch::Manager::self()->keyMap(); @@ -394,15 +394,15 @@ ExecExternalFetcher::ConfigWidget::ConfigWidget(QWidget* parent_, const ExecExte if(key == Raw) { continue; } - QCheckBox* cb = new QCheckBox(it.data(), grid); + TQCheckBox* cb = new TQCheckBox(it.data(), grid); gridLayout->addWidget(cb, ++row, 0); m_cbDict.insert(key, cb); GUI::LineEdit* le = new GUI::LineEdit(grid); - le->setHint(QString::fromLatin1("%1")); // for example - le->completionObject()->addItem(QString::fromLatin1("%1")); + le->setHint(TQString::tqfromLatin1("%1")); // for example + le->completionObject()->addItem(TQString::tqfromLatin1("%1")); gridLayout->addWidget(le, row, 1); m_leDict.insert(key, le); - if(fetcher_ && fetcher_->m_args.contains(key)) { + if(fetcher_ && fetcher_->m_args.tqcontains(key)) { cb->setChecked(true); le->setEnabled(true); le->setText(fetcher_->m_args[key]); @@ -410,23 +410,23 @@ ExecExternalFetcher::ConfigWidget::ConfigWidget(QWidget* parent_, const ExecExte cb->setChecked(false); le->setEnabled(false); } - connect(cb, SIGNAL(toggled(bool)), le, SLOT(setEnabled(bool))); - QWhatsThis::add(cb, w); - QWhatsThis::add(le, w2); + connect(cb, TQT_SIGNAL(toggled(bool)), le, TQT_SLOT(setEnabled(bool))); + TQWhatsThis::add(cb, w); + TQWhatsThis::add(le, w2); } - m_cbUpdate = new QCheckBox(i18n("Update"), grid); + m_cbUpdate = new TQCheckBox(i18n("Update"), grid); gridLayout->addWidget(m_cbUpdate, ++row, 0); m_leUpdate = new GUI::LineEdit(grid); - m_leUpdate->setHint(QString::fromLatin1("%{title}")); // for example - m_leUpdate->completionObject()->addItem(QString::fromLatin1("%{title}")); - m_leUpdate->completionObject()->addItem(QString::fromLatin1("%{isbn}")); + m_leUpdate->setHint(TQString::tqfromLatin1("%{title}")); // for example + m_leUpdate->completionObject()->addItem(TQString::tqfromLatin1("%{title}")); + m_leUpdate->completionObject()->addItem(TQString::tqfromLatin1("%{isbn}")); gridLayout->addWidget(m_leUpdate, row, 1); /* TRANSLATORS: Do not translate %{author}. */ w2 = i18n("

Enter the arguments which should be used to search for available updates to an entry.

" "The format is the same as for Dependent fields, where field values " "are contained inside braces, such as %{author}. See the documentation for details.

"); - QWhatsThis::add(m_cbUpdate, w); - QWhatsThis::add(m_leUpdate, w2); + TQWhatsThis::add(m_cbUpdate, w); + TQWhatsThis::add(m_leUpdate, w2); if(fetcher_ && fetcher_->m_canUpdate) { m_cbUpdate->setChecked(true); m_leUpdate->setEnabled(true); @@ -435,7 +435,7 @@ ExecExternalFetcher::ConfigWidget::ConfigWidget(QWidget* parent_, const ExecExte m_cbUpdate->setChecked(false); m_leUpdate->setEnabled(false); } - connect(m_cbUpdate, SIGNAL(toggled(bool)), m_leUpdate, SLOT(setEnabled(bool))); + connect(m_cbUpdate, TQT_SIGNAL(toggled(bool)), m_leUpdate, TQT_SLOT(setEnabled(bool))); l->setRowStretch(++row, 1); @@ -462,25 +462,25 @@ ExecExternalFetcher::ConfigWidget::~ConfigWidget() { void ExecExternalFetcher::ConfigWidget::readConfig(KConfig* config_) { m_pathEdit->setURL(config_->readPathEntry("ExecPath")); - QValueList argKeys = config_->readIntListEntry("ArgumentKeys"); - QStringList argValues = config_->readListEntry("Arguments"); + TQValueList argKeys = config_->readIntListEntry("ArgumentKeys"); + TQStringList argValues = config_->readListEntry("Arguments"); if(argKeys.count() != argValues.count()) { kdWarning() << "ExecExternalFetcher::ConfigWidget::readConfig() - unequal number of arguments and keys" << endl; } - int n = QMIN(argKeys.count(), argValues.count()); - QMap args; + int n = TQMIN(argKeys.count(), argValues.count()); + TQMap args; for(int i = 0; i < n; ++i) { args[static_cast(argKeys[i])] = argValues[i]; } - for(QValueList::Iterator it = argKeys.begin(); it != argKeys.end(); ++it) { + for(TQValueList::Iterator it = argKeys.begin(); it != argKeys.end(); ++it) { if(*it == Raw) { continue; } FetchKey key = static_cast(*it); - QCheckBox* cb = m_cbDict[key]; + TQCheckBox* cb = m_cbDict[key]; KLineEdit* le = m_leDict[key]; if(cb && le) { - if(args.contains(key)) { + if(args.tqcontains(key)) { cb->setChecked(true); le->setEnabled(true); le->setText(args[key]); @@ -514,13 +514,13 @@ void ExecExternalFetcher::ConfigWidget::readConfig(KConfig* config_) { } void ExecExternalFetcher::ConfigWidget::saveConfig(KConfigGroup& config_) { - QString s = m_pathEdit->url(); + TQString s = m_pathEdit->url(); if(!s.isEmpty()) { config_.writePathEntry("ExecPath", s); } - QValueList keys; - QStringList args; - for(QIntDictIterator it(m_cbDict); it.current(); ++it) { + TQValueList keys; + TQStringList args; + for(TQIntDictIterator it(m_cbDict); it.current(); ++it) { if(it.current()->isChecked()) { keys << it.currentKey(); args << m_leDict[it.currentKey()]->text(); @@ -549,12 +549,12 @@ void ExecExternalFetcher::ConfigWidget::removed() { return; } if(!m_newStuffName.isEmpty()) { - NewStuff::Manager man(this); + NewStuff::Manager man(TQT_TQOBJECT(this)); man.removeScript(m_newStuffName); } } -QString ExecExternalFetcher::ConfigWidget::preferredName() const { +TQString ExecExternalFetcher::ConfigWidget::preferredName() const { return m_name.isEmpty() ? ExecExternalFetcher::defaultName() : m_name; } -- cgit v1.2.1