summaryrefslogtreecommitdiffstats
path: root/src/newstuff/dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newstuff/dialog.cpp')
-rw-r--r--src/newstuff/dialog.cpp246
1 files changed, 123 insertions, 123 deletions
diff --git a/src/newstuff/dialog.cpp b/src/newstuff/dialog.cpp
index c13a249..6cacc72 100644
--- a/src/newstuff/dialog.cpp
+++ b/src/newstuff/dialog.cpp
@@ -30,15 +30,15 @@
#include <knewstuff/provider.h>
#include <ktempfile.h>
-#include <qlabel.h>
-#include <qtextedit.h>
-#include <qlayout.h>
-#include <qwhatsthis.h>
-#include <qregexp.h>
-#include <qvbox.h>
-#include <qimage.h>
-#include <qtimer.h>
-#include <qprogressbar.h>
+#include <tqlabel.h>
+#include <tqtextedit.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
+#include <tqregexp.h>
+#include <tqvbox.h>
+#include <tqimage.h>
+#include <tqtimer.h>
+#include <tqprogressbar.h>
#if KDE_IS_VERSION(3,4,90)
#define ENTRYNAME(e) e->name(m_lang)
@@ -47,7 +47,7 @@
#else
#define ENTRYNAME(e) e->name()
#define ENTRYSUMM(e) e->summary()
-#define ENTRYEMAIL(e) QString()
+#define ENTRYEMAIL(e) TQString()
#endif
namespace {
@@ -60,26 +60,26 @@ using Tellico::NewStuff::Dialog;
class Dialog::Item : public GUI::ListViewItem {
public:
- Item(GUI::ListView* parent) : GUI::ListViewItem(parent) {}
+ Item(GUI::ListView* tqparent) : GUI::ListViewItem(tqparent) {}
- InstallStatus status() const { return m_status; }
- void setStatus(InstallStatus status) {
+ InstalltqStatus status() const { return m_status; }
+ void settqStatus(InstalltqStatus status) {
m_status = status;
if(m_status == Current) {
- setPixmap(0, SmallIcon(QString::fromLatin1("ok")));
+ setPixmap(0, SmallIcon(TQString::tqfromLatin1("ok")));
} else if(m_status == OldVersion) {
- setPixmap(0, SmallIcon(QString::fromLatin1("reload")));
+ setPixmap(0, SmallIcon(TQString::tqfromLatin1("reload")));
}
}
- QString key(int col, bool asc) const {
+ TQString key(int col, bool asc) const {
if(col == 2 || col == 3) {
- QString s;
+ TQString s;
s.sprintf("%08d", text(col).toInt());
return s;
} else if(col == 4) {
- QString s;
- QDate date = KGlobal::locale()->readDate(text(col));
+ TQString s;
+ TQDate date = KGlobal::locale()->readDate(text(col));
s.sprintf("%08d", date.year() * 366 + date.dayOfYear());
return s;
}
@@ -87,162 +87,162 @@ public:
}
private:
- InstallStatus m_status;
+ InstalltqStatus m_status;
};
-Dialog::Dialog(NewStuff::DataType type_, QWidget* parent_)
- : KDialogBase(KDialogBase::Plain, i18n("Get Hot New Stuff"), 0, (KDialogBase::ButtonCode)0, parent_)
- , m_manager(new Manager(this))
+Dialog::Dialog(NewStuff::DataType type_, TQWidget* tqparent_)
+ : KDialogBase(KDialogBase::Plain, i18n("Get Hot New Stuff"), 0, (KDialogBase::ButtonCode)0, tqparent_)
+ , m_manager(new Manager(TQT_TQOBJECT(this)))
, m_type(type_)
- , m_timer(new QTimer(this))
+ , m_timer(new TQTimer(this))
, m_cursorSaver(new GUI::CursorSaver())
, m_tempPreviewImage(0)
, m_lastPreviewItem(0) {
m_lang = KGlobal::locale()->language();
- QFrame* frame = plainPage();
- QBoxLayout* boxLayout = new QVBoxLayout(frame, 0, KDialog::spacingHint());
+ TQFrame* frame = plainPage();
+ TQBoxLayout* boxLayout = new TQVBoxLayout(frame, 0, KDialog::spacingHint());
- m_split = new QSplitter(Qt::Vertical, frame);
+ m_split = new TQSplitter(Qt::Vertical, frame);
boxLayout->addWidget(m_split);
m_listView = new GUI::ListView(m_split);
m_listView->setAllColumnsShowFocus(true);
- m_listView->setSelectionMode(QListView::Single);
+ m_listView->setSelectionMode(TQListView::Single);
m_listView->addColumn(i18n("Name"));
m_listView->addColumn(i18n("Version"));
m_listView->addColumn(i18n("Rating"));
m_listView->addColumn(i18n("Downloads"));
m_listView->addColumn(i18n("Release Date"));
m_listView->setSorting(2, false);
- m_listView->setResizeMode(QListView::AllColumns);
- connect(m_listView, SIGNAL(clicked(QListViewItem*)), SLOT(slotSelected(QListViewItem*)));
- QWhatsThis::add(m_listView, i18n("This is a list of all the items available for download. "
+ m_listView->setResizeMode(TQListView::AllColumns);
+ connect(m_listView, TQT_SIGNAL(clicked(TQListViewItem*)), TQT_SLOT(slotSelected(TQListViewItem*)));
+ TQWhatsThis::add(m_listView, i18n("This is a list of all the items available for download. "
"Previously installed items have a checkmark icon, while "
"items with new version available have an update icon"));
- QWidget* widget = new QWidget(m_split);
- QBoxLayout* boxLayout2 = new QVBoxLayout(widget, 0, KDialog::spacingHint());
+ TQWidget* widget = new TQWidget(m_split);
+ TQBoxLayout* boxLayout2 = new TQVBoxLayout(widget, 0, KDialog::spacingHint());
- m_iconLabel = new QLabel(widget);
- m_iconLabel->setAlignment(Qt::AlignTop | Qt::AlignLeft);
+ m_iconLabel = new TQLabel(widget);
+ m_iconLabel->tqsetAlignment(TQt::AlignTop | TQt::AlignLeft);
m_iconLabel->setMargin(0);
- m_nameLabel = new QLabel(widget);
- QFont font = m_nameLabel->font();
+ m_nameLabel = new TQLabel(widget);
+ TQFont font = m_nameLabel->font();
font.setBold(true);
font.setItalic(true);
m_nameLabel->setFont(font);
- QWhatsThis::add(m_nameLabel, i18n("The name and license of the selected item"));
+ TQWhatsThis::add(m_nameLabel, i18n("The name and license of the selected item"));
- m_infoLabel = new QLabel(widget);
- QWhatsThis::add(m_infoLabel, i18n("The author of the selected item"));
+ m_infoLabel = new TQLabel(widget);
+ TQWhatsThis::add(m_infoLabel, i18n("The author of the selected item"));
m_install = new KPushButton(i18n("Install"), widget);
- m_install->setIconSet(SmallIconSet(QString::fromLatin1("knewstuff")));
+ m_install->setIconSet(SmallIconSet(TQString::tqfromLatin1("knewstuff")));
m_install->setEnabled(false);
- connect(m_install, SIGNAL(clicked()), SLOT(slotInstall()));
+ connect(m_install, TQT_SIGNAL(clicked()), TQT_SLOT(slotInstall()));
// the button's text changes later
// I don't want it resizing, so figure out the maximum size and set that
m_install->polish();
- int maxWidth = m_install->sizeHint().width();
- int maxHeight = m_install->sizeHint().height();
- m_install->setGuiItem(KGuiItem(i18n("Update"), SmallIconSet(QString::fromLatin1("knewstuff"))));
- maxWidth = QMAX(maxWidth, m_install->sizeHint().width());
- maxHeight = QMAX(maxHeight, m_install->sizeHint().height());
+ int maxWidth = m_install->tqsizeHint().width();
+ int maxHeight = m_install->tqsizeHint().height();
+ m_install->setGuiItem(KGuiItem(i18n("Update"), SmallIconSet(TQString::tqfromLatin1("knewstuff"))));
+ maxWidth = TQMAX(maxWidth, m_install->tqsizeHint().width());
+ maxHeight = TQMAX(maxHeight, m_install->tqsizeHint().height());
m_install->setMinimumWidth(maxWidth);
m_install->setMinimumHeight(maxHeight);
- QPixmap pix;
+ TQPixmap pix;
if(m_type == EntryTemplate) {
- pix = DesktopIcon(QString::fromLatin1("looknfeel"), KIcon::SizeLarge);
- QWhatsThis::add(m_install, i18n("Download and install the selected template."));
+ pix = DesktopIcon(TQString::tqfromLatin1("looknfeel"), KIcon::SizeLarge);
+ TQWhatsThis::add(m_install, i18n("Download and install the selected template."));
} else {
- pix = UserIcon(QString::fromLatin1("script"));
- QWhatsThis::add(m_install, i18n("Download and install the selected script. Some scripts "
+ pix = UserIcon(TQString::tqfromLatin1("script"));
+ TQWhatsThis::add(m_install, i18n("Download and install the selected script. Some scripts "
"may need to be configured after being installed."));
}
m_iconLabel->setPixmap(pix);
- QBoxLayout* boxLayout3 = new QHBoxLayout(boxLayout2);
+ TQBoxLayout* boxLayout3 = new TQHBoxLayout(boxLayout2);
- QBoxLayout* boxLayout4 = new QVBoxLayout(boxLayout3);
+ TQBoxLayout* boxLayout4 = new TQVBoxLayout(boxLayout3);
boxLayout4->addWidget(m_iconLabel);
boxLayout4->addStretch(10);
boxLayout3->addSpacing(4);
- QBoxLayout* boxLayout5 = new QVBoxLayout(boxLayout3);
+ TQBoxLayout* boxLayout5 = new TQVBoxLayout(boxLayout3);
boxLayout5->addWidget(m_nameLabel);
boxLayout5->addWidget(m_infoLabel);
boxLayout5->addStretch(10);
boxLayout3->addStretch(10);
- QBoxLayout* boxLayout6 = new QVBoxLayout(boxLayout3);
+ TQBoxLayout* boxLayout6 = new TQVBoxLayout(boxLayout3);
boxLayout6->addWidget(m_install);
boxLayout6->addStretch(10);
- m_descLabel = new QTextEdit(widget);
+ m_descLabel = new TQTextEdit(widget);
m_descLabel->setReadOnly(true);
- m_descLabel->setTextFormat(Qt::RichText);
- m_descLabel->setPaper(colorGroup().background());
+ m_descLabel->setTextFormat(TQt::RichText);
+ m_descLabel->setPaper(tqcolorGroup().background());
m_descLabel->setMinimumHeight(5 * fontMetrics().height());
boxLayout2->addWidget(m_descLabel, 10);
- QWhatsThis::add(m_descLabel, i18n("A description of the selected item is shown here."));
+ TQWhatsThis::add(m_descLabel, i18n("A description of the selected item is shown here."));
- QHBox* box = new QHBox(frame, "statusbox");
+ TQHBox* box = new TQHBox(frame, "statusbox");
boxLayout->addWidget(box);
box->setSpacing(KDialog::spacingHint());
m_statusBar = new KStatusBar(box, "statusbar");
- m_statusBar->insertItem(QString::null, PROGRESS_STATUS_ID, 1, false);
+ m_statusBar->insertItem(TQString(), PROGRESS_STATUS_ID, 1, false);
m_statusBar->setItemAlignment(PROGRESS_STATUS_ID, AlignLeft | AlignVCenter);
- m_progress = new QProgressBar(m_statusBar, "progress");
+ m_progress = new TQProgressBar(m_statusBar, "progress");
m_progress->setTotalSteps(0);
m_progress->setFixedHeight(fontMetrics().height()+2);
m_statusBar->addWidget(m_progress, 0, true);
KPushButton* closeButton = new KPushButton(KStdGuiItem::close(), box);
- connect(closeButton, SIGNAL(clicked()), SLOT(slotClose()));
+ connect(closeButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotClose()));
closeButton->setFocus();
- connect(m_timer, SIGNAL(timeout()), SLOT(slotMoveProgress()));
+ connect(m_timer, TQT_SIGNAL(timeout()), TQT_SLOT(slotMoveProgress()));
- setMinimumWidth(QMAX(minimumWidth(), NEW_STUFF_MIN_WIDTH));
- setMinimumHeight(QMAX(minimumHeight(), NEW_STUFF_MIN_HEIGHT));
- resize(configDialogSize(QString::fromLatin1("NewStuff Dialog Options")));
+ setMinimumWidth(TQMAX(minimumWidth(), NEW_STUFF_MIN_WIDTH));
+ setMinimumHeight(TQMAX(minimumHeight(), NEW_STUFF_MIN_HEIGHT));
+ resize(configDialogSize(TQString::tqfromLatin1("NewStuff Dialog Options")));
KConfigGroup dialogConfig(KGlobal::config(), "NewStuff Dialog Options");
- QValueList<int> splitList = dialogConfig.readIntListEntry("Splitter Sizes");
+ TQValueList<int> splitList = dialogConfig.readIntListEntry("Splitter Sizes");
if(!splitList.empty()) {
m_split->setSizes(splitList);
}
- setStatus(i18n("Downloading information..."));
+ settqStatus(i18n("Downloading information..."));
ProviderLoader* loader = new Tellico::NewStuff::ProviderLoader(this);
- connect(loader, SIGNAL(providersLoaded(QPtrList<KNS::Provider>*)), SLOT(slotProviders(QPtrList<KNS::Provider>*)));
- connect(loader, SIGNAL(percent(KIO::Job*, unsigned long)), SLOT(slotShowPercent(KIO::Job*, unsigned long)));
- connect(loader, SIGNAL(error()), SLOT(slotProviderError()));
+ connect(loader, TQT_SIGNAL(providersLoaded(TQPtrList<KNS::Provider>*)), TQT_SLOT(slotProviders(TQPtrList<KNS::Provider>*)));
+ connect(loader, TQT_SIGNAL(percent(KIO::Job*, unsigned long)), TQT_SLOT(slotShowPercent(KIO::Job*, unsigned long)));
+ connect(loader, TQT_SIGNAL(error()), TQT_SLOT(slotProviderError()));
KConfigGroup config(KGlobal::config(), "KNewStuff");
- QString prov = config.readEntry("ProvidersUrl");
+ TQString prov = config.readEntry("ProvidersUrl");
if(prov.isEmpty()) {
if(m_type == EntryTemplate) {
- prov = QString::fromLatin1("http://periapsis.org/tellico/newstuff/tellicotemplates-providers.php");
- QString alt = QString::fromLatin1("http://download.kde.org/khotnewstuff/tellicotemplates-providers.xml");
+ prov = TQString::tqfromLatin1("http://periapsis.org/tellico/newstuff/tellicotemplates-providers.php");
+ TQString alt = TQString::tqfromLatin1("http://download.kde.org/khotnewstuff/tellicotemplates-providers.xml");
loader->setAlternativeProvider(alt);
} else {
- prov = QString::fromLatin1("http://periapsis.org/tellico/newstuff/tellicoscripts-providers.php");
+ prov = TQString::tqfromLatin1("http://periapsis.org/tellico/newstuff/tellicoscripts-providers.php");
}
}
if(m_type == EntryTemplate) {
- m_typeName = QString::fromLatin1("tellico/entry-template");
+ m_typeName = TQString::tqfromLatin1("tellico/entry-template");
} else {
- m_typeName = QString::fromLatin1("tellico/data-source");
+ m_typeName = TQString::tqfromLatin1("tellico/data-source");
}
loader->load(m_typeName, prov);
@@ -253,7 +253,7 @@ Dialog::~Dialog() {
delete m_cursorSaver;
m_cursorSaver = 0;
- saveDialogSize(QString::fromLatin1("NewStuff Dialog Options"));
+ saveDialogSize(TQString::tqfromLatin1("NewStuff Dialog Options"));
KConfigGroup config(KGlobal::config(), "NewStuff Dialog Options");
config.writeEntry("Splitter Sizes", m_split->sizes());
}
@@ -261,50 +261,50 @@ Dialog::~Dialog() {
void Dialog::slotProviderError() {
if(m_listView->childCount() == 0) {
myDebug() << "NewStuff::Dialog::slotCheckError() - no available items" << endl;
- setStatus(QString());
+ settqStatus(TQString());
delete m_cursorSaver;
m_cursorSaver = 0;
}
}
-void Dialog::slotProviders(QPtrList<KNS::Provider>* list_) {
+void Dialog::slotProviders(TQPtrList<KNS::Provider>* list_) {
for(KNS::Provider* prov = list_->first(); prov; prov = list_->next()) {
KIO::TransferJob* job = KIO::get(prov->downloadUrl());
m_jobs[job] = prov;
- connect(job, SIGNAL(data(KIO::Job*, const QByteArray&)),
- SLOT(slotData(KIO::Job*, const QByteArray&)));
- connect(job, SIGNAL(result(KIO::Job*)), SLOT(slotResult(KIO::Job*)));
- connect(job, SIGNAL(percent(KIO::Job*, unsigned long)),
- SLOT(slotShowPercent(KIO::Job*, unsigned long)));
+ connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)),
+ TQT_SLOT(slotData(KIO::Job*, const TQByteArray&)));
+ connect(job, TQT_SIGNAL(result(KIO::Job*)), TQT_SLOT(slotResult(KIO::Job*)));
+ connect(job, TQT_SIGNAL(percent(KIO::Job*, unsigned long)),
+ TQT_SLOT(slotShowPercent(KIO::Job*, unsigned long)));
}
}
-void Dialog::slotData(KIO::Job* job_, const QByteArray& data_) {
- QDataStream stream(m_data[job_], IO_WriteOnly | IO_Append);
+void Dialog::slotData(KIO::Job* job_, const TQByteArray& data_) {
+ TQDataStream stream(m_data[job_], IO_WriteOnly | IO_Append);
stream.writeRawBytes(data_.data(), data_.size());
}
void Dialog::slotResult(KIO::Job* job_) {
// myDebug() << "NewStuff::Dialog::slotResult()" << endl;
- QDomDocument dom;
+ TQDomDocument dom;
if(!dom.setContent(m_data[job_])) {
KNS::Provider* prov = m_jobs[job_];
KURL u = prov ? prov->downloadUrl() : KURL();
myDebug() << "NewStuff::Dialog::slotResult() - can't load result: " << u.url() << endl;
m_jobs.remove(job_);
if(m_jobs.isEmpty()) {
- setStatus(i18n("Ready."));
+ settqStatus(i18n("Ready."));
delete m_cursorSaver;
m_cursorSaver = 0;
}
return;
}
- QDomElement knewstuff = dom.documentElement();
+ TQDomElement knewstuff = dom.documentElement();
- for(QDomNode pn = knewstuff.firstChild(); !pn.isNull(); pn = pn.nextSibling()) {
- QDomElement stuff = pn.toElement();
+ for(TQDomNode pn = knewstuff.firstChild(); !pn.isNull(); pn = pn.nextSibling()) {
+ TQDomElement stuff = pn.toElement();
if(stuff.isNull()) {
continue;
}
@@ -321,7 +321,7 @@ void Dialog::slotResult(KIO::Job* job_) {
}
m_jobs.remove(job_);
if(m_jobs.isEmpty()) {
- setStatus(i18n("Ready."));
+ settqStatus(i18n("Ready."));
delete m_cursorSaver;
m_cursorSaver = 0;
}
@@ -335,10 +335,10 @@ void Dialog::addEntry(KNS::Entry* entry_) {
Item* item = new Item(m_listView);
item->setText(0, ENTRYNAME(entry_));
item->setText(1, entry_->version());
- item->setText(2, QString::number(entry_->rating()));
- item->setText(3, QString::number(entry_->downloads()));
+ item->setText(2, TQString::number(entry_->rating()));
+ item->setText(3, TQString::number(entry_->downloads()));
item->setText(4, KGlobal::locale()->formatDate(entry_->releaseDate(), true /*short format */));
- item->setStatus(NewStuff::Manager::installStatus(entry_));
+ item->settqStatus(NewStuff::Manager::installtqStatus(entry_));
m_entryMap.insert(item, entry_);
if(!m_listView->selectedItem()) {
@@ -347,7 +347,7 @@ void Dialog::addEntry(KNS::Entry* entry_) {
}
}
-void Dialog::slotSelected(QListViewItem* item_) {
+void Dialog::slotSelected(TQListViewItem* item_) {
if(!item_) {
return;
}
@@ -365,22 +365,22 @@ void Dialog::slotSelected(QListViewItem* item_) {
KURL dest;
dest.setPath(m_tempPreviewImage->name());
KIO::FileCopyJob* job = KIO::file_copy(preview, dest, -1, true, false, false);
- connect(job, SIGNAL(result(KIO::Job*)), SLOT(slotPreviewResult(KIO::Job*)));
- connect(job, SIGNAL(percent(KIO::Job*, unsigned long)),
- SLOT(slotShowPercent(KIO::Job*, unsigned long)));
+ connect(job, TQT_SIGNAL(result(KIO::Job*)), TQT_SLOT(slotPreviewResult(KIO::Job*)));
+ connect(job, TQT_SIGNAL(percent(KIO::Job*, unsigned long)),
+ TQT_SLOT(slotShowPercent(KIO::Job*, unsigned long)));
m_lastPreviewItem = item_;
}
- QPixmap pix = m_type == EntryTemplate
- ? DesktopIcon(QString::fromLatin1("looknfeel"), KIcon::SizeLarge)
- : UserIcon(QString::fromLatin1("script"));
+ TQPixmap pix = m_type == EntryTemplate
+ ? DesktopIcon(TQString::tqfromLatin1("looknfeel"), KIcon::SizeLarge)
+ : UserIcon(TQString::tqfromLatin1("script"));
m_iconLabel->setPixmap(pix);
- QString license = entry->license();
+ TQString license = entry->license();
if(!license.isEmpty()) {
license.prepend('(').append(')');
}
- QString name = QString::fromLatin1("%1 %2").arg(ENTRYNAME(entry)).arg(license);
- QFont font = m_nameLabel->font();
+ TQString name = TQString::tqfromLatin1("%1 %2").tqarg(ENTRYNAME(entry)).tqarg(license);
+ TQFont font = m_nameLabel->font();
font.setBold(true);
font.setItalic(false);
m_nameLabel->setFont(font);
@@ -388,17 +388,17 @@ void Dialog::slotSelected(QListViewItem* item_) {
m_infoLabel->setText(entry->author());
- QString desc = entry->summary(m_lang);
- desc.replace(QRegExp(QString::fromLatin1("\\n")), QString::fromLatin1("<br>"));
+ TQString desc = entry->summary(m_lang);
+ desc.tqreplace(TQRegExp(TQString::tqfromLatin1("\\n")), TQString::tqfromLatin1("<br>"));
m_descLabel->setText(desc);
- InstallStatus installed = static_cast<Item*>(item_)->status();
+ InstalltqStatus installed = static_cast<Item*>(item_)->status();
m_install->setText(installed == OldVersion ? i18n("Update Stuff", "Update") : i18n("Install"));
m_install->setEnabled(installed != Current);
}
void Dialog::slotInstall() {
- QListViewItem* item = m_listView->currentItem();
+ TQListViewItem* item = m_listView->currentItem();
if(!item) {
return;
}
@@ -410,28 +410,28 @@ void Dialog::slotInstall() {
delete m_cursorSaver;
m_cursorSaver = new GUI::CursorSaver();
- setStatus(i18n("Installing item..."));
+ settqStatus(i18n("Installing item..."));
m_progress->show();
m_timer->start(100);
- connect(m_manager, SIGNAL(signalInstalled(KNS::Entry*)), SLOT(slotDoneInstall(KNS::Entry*)));
+ connect(m_manager, TQT_SIGNAL(signalInstalled(KNS::Entry*)), TQT_SLOT(slotDoneInstall(KNS::Entry*)));
m_manager->install(m_type, entry);
delete m_cursorSaver;
m_cursorSaver = 0;
}
void Dialog::slotDoneInstall(KNS::Entry* entry_) {
- QMap<QListViewItem*, KNS::Entry*>::Iterator it;
+ TQMap<TQListViewItem*, KNS::Entry*>::Iterator it;
for(it = m_entryMap.begin(); entry_ && it != m_entryMap.end(); ++it) {
if(it.data() == entry_) {
- InstallStatus installed = Manager::installStatus(entry_);
- static_cast<Item*>(it.key())->setStatus(installed);
+ InstalltqStatus installed = Manager::installtqStatus(entry_);
+ static_cast<Item*>(it.key())->settqStatus(installed);
m_install->setEnabled(installed != Current);
break;
}
}
delete m_cursorSaver;
m_cursorSaver = 0;
- setStatus(i18n("Ready."));
+ settqStatus(i18n("Ready."));
m_timer->stop();
m_progress->hide();
}
@@ -440,8 +440,8 @@ void Dialog::slotMoveProgress() {
m_progress->setProgress(m_progress->progress()+5);
}
-void Dialog::setStatus(const QString& text_) {
- m_statusBar->changeItem(QChar(' ') + text_, PROGRESS_STATUS_ID);
+void Dialog::settqStatus(const TQString& text_) {
+ m_statusBar->changeItem(TQChar(' ') + text_, PROGRESS_STATUS_ID);
}
void Dialog::slotShowPercent(KIO::Job*, unsigned long pct_) {
@@ -458,12 +458,12 @@ void Dialog::slotPreviewResult(KIO::Job* job_) {
if(job->error()) {
return;
}
- QString tmpFile = job->destURL().path(); // might be different than m_tempPreviewImage->name()
- QPixmap pix(tmpFile);
+ TQString tmpFile = job->destURL().path(); // might be different than m_tempPreviewImage->name()
+ TQPixmap pix(tmpFile);
if(!pix.isNull()) {
if(pix.width() > 64 || pix.height() > 64) {
- pix.convertFromImage(pix.convertToImage().smoothScale(64, 64, QImage::ScaleMin));
+ pix.convertFromImage(pix.convertToImage().smoothScale(64, 64, TQ_ScaleMin));
}
// only set label if it's still current
if(m_listView->selectedItem() == m_lastPreviewItem) {