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.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/newstuff/dialog.cpp b/src/newstuff/dialog.cpp
index 31e41db..0d21c69 100644
--- a/src/newstuff/dialog.cpp
+++ b/src/newstuff/dialog.cpp
@@ -215,7 +215,7 @@ Dialog::Dialog(NewStuff::DataType type_, TQWidget* parent_)
setMinimumHeight(TQMAX(minimumHeight(), NEW_STUFF_MIN_HEIGHT));
resize(configDialogSize(TQString::fromLatin1("NewStuff Dialog Options")));
- KConfigGroup dialogConfig(TDEGlobal::config(), "NewStuff Dialog Options");
+ TDEConfigGroup dialogConfig(TDEGlobal::config(), "NewStuff Dialog Options");
TQValueList<int> splitList = dialogConfig.readIntListEntry("Splitter Sizes");
if(!splitList.empty()) {
m_split->setSizes(splitList);
@@ -225,10 +225,10 @@ Dialog::Dialog(NewStuff::DataType type_, TQWidget* parent_)
ProviderLoader* loader = new Tellico::NewStuff::ProviderLoader(this);
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(percent(TDEIO::Job*, unsigned long)), TQT_SLOT(slotShowPercent(TDEIO::Job*, unsigned long)));
connect(loader, TQT_SIGNAL(error()), TQT_SLOT(slotProviderError()));
- KConfigGroup config(TDEGlobal::config(), "KNewStuff");
+ TDEConfigGroup config(TDEGlobal::config(), "KNewStuff");
TQString prov = config.readEntry("ProvidersUrl");
if(prov.isEmpty()) {
if(m_type == EntryTemplate) {
@@ -254,7 +254,7 @@ Dialog::~Dialog() {
m_cursorSaver = 0;
saveDialogSize(TQString::fromLatin1("NewStuff Dialog Options"));
- KConfigGroup config(TDEGlobal::config(), "NewStuff Dialog Options");
+ TDEConfigGroup config(TDEGlobal::config(), "NewStuff Dialog Options");
config.writeEntry("Splitter Sizes", m_split->sizes());
}
@@ -270,22 +270,22 @@ void Dialog::slotProviderError() {
void Dialog::slotProviders(TQPtrList<KNS::Provider>* list_) {
for(KNS::Provider* prov = list_->first(); prov; prov = list_->next()) {
- KIO::TransferJob* job = KIO::get(prov->downloadUrl());
+ TDEIO::TransferJob* job = TDEIO::get(prov->downloadUrl());
m_jobs[job] = prov;
- 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)));
+ connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
+ TQT_SLOT(slotData(TDEIO::Job*, const TQByteArray&)));
+ connect(job, TQT_SIGNAL(result(TDEIO::Job*)), TQT_SLOT(slotResult(TDEIO::Job*)));
+ connect(job, TQT_SIGNAL(percent(TDEIO::Job*, unsigned long)),
+ TQT_SLOT(slotShowPercent(TDEIO::Job*, unsigned long)));
}
}
-void Dialog::slotData(KIO::Job* job_, const TQByteArray& data_) {
+void Dialog::slotData(TDEIO::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_) {
+void Dialog::slotResult(TDEIO::Job* job_) {
// myDebug() << "NewStuff::Dialog::slotResult()" << endl;
TQDomDocument dom;
if(!dom.setContent(m_data[job_])) {
@@ -364,10 +364,10 @@ void Dialog::slotSelected(TQListViewItem* item_) {
m_tempPreviewImage->setAutoDelete(true);
KURL dest;
dest.setPath(m_tempPreviewImage->name());
- KIO::FileCopyJob* job = KIO::file_copy(preview, dest, -1, true, false, false);
- 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)));
+ TDEIO::FileCopyJob* job = TDEIO::file_copy(preview, dest, -1, true, false, false);
+ connect(job, TQT_SIGNAL(result(TDEIO::Job*)), TQT_SLOT(slotPreviewResult(TDEIO::Job*)));
+ connect(job, TQT_SIGNAL(percent(TDEIO::Job*, unsigned long)),
+ TQT_SLOT(slotShowPercent(TDEIO::Job*, unsigned long)));
m_lastPreviewItem = item_;
}
TQPixmap pix = m_type == EntryTemplate
@@ -444,7 +444,7 @@ void Dialog::setStatus(const TQString& text_) {
m_statusBar->changeItem(TQChar(' ') + text_, PROGRESS_STATUS_ID);
}
-void Dialog::slotShowPercent(KIO::Job*, unsigned long pct_) {
+void Dialog::slotShowPercent(TDEIO::Job*, unsigned long pct_) {
if(pct_ >= 100) {
m_progress->hide();
} else {
@@ -453,8 +453,8 @@ void Dialog::slotShowPercent(KIO::Job*, unsigned long pct_) {
}
}
-void Dialog::slotPreviewResult(KIO::Job* job_) {
- KIO::FileCopyJob* job = static_cast<KIO::FileCopyJob*>(job_);
+void Dialog::slotPreviewResult(TDEIO::Job* job_) {
+ TDEIO::FileCopyJob* job = static_cast<TDEIO::FileCopyJob*>(job_);
if(job->error()) {
return;
}