diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:10:32 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:10:32 -0600 |
commit | 3fe437def8063926892bddf2dcc733861308836d (patch) | |
tree | 021d66ad023a32bc8ea0074a1ab3d01316aff8b0 /lib/kofficecore/KoDetailsPane.cpp | |
parent | 5b8ab149469c8e186ee8b05d90c0103ae722dd85 (diff) | |
download | koffice-3fe437def8063926892bddf2dcc733861308836d.tar.gz koffice-3fe437def8063926892bddf2dcc733861308836d.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'lib/kofficecore/KoDetailsPane.cpp')
-rw-r--r-- | lib/kofficecore/KoDetailsPane.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/kofficecore/KoDetailsPane.cpp b/lib/kofficecore/KoDetailsPane.cpp index 1e204af7..8fb84589 100644 --- a/lib/kofficecore/KoDetailsPane.cpp +++ b/lib/kofficecore/KoDetailsPane.cpp @@ -97,7 +97,7 @@ KoTemplatesPane::KoTemplatesPane(TQWidget* parent, TDEInstance* instance, KGuiItem openGItem(i18n("Use This Template")); m_openButton->setGuiItem(openGItem); m_documentList->header()->hide(); - KConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog"); + TDEConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog"); TQString fullTemplateName = cfgGrp.readPathEntry("FullTemplateName"); d->m_alwaysUseTemplate = cfgGrp.readPathEntry("AlwaysUseTemplate"); connect(m_alwaysUseCheckBox, TQT_SIGNAL(clicked()), this, TQT_SLOT(alwaysUseClicked())); @@ -173,7 +173,7 @@ void KoTemplatesPane::openTemplate() void KoTemplatesPane::openTemplate(TQListViewItem* item) { if(item) { - KConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog"); + TDEConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog"); cfgGrp.writePathEntry("FullTemplateName", item->text(2)); cfgGrp.writeEntry("LastReturnType", "Template"); cfgGrp.writeEntry("AlwaysUseTemplate", d->m_alwaysUseTemplate); @@ -199,7 +199,7 @@ void KoTemplatesPane::alwaysUseClicked() TQListViewItem* item = m_documentList->selectedItem(); if(!m_alwaysUseCheckBox->isChecked()) { - KConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog"); + TDEConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog"); cfgGrp.writeEntry("AlwaysUseTemplate", TQString()); d->m_alwaysUseTemplate = TQString(); } else { @@ -264,7 +264,7 @@ class KoRecentDocumentsPanePrivate m_previewJob->kill(); } - KIO::PreviewJob* m_previewJob; + TDEIO::PreviewJob* m_previewJob; TDEInstance* m_instance; }; @@ -346,9 +346,9 @@ KoRecentDocumentsPane::KoRecentDocumentsPane(TQWidget* parent, TDEInstance* inst m_documentList->setSelected(m_documentList->firstChild(), true); - d->m_previewJob = KIO::filePreview(fileList, 200, 200); + d->m_previewJob = TDEIO::filePreview(fileList, 200, 200); - connect(d->m_previewJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(previewResult(KIO::Job*))); + connect(d->m_previewJob, TQT_SIGNAL(result(TDEIO::Job*)), this, TQT_SLOT(previewResult(TDEIO::Job*))); connect(d->m_previewJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), this, TQT_SLOT(updatePreview(const KFileItem*, const TQPixmap&))); } @@ -369,9 +369,9 @@ void KoRecentDocumentsPane::selectionChanged(TQListViewItem* item) KFileItem* fileItem = static_cast<KoFileListItem*>(item)->fileItem(); TQString details = "<center><table border=\"0\">"; details += i18n("File modification date and time. %1 is date time", "<tr><td><b>Modified:</b></td><td>%1</td></tr>") - .arg(fileItem->timeString(KIO::UDS_MODIFICATION_TIME)); + .arg(fileItem->timeString(TDEIO::UDS_MODIFICATION_TIME)); details += i18n("File access date and time. %1 is date time", "<tr><td><b>Accessed:</b></td><td>%1</td></tr>") - .arg(fileItem->timeString(KIO::UDS_ACCESS_TIME)); + .arg(fileItem->timeString(TDEIO::UDS_ACCESS_TIME)); details += "</table></center>"; m_detailsLabel->setText(details); } else { @@ -393,14 +393,14 @@ void KoRecentDocumentsPane::openFile() void KoRecentDocumentsPane::openFile(TQListViewItem* item) { - KConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog"); + TDEConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog"); cfgGrp.writeEntry("LastReturnType", "File"); if(item) emit openFile(item->text(1)); } -void KoRecentDocumentsPane::previewResult(KIO::Job* job) +void KoRecentDocumentsPane::previewResult(TDEIO::Job* job) { if(d->m_previewJob == job) d->m_previewJob = 0; |