diff options
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ded5b42..92c2b5b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -207,7 +207,7 @@ void MainWindow::slotNewToolbarConfig() // This is called when OK or Apply is cl void MainWindow::showSettingsDialog() { if(m_settings == 0) - m_settings = new KSettings::Dialog(kapp->activeWindow()); + m_settings = new KSettings::Dialog(tdeApp->activeWindow()); if (Global::mainWindow()) { m_settings->dialog()->showButton(KDialogBase::Help, false); // Not implemented! m_settings->dialog()->showButton(KDialogBase::Default, false); // Not implemented! @@ -232,8 +232,8 @@ void MainWindow::polish() // - Keep the window manager placing the window where it want and save this if (Settings::mainWindowSize().isEmpty()) { // std::cout << "Main Window Position: Initial Set in show()" << std::endl; - int defaultWidth = kapp->desktop()->width() * 5 / 6; - int defaultHeight = kapp->desktop()->height() * 5 / 6; + int defaultWidth = tdeApp->desktop()->width() * 5 / 6; + int defaultHeight = tdeApp->desktop()->height() * 5 / 6; resize(defaultWidth, defaultHeight); // sizeHint() is bad (too small) and we want the user to have a good default area size shouldSave = true; } else { @@ -298,7 +298,7 @@ bool MainWindow::queryClose() /* if (m_shuttingDown) // Set in askForQuit(): we don't have to ask again return true;*/ - if (kapp->sessionSaving()) { + if (tdeApp->sessionSaving()) { Settings::setStartDocked(false); // If queryClose() is called it's because the window is shown Settings::saveConfig(); return true; @@ -314,7 +314,7 @@ bool MainWindow::queryClose() bool MainWindow::askForQuit() { - TQString message = i18n("<p>Do you really want to quit %1?</p>").arg(kapp->aboutData()->programName()); + TQString message = i18n("<p>Do you really want to quit %1?</p>").arg(tdeApp->aboutData()->programName()); if (Settings::useSystray()) message += i18n("<p>Notice that you do not have to quit the application before ending your TDE session. " "If you end your session while the application is still running, the application will be reloaded the next time you log in.</p>"); @@ -342,7 +342,7 @@ void MainWindow::minimizeRestore() void MainWindow::changeActive() { #if KDE_IS_VERSION( 3, 2, 90 ) // KDE 3.3.x - kapp->updateUserTimestamp(); // If "activate on mouse hovering systray", or "on drag throught systray" + tdeApp->updateUserTimestamp(); // If "activate on mouse hovering systray", or "on drag throught systray" Global::systemTray->toggleActive(); #else setActive( ! isActiveWindow() ); |