summaryrefslogtreecommitdiffstats
path: root/kalarm/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm/mainwindow.cpp')
-rw-r--r--kalarm/mainwindow.cpp22
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))