diff options
author | Timothy Pearson <[email protected]> | 2013-01-24 13:49:30 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-24 13:49:30 -0600 |
commit | a9bde819f2b421dcc44741156e75eca4bb5fb4f4 (patch) | |
tree | d087071b1e8fcf79698938efec19f8e48bab0799 /kalarm/mainwindow.cpp | |
parent | 5c4a80ead2b1fe57dc6a8c29d0368792344cd61e (diff) | |
download | tdepim-a9bde819f2b421dcc44741156e75eca4bb5fb4f4.tar.gz tdepim-a9bde819f2b421dcc44741156e75eca4bb5fb4f4.zip |
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kalarm/mainwindow.cpp')
-rw-r--r-- | kalarm/mainwindow.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kalarm/mainwindow.cpp b/kalarm/mainwindow.cpp index e9445d43a..e4462db5c 100644 --- a/kalarm/mainwindow.cpp +++ b/kalarm/mainwindow.cpp @@ -125,7 +125,7 @@ MainWindow::MainWindow(bool restored) kdDebug(5950) << "MainWindow::MainWindow()\n"; setAutoSaveSettings(TQString::fromLatin1(WINDOW_NAME)); // save window sizes etc. setPlainCaption(kapp->aboutData()->programName()); - KConfig* config = KGlobal::config(); + KConfig* config = TDEGlobal::config(); config->setGroup(VIEW_GROUP); mShowExpired = config->readBoolEntry(SHOW_ARCHIVED_KEY, false); mShowTime = config->readBoolEntry(SHOW_TIME_KEY, true); @@ -190,8 +190,8 @@ MainWindow::~MainWindow() KAlarm::writeConfigWindowSize(WINDOW_NAME, main->size()); KToolBar* tb = toolBar(); if (tb) - tb->saveSettings(KGlobal::config(), "Toolbars"); - KGlobal::config()->sync(); // save any new window size to disc + tb->saveSettings(TDEGlobal::config(), "Toolbars"); + TDEGlobal::config()->sync(); // save any new window size to disc theApp()->quitIf(); } @@ -314,7 +314,7 @@ void MainWindow::hideEvent(TQHideEvent* he) */ void MainWindow::columnsReordered() { - KConfig* config = KGlobal::config(); + KConfig* config = TDEGlobal::config(); config->setGroup(TQString::fromLatin1(WINDOW_NAME)); config->writeEntry(TQString::fromLatin1("ColumnOrder"), mListView->columnOrder()); config->sync(); @@ -412,7 +412,7 @@ void MainWindow::initActions() KToolBar* tb = toolBar(); if (tb) - tb->applySettings(KGlobal::config(), "Toolbars"); + tb->applySettings(TDEGlobal::config(), "Toolbars"); Undo::emitChanged(); // set the Undo/Redo menu texts Daemon::checkStatus(); @@ -792,7 +792,7 @@ void MainWindow::slotShowTime() else { mListView->selectTimeColumns(mShowTime, mShowTimeTo); - KConfig* config = KGlobal::config(); + KConfig* config = TDEGlobal::config(); config->setGroup(VIEW_GROUP); config->writeEntry(SHOW_TIME_KEY, mShowTime); config->writeEntry(SHOW_TIME_TO_KEY, mShowTimeTo); @@ -811,7 +811,7 @@ void MainWindow::slotShowTimeTo() else { mListView->selectTimeColumns(mShowTime, mShowTimeTo); - KConfig* config = KGlobal::config(); + KConfig* config = TDEGlobal::config(); config->setGroup(VIEW_GROUP); config->writeEntry(SHOW_TIME_KEY, mShowTime); config->writeEntry(SHOW_TIME_TO_KEY, mShowTimeTo); @@ -829,7 +829,7 @@ void MainWindow::slotShowExpired() mActionShowExpired->setToolTip(mShowExpired ? i18n_HideExpiredAlarms() : i18n_ShowExpiredAlarms()); mListView->showExpired(mShowExpired); mListView->refresh(); - KConfig* config = KGlobal::config(); + KConfig* config = TDEGlobal::config(); config->setGroup(VIEW_GROUP); config->writeEntry(SHOW_ARCHIVED_KEY, mShowExpired); } @@ -1086,7 +1086,7 @@ void MainWindow::slotConfigureKeys() */ void MainWindow::slotConfigureToolbar() { - saveMainWindowSettings(KGlobal::config(), WINDOW_NAME); + saveMainWindowSettings(TDEGlobal::config(), WINDOW_NAME); KEditToolbar dlg(factory()); connect(&dlg, TQT_SIGNAL(newToolbarConfig()), TQT_TQOBJECT(this), TQT_SLOT(slotNewToolbarConfig())); dlg.exec(); @@ -1099,7 +1099,7 @@ void MainWindow::slotConfigureToolbar() void MainWindow::slotNewToolbarConfig() { createGUI(UI_FILE); - applyMainWindowSettings(KGlobal::config(), WINDOW_NAME); + applyMainWindowSettings(TDEGlobal::config(), WINDOW_NAME); } /****************************************************************************** @@ -1258,7 +1258,7 @@ void MainWindow::executeDropEvent(MainWindow* win, TQDropEvent* e) dt.setTime_t(summary.date()); TQString body = KAMail::getMailBody(summary.serialNumber()); alarmText.setEmail(summary.to(), summary.from(), TQString(), - KGlobal::locale()->formatDateTime(dt), summary.subject(), + TDEGlobal::locale()->formatDateTime(dt), summary.subject(), body, summary.serialNumber()); } else if (KCal::ICalDrag::decode(e, &calendar)) |