diff options
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 0f6ccd3..b5e2a4b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -776,7 +776,7 @@ void MainWindow::initDocument() { MARK; Data::Document* doc = Data::Document::self(); - KConfigGroup config(KGlobal::config(), "General Options"); + KConfigGroup config(TDEGlobal::config(), "General Options"); doc->setLoadAllImages(config.readBoolEntry("Load All Images", false)); // allow status messages from the document @@ -884,13 +884,13 @@ void MainWindow::initFileOpen(bool nofile_) { void MainWindow::saveOptions() { // myDebug() << "MainWindow::saveOptions()" << endl; - saveMainWindowSettings(KGlobal::config(), TQString::fromLatin1("Main Window Options")); + saveMainWindowSettings(TDEGlobal::config(), TQString::fromLatin1("Main Window Options")); Config::setShowGroupWidget(m_toggleGroupWidget->isChecked()); Config::setShowEditWidget(m_toggleEntryEditor->isChecked()); Config::setShowEntryView(m_toggleEntryView->isChecked()); - m_fileOpenRecent->saveEntries(KGlobal::config(), TQString::fromLatin1("Recent Files")); + m_fileOpenRecent->saveEntries(TDEGlobal::config(), TQString::fromLatin1("Recent Files")); if(!isNewDocument()) { Config::setLastOpenFile(Data::Document::self()->URL().url()); } @@ -924,7 +924,7 @@ void MainWindow::saveOptions() { } void MainWindow::readCollectionOptions(Data::CollPtr coll_) { - KConfigGroup group(KGlobal::config(), TQString::fromLatin1("Options - %1").arg(coll_->typeName())); + KConfigGroup group(TDEGlobal::config(), TQString::fromLatin1("Options - %1").arg(coll_->typeName())); TQString defaultGroup = coll_->defaultGroupField(); TQString entryGroup; @@ -966,7 +966,7 @@ void MainWindow::saveCollectionOptions(Data::CollPtr coll_) { } int configIndex = -1; - KConfigGroup config(KGlobal::config(), TQString::fromLatin1("Options - %1").arg(coll_->typeName())); + KConfigGroup config(TDEGlobal::config(), TQString::fromLatin1("Options - %1").arg(coll_->typeName())); TQString groupName; if(m_entryGrouping->currentItem() > -1 && static_cast<int>(coll_->entryGroups().count()) > m_entryGrouping->currentItem()) { @@ -1003,7 +1003,7 @@ void MainWindow::saveCollectionOptions(Data::CollPtr coll_) { void MainWindow::readOptions() { // myDebug() << "MainWindow::readOptions()" << endl; - applyMainWindowSettings(KGlobal::config(), TQString::fromLatin1("Main Window Options")); + applyMainWindowSettings(TDEGlobal::config(), TQString::fromLatin1("Main Window Options")); TQValueList<int> splitList = Config::mainSplitterSizes(); if(!splitList.empty()) { @@ -1026,7 +1026,7 @@ void MainWindow::readOptions() { slotToggleEntryView(); // initialize the recent file list - m_fileOpenRecent->loadEntries(KGlobal::config(), TQString::fromLatin1("Recent Files")); + m_fileOpenRecent->loadEntries(TDEGlobal::config(), TQString::fromLatin1("Recent Files")); // sort by count if column = 1 int sortStyle = Config::groupViewSortColumn(); @@ -1443,7 +1443,7 @@ void MainWindow::slotEditDeselect() { } void MainWindow::slotConfigToolbar() { - saveMainWindowSettings(KGlobal::config(), TQString::fromLatin1("Main Window Options")); + saveMainWindowSettings(TDEGlobal::config(), TQString::fromLatin1("Main Window Options")); #ifdef UIFILE KEditToolbar dlg(actionCollection(), UIFILE); #else @@ -1454,7 +1454,7 @@ void MainWindow::slotConfigToolbar() { } void MainWindow::slotNewToolbarConfig() { - applyMainWindowSettings(KGlobal::config(), TQString::fromLatin1("Main Window Options")); + applyMainWindowSettings(TDEGlobal::config(), TQString::fromLatin1("Main Window Options")); #ifdef UIFILE createGUI(UIFILE, false); #else @@ -1722,7 +1722,7 @@ void MainWindow::doPrint(const TQString& html_) { p->begin(printer); // mostly taken from KHTMLView::print() - TQString headerLeft = KGlobal::locale()->formatDate(TQDate::currentDate(), false); + TQString headerLeft = TDEGlobal::locale()->formatDate(TQDate::currentDate(), false); TQString headerRight = Data::Document::self()->URL().prettyURL(); TQString footerMid; |