diff options
author | Michele Calgaro <[email protected]> | 2025-01-22 17:46:54 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2025-02-03 22:38:49 +0900 |
commit | 4a47c1bfffffad7094f0b5c7cef532069e088ec3 (patch) | |
tree | 31b86dd0d87816e4b31e8bc2aa7687b2e85c2e82 /src/mainwindow.cpp | |
parent | 7975b08418486c2793bd61c32ee347ce6b81c687 (diff) | |
download | basket-4a47c1bfffffad7094f0b5c7cef532069e088ec3.tar.gz basket-4a47c1bfffffad7094f0b5c7cef532069e088ec3.zip |
Use tdeApp
Signed-off-by: Michele Calgaro <[email protected]>
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() ); |