diff options
author | Timothy Pearson <[email protected]> | 2013-01-25 00:30:47 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-25 00:30:47 -0600 |
commit | cc74f360bb40da3d79f58048f8e8611804980aa6 (patch) | |
tree | c4385d2c16b904757b1c8bb998a4aec6993373f7 /konqueror/sidebar/trees | |
parent | 79b21d47bce1ee428affc97534cd8b257232a871 (diff) | |
download | tdebase-cc74f360bb40da3d79f58048f8e8611804980aa6.tar.gz tdebase-cc74f360bb40da3d79f58048f8e8611804980aa6.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'konqueror/sidebar/trees')
8 files changed, 25 insertions, 25 deletions
diff --git a/konqueror/sidebar/trees/dirtree_module/dirtree_item.cpp b/konqueror/sidebar/trees/dirtree_module/dirtree_item.cpp index 16520d0e0..9c31acdf5 100644 --- a/konqueror/sidebar/trees/dirtree_module/dirtree_item.cpp +++ b/konqueror/sidebar/trees/dirtree_module/dirtree_item.cpp @@ -203,7 +203,7 @@ void KonqSidebarDirTreeItem::paste() kdDebug(1201) << "move (from clipboard data) = " << move << endl; } - KIO::pasteClipboard( m_fileItem->url(), move ); + TDEIO::pasteClipboard( m_fileItem->url(), move ); } void KonqSidebarDirTreeItem::trash() diff --git a/konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp b/konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp index 7d8f7b1fd..40dd324e8 100644 --- a/konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp +++ b/konqueror/sidebar/trees/dirtree_module/dirtree_module.cpp @@ -42,7 +42,7 @@ KonqSidebarDirTreeModule::KonqSidebarDirTreeModule( KonqSidebarTree * parentTree universalMode = ksi ? ksi->universalMode() : false; } */ - KConfig * config = new KConfig( universalMode ? "konqsidebartng_kicker.rc" : "konqsidebartng.rc" ); + TDEConfig * config = new TDEConfig( universalMode ? "konqsidebartng_kicker.rc" : "konqsidebartng.rc" ); config->setGroup(""); m_showArchivesAsFolders = config->readBoolEntry("ShowArchivesAsFolders",true); delete config; @@ -90,7 +90,7 @@ void KonqSidebarDirTreeModule::addTopLevelItem( KonqSidebarTreeTopLevelItem * it TQString configured = cfg.readEntry("X-TDE-ConfiguredURL"); if (!configured.isEmpty()) { TQStringList list = TQStringList::split(':', configured); - KConfig config(list[0]); + TDEConfig config(list[0]); if (list[1] != "noGroup") config.setGroup(list[1]); TQString conf_url = config.readEntry(list[2]); if (!conf_url.isEmpty()) { @@ -378,7 +378,7 @@ void KonqSidebarDirTreeModule::listDirectory( KonqSidebarTreeItem *item ) KonqSidebarDirTreeItem *dirTreeItem = new KonqSidebarDirTreeItem( parentItem, m_topLevelItem, fileItem ); dirTreeItem->setPixmap( 0, fileItem->pixmap( size ) ); - dirTreeItem->setText( 0, KIO::decodeFileName( fileItem->name() ) ); + dirTreeItem->setText( 0, TDEIO::decodeFileName( fileItem->name() ) ); oldItem = static_cast<KonqSidebarDirTreeItem *> (oldItem->nextSibling()); } @@ -447,7 +447,7 @@ void KonqSidebarDirTreeModule::slotNewItems( const KFileItemList& entries ) KonqSidebarDirTreeItem *dirTreeItem = new KonqSidebarDirTreeItem( parentItem, m_topLevelItem, fileItem ); dirTreeItem->setPixmap( 0, fileItem->pixmap( size ) ); - dirTreeItem->setText( 0, KIO::decodeFileName( fileItem->name() ) ); + dirTreeItem->setText( 0, TDEIO::decodeFileName( fileItem->name() ) ); } } while ((parentItem = parentItemList ? parentItemList->take(0) : 0)); @@ -494,7 +494,7 @@ void KonqSidebarDirTreeModule::slotRefreshItems( const KFileItemList &entries ) dirTreeItem->reset(); // Reset id dirTreeItem->setPixmap( 0, fileItem->pixmap( size ) ); - dirTreeItem->setText( 0, KIO::decodeFileName( fileItem->name() ) ); + dirTreeItem->setText( 0, TDEIO::decodeFileName( fileItem->name() ) ); // Make sure the item doesn't get inserted twice! // dirTreeItem->id points to the new name @@ -504,7 +504,7 @@ void KonqSidebarDirTreeModule::slotRefreshItems( const KFileItemList &entries ) else { dirTreeItem->setPixmap( 0, fileItem->pixmap( size ) ); - dirTreeItem->setText( 0, KIO::decodeFileName( fileItem->name() ) ); + dirTreeItem->setText( 0, TDEIO::decodeFileName( fileItem->name() ) ); } } while ((item = itemList ? itemList->take(0) : 0)); diff --git a/konqueror/sidebar/trees/history_module/history_module.cpp b/konqueror/sidebar/trees/history_module/history_module.cpp index 71c1b5a44..30d96f060 100644 --- a/konqueror/sidebar/trees/history_module/history_module.cpp +++ b/konqueror/sidebar/trees/history_module/history_module.cpp @@ -56,8 +56,8 @@ KonqSidebarHistoryModule::KonqSidebarHistoryModule( KonqSidebarTree * parentTree m_dict.setAutoDelete( true ); m_currentTime = TQDateTime::currentDateTime(); - KConfig *kc = TDEGlobal::config(); - KConfigGroupSaver cs( kc, "HistorySettings" ); + TDEConfig *kc = TDEGlobal::config(); + TDEConfigGroupSaver cs( kc, "HistorySettings" ); m_sortsByName = kc->readEntry( "SortHistory", "byDate" ) == "byName"; @@ -111,8 +111,8 @@ KonqSidebarHistoryModule::~KonqSidebarHistoryModule() ++it; } - KConfig *kc = TDEGlobal::config(); - KConfigGroupSaver cs( kc, "HistorySettings" ); + TDEConfig *kc = TDEGlobal::config(); + TDEConfigGroupSaver cs( kc, "HistorySettings" ); kc->writeEntry("OpenGroups", openGroups); kc->sync(); } @@ -143,8 +143,8 @@ void KonqSidebarHistoryModule::slotCreateItems() ++it; } - KConfig *kc = TDEGlobal::config(); - KConfigGroupSaver cs( kc, "HistorySettings" ); + TDEConfig *kc = TDEGlobal::config(); + TDEConfigGroupSaver cs( kc, "HistorySettings" ); TQStringList openGroups = kc->readListEntry("OpenGroups"); TQStringList::Iterator it2 = openGroups.begin(); KonqSidebarHistoryGroupItem *group; @@ -297,8 +297,8 @@ void KonqSidebarHistoryModule::sortingChanged() { m_topLevelItem->sort(); - KConfig *kc = TDEGlobal::config(); - KConfigGroupSaver cs( kc, "HistorySettings" ); + TDEConfig *kc = TDEGlobal::config(); + TDEConfigGroupSaver cs( kc, "HistorySettings" ); kc->writeEntry( "SortHistory", m_sortsByName ? "byName" : "byDate" ); kc->sync(); } diff --git a/konqueror/sidebar/trees/history_module/history_settings.cpp b/konqueror/sidebar/trees/history_module/history_settings.cpp index 3e8c8a5de..701f72776 100644 --- a/konqueror/sidebar/trees/history_module/history_settings.cpp +++ b/konqueror/sidebar/trees/history_module/history_settings.cpp @@ -42,7 +42,7 @@ KonqSidebarHistorySettings::~KonqSidebarHistorySettings() void KonqSidebarHistorySettings::readSettings(bool global) { - KConfig *config; + TDEConfig *config; TQString oldgroup; if (global) { @@ -50,7 +50,7 @@ void KonqSidebarHistorySettings::readSettings(bool global) oldgroup= config->group(); } else - config = new KConfig("konquerorrc"); + config = new TDEConfig("konquerorrc"); config->setGroup("HistorySettings"); m_valueYoungerThan = config->readNumEntry("Value youngerThan", 1 ); @@ -77,7 +77,7 @@ void KonqSidebarHistorySettings::readSettings(bool global) void KonqSidebarHistorySettings::applySettings() { - KConfig *config = new KConfig("konquerorrc"); + TDEConfig *config = new TDEConfig("konquerorrc"); config->setGroup("HistorySettings"); config->writeEntry("Value youngerThan", m_valueYoungerThan ); diff --git a/konqueror/sidebar/trees/history_module/kcmhistory.cpp b/konqueror/sidebar/trees/history_module/kcmhistory.cpp index a1ef792d6..967616bd5 100644 --- a/konqueror/sidebar/trees/history_module/kcmhistory.cpp +++ b/konqueror/sidebar/trees/history_module/kcmhistory.cpp @@ -49,7 +49,7 @@ typedef KGenericFactory<HistorySidebarConfig, TQWidget > KCMHistoryFactory; K_EXPORT_COMPONENT_FACTORY (kcm_history, KCMHistoryFactory("kcmhistory") ) HistorySidebarConfig::HistorySidebarConfig( TQWidget *parent, const char* name, const TQStringList & ) - : KCModule (KCMHistoryFactory::instance(), parent, name) + : TDECModule (KCMHistoryFactory::instance(), parent, name) { TDEGlobal::locale()->insertCatalogue("konqueror"); @@ -115,7 +115,7 @@ void HistorySidebarConfig::configChanged() void HistorySidebarConfig::load() { - KConfig config("konquerorrc"); + TDEConfig config("konquerorrc"); config.setGroup("HistorySettings"); dialog->spinExpire->setValue( config.readNumEntry( "Maximum age of History entries", 90) ); dialog->spinEntries->setValue( config.readNumEntry( "Maximum of History entries", 500 ) ); @@ -147,7 +147,7 @@ void HistorySidebarConfig::save() TQ_UINT32 age = dialog->cbExpire->isChecked() ? dialog->spinExpire->value() : 0; TQ_UINT32 count = dialog->spinEntries->value(); - KConfig config("konquerorrc"); + TDEConfig config("konquerorrc"); config.setGroup("HistorySettings"); config.writeEntry( "Maximum of History entries", count ); config.writeEntry( "Maximum age of History entries", age ); diff --git a/konqueror/sidebar/trees/history_module/kcmhistory.h b/konqueror/sidebar/trees/history_module/kcmhistory.h index 0e354af65..5731ae267 100644 --- a/konqueror/sidebar/trees/history_module/kcmhistory.h +++ b/konqueror/sidebar/trees/history_module/kcmhistory.h @@ -27,7 +27,7 @@ class KonqHistoryManager; class KonqSidebarHistorySettings; class KonqSidebarHistoryDlg; -class HistorySidebarConfig : public KCModule +class HistorySidebarConfig : public TDECModule { Q_OBJECT diff --git a/konqueror/sidebar/trees/konq_sidebartree.cpp b/konqueror/sidebar/trees/konq_sidebartree.cpp index 7ba7c3014..b156c071d 100644 --- a/konqueror/sidebar/trees/konq_sidebartree.cpp +++ b/konqueror/sidebar/trees/konq_sidebartree.cpp @@ -380,7 +380,7 @@ void KonqSidebarTree::addURL(KonqSidebarTreeTopLevelItem* item, const KURL & url { TQString filename = findUniqueFilename(path, url.fileName()); destUrl.setPath(filename); - KIO::NetAccess::copy(url, destUrl, this); + TDEIO::NetAccess::copy(url, destUrl, this); } else { @@ -760,7 +760,7 @@ void KonqSidebarTree::loadTopLevelItem( KonqSidebarTreeItem *parent, const TQSt TQFileInfo inf( filename ); TQString path = filename; - TQString name = KIO::decodeFileName( inf.fileName() ); + TQString name = TDEIO::decodeFileName( inf.fileName() ); if ( name.length() > 8 && name.right( 8 ) == ".desktop" ) name.truncate( name.length() - 8 ); if ( name.length() > 7 && name.right( 7 ) == ".kdelnk" ) diff --git a/konqueror/sidebar/trees/konq_sidebartreetoplevelitem.cpp b/konqueror/sidebar/trees/konq_sidebartreetoplevelitem.cpp index 4ce6fe445..8c9b787f8 100644 --- a/konqueror/sidebar/trees/konq_sidebartreetoplevelitem.cpp +++ b/konqueror/sidebar/trees/konq_sidebartreetoplevelitem.cpp @@ -169,7 +169,7 @@ void KonqSidebarTreeTopLevelItem::paste() else destURL = m_externalURL; - KIO::pasteClipboard( destURL, move ); + TDEIO::pasteClipboard( destURL, move ); } void KonqSidebarTreeTopLevelItem::rename() |