diff options
Diffstat (limited to 'kword')
-rw-r--r-- | kword/KWCanvas.cpp | 4 | ||||
-rw-r--r-- | kword/KWConfig.h | 14 | ||||
-rw-r--r-- | kword/KWDocument.cpp | 14 | ||||
-rw-r--r-- | kword/KWView.cpp | 4 | ||||
-rw-r--r-- | kword/mailmerge/sql/KWQtSqlMailMergeOpen.cpp | 6 |
5 files changed, 21 insertions, 21 deletions
diff --git a/kword/KWCanvas.cpp b/kword/KWCanvas.cpp index 042715b3..7dc7b96a 100644 --- a/kword/KWCanvas.cpp +++ b/kword/KWCanvas.cpp @@ -1526,7 +1526,7 @@ void KWCanvas::contentsDropEvent( TQDropEvent *e ) const KURL &url( *it ); TQString filename; - if ( !KIO::NetAccess::download( url, filename, this ) ) + if ( !TDEIO::NetAccess::download( url, filename, this ) ) continue; KMimeType::Ptr res = KMimeType::findByFileContent( filename ); @@ -1542,7 +1542,7 @@ void KWCanvas::contentsDropEvent( TQDropEvent *e ) insertPictureDirect( newKoPicture, docPoint ); } } - KIO::NetAccess::removeTempFile( filename ); + TDEIO::NetAccess::removeTempFile( filename ); } } else diff --git a/kword/KWConfig.h b/kword/KWConfig.h index 7a57b7f6..ab6d373f 100644 --- a/kword/KWConfig.h +++ b/kword/KWConfig.h @@ -30,7 +30,7 @@ class KWView; class TQCheckBox; class KIntNumInput; class KoUnitDoubleSpinBox; -class KConfig; +class TDEConfig; class TQComboBox; class KIntNumInput; class KCommand; @@ -53,7 +53,7 @@ public: void slotDefault(); private: KWView* m_pView; - KConfig* config; + TDEConfig* config; KSpell2::ConfigWidget *m_spellConfigWidget; }; @@ -72,7 +72,7 @@ signals: void unitChanged( int ); private: KWView* m_pView; - KConfig* config; + TDEConfig* config; TQComboBox *m_unitCombo; KoUnitDoubleSpinBox* gridX,*gridY; KoUnitDoubleSpinBox* indent; @@ -93,7 +93,7 @@ public: void setUnit( KoUnit::Unit unit ); private: KWView* m_pView; - KConfig* config; + TDEConfig* config; KIntNumInput* m_undoRedoLimit; int m_oldNbRedo; bool m_oldFormattingEndParag, m_oldFormattingSpace, m_oldFormattingTabs, m_oldFormattingBreak; @@ -116,7 +116,7 @@ public slots: void selectNewDefaultFont(); private: KWView* m_pView; - KConfig* config; + TDEConfig* config; TQFont *font; TQLabel *fontName; TQLabel *tabStop; @@ -153,7 +153,7 @@ private slots: void slotSelectionChanged(TQListViewItem *); private: KWView* m_pView; - KConfig* config; + TDEConfig* config; KListView* m_pPathView; TQPushButton *m_modifyPath; }; @@ -169,7 +169,7 @@ public: private slots: void screenReaderOptionChanged(); private: - KConfig* config; + TDEConfig* config; TQCheckBox* m_cbSpeakPointerWidget; TQCheckBox* m_cbSpeakFocusWidget; TQVGroupBox* m_gbScreenReaderOptions; diff --git a/kword/KWDocument.cpp b/kword/KWDocument.cpp index 94651cf8..01236753 100644 --- a/kword/KWDocument.cpp +++ b/kword/KWDocument.cpp @@ -257,7 +257,7 @@ KWDocument::KWDocument(TQWidget *parentWidget, const char *widname, TQObject* pa initConfig(); // Get default font from the KWord config file - KConfig *config = KWFactory::instance()->config(); + TDEConfig *config = KWFactory::instance()->config(); config->setGroup("Document defaults" ); TQString defaultFontname=config->readEntry("DefaultFont"); if ( !defaultFontname.isEmpty() ) @@ -314,7 +314,7 @@ KWDocument::~KWDocument() void KWDocument::initConfig() { - KConfig *config = KWFactory::instance()->config(); + TDEConfig *config = KWFactory::instance()->config(); if( config->hasGroup("KSpell kword" ) ) { config->setGroup( "KSpell kword" ); @@ -411,7 +411,7 @@ void KWDocument::initConfig() } // Load personal dict - KConfigGroup group( KoGlobal::kofficeConfig(), "Spelling" ); + TDEConfigGroup group( KoGlobal::kofficeConfig(), "Spelling" ); m_spellCheckPersonalDict = group.readListEntry( "PersonalDict" ); } @@ -419,14 +419,14 @@ void KWDocument::saveConfig() { if ( !isReadWrite() ) return; - KConfigGroup group( KoGlobal::kofficeConfig(), "Spelling" ); + TDEConfigGroup group( KoGlobal::kofficeConfig(), "Spelling" ); group.writeEntry( "PersonalDict", m_spellCheckPersonalDict ); if ( !isEmbedded() ) { // Only save the config that is manipulated by the UI directly. // The config from the config dialog is saved by the dialog itself. - KConfig *config = KWFactory::instance()->config(); + TDEConfig *config = KWFactory::instance()->config(); config->setGroup( "Interface" ); config->writeEntry( "ViewFormattingChars", m_viewFormattingChars ); config->writeEntry( "ViewFormattingBreaks", m_viewFormattingBreak ); @@ -5135,7 +5135,7 @@ void KWDocument::changeBgSpellCheckingState( bool b ) { enableBackgroundSpellCheck( b ); reactivateBgSpellChecking(); - KConfig *config = KWFactory::instance()->config(); + TDEConfig *config = KWFactory::instance()->config(); config->setGroup("KSpell kword" ); config->writeEntry( "SpellCheck", (int)b ); } @@ -5340,7 +5340,7 @@ void KWDocument::updateDirectCursorButton() void KWDocument::setInsertDirectCursor(bool b) { m_bInsertDirectCursor=b; - KConfig *config = KWFactory::instance()->config(); + TDEConfig *config = KWFactory::instance()->config(); config->setGroup( "Interface" ); config->writeEntry( "InsertDirectCursor", b ); updateDirectCursorButton(); diff --git a/kword/KWView.cpp b/kword/KWView.cpp index d28c3478..4197b903 100644 --- a/kword/KWView.cpp +++ b/kword/KWView.cpp @@ -6141,10 +6141,10 @@ void KWView::savePicture() { picture.save( TQT_TQIODEVICE(&file) ); file.close(); - if ( !KIO::NetAccess::upload( tempFile.name(), url, this ) ) + if ( !TDEIO::NetAccess::upload( tempFile.name(), url, this ) ) { KMessageBox::sorry( this, i18n( - "Unable to save the file to '%1'. %2.").arg( url.prettyURL() ).arg( KIO::NetAccess::lastErrorString() ), + "Unable to save the file to '%1'. %2.").arg( url.prettyURL() ).arg( TDEIO::NetAccess::lastErrorString() ), i18n("Save Failed") ); } } diff --git a/kword/mailmerge/sql/KWQtSqlMailMergeOpen.cpp b/kword/mailmerge/sql/KWQtSqlMailMergeOpen.cpp index d3feca22..14222bf0 100644 --- a/kword/mailmerge/sql/KWQtSqlMailMergeOpen.cpp +++ b/kword/mailmerge/sql/KWQtSqlMailMergeOpen.cpp @@ -60,7 +60,7 @@ void KWQtSqlMailMergeOpen::savedPropertiesChanged(const TQString& name) { if (name!=i18n("<not saved>")) { - KConfig conf("kwmailmergerc"); + TDEConfig conf("kwmailmergerc"); conf.setGroup("KWSLTQTDB:"+name); widget->hostname->setText(conf.readEntry("hostname","")); widget->username->setText(conf.readEntry("username","")); @@ -82,7 +82,7 @@ void KWQtSqlMailMergeOpen::fillSavedProperties() widget->savedProperties->clear(); widget->savedProperties->insertItem(i18n("<not saved>")); //Read data from configuration file and add entries - KConfig conf("kwmailmergerc"); + TDEConfig conf("kwmailmergerc"); TQStringList list=conf.groupList(); for (TQStringList::Iterator it=list.begin();it!=list.end();++it) { @@ -101,7 +101,7 @@ void KWQtSqlMailMergeOpen::slotSave() if (value.isEmpty()) kdDebug()<<"Name value was empty"<<endl; if ((ok) && (!value.isEmpty())) { - KConfig conf("kwmailmergerc"); + TDEConfig conf("kwmailmergerc"); conf.setGroup("KWSLTQTDB:"+value); conf.writeEntry("hostname",widget->hostname->text()); conf.writeEntry("username",widget->username->text()); |