Changeset View
Changeset View
Standalone View
Standalone View
src/kmainwindow.cpp
Show First 20 Lines • Show All 399 Lines • ▼ Show 20 Line(s) | |||||
400 | 400 | | |||
401 | KMainWindow::~KMainWindow() | 401 | KMainWindow::~KMainWindow() | ||
402 | { | 402 | { | ||
403 | sMemberList()->removeAll(this); | 403 | sMemberList()->removeAll(this); | ||
404 | delete static_cast<QObject *>(k_ptr->dockResizeListener); //so we don't get anymore events after k_ptr is destroyed | 404 | delete static_cast<QObject *>(k_ptr->dockResizeListener); //so we don't get anymore events after k_ptr is destroyed | ||
405 | delete k_ptr; | 405 | delete k_ptr; | ||
406 | } | 406 | } | ||
407 | 407 | | |||
408 | #ifndef KXMLGUI_NO_DEPRECATED | 408 | #if KXMLGUI_BUILD_DEPRECATED_SINCE(5, 0) | ||
409 | QMenu *KMainWindow::helpMenu(const QString &aboutAppText, bool showWhatsThis) | 409 | QMenu *KMainWindow::helpMenu(const QString &aboutAppText, bool showWhatsThis) | ||
410 | { | 410 | { | ||
411 | K_D(KMainWindow); | 411 | K_D(KMainWindow); | ||
412 | if (!d->helpMenu) { | 412 | if (!d->helpMenu) { | ||
413 | if (aboutAppText.isEmpty()) { | 413 | if (aboutAppText.isEmpty()) { | ||
414 | d->helpMenu = new KHelpMenu(this, KAboutData::applicationData(), showWhatsThis); | 414 | d->helpMenu = new KHelpMenu(this, KAboutData::applicationData(), showWhatsThis); | ||
415 | } else { | 415 | } else { | ||
416 | d->helpMenu = new KHelpMenu(this, aboutAppText, showWhatsThis); | 416 | d->helpMenu = new KHelpMenu(this, aboutAppText, showWhatsThis); | ||
▲ Show 20 Lines • Show All 307 Lines • ▼ Show 20 Line(s) | 667 | { | |||
724 | if (focusedWidget) { | 724 | if (focusedWidget) { | ||
725 | focusedWidget->setFocus(); | 725 | focusedWidget->setFocus(); | ||
726 | } | 726 | } | ||
727 | 727 | | |||
728 | d->settingsDirty = false; | 728 | d->settingsDirty = false; | ||
729 | d->letDirtySettings = oldLetDirtySettings; | 729 | d->letDirtySettings = oldLetDirtySettings; | ||
730 | } | 730 | } | ||
731 | 731 | | |||
732 | #ifndef KXMLGUI_NO_DEPRECATED | 732 | #if KXMLGUI_BUILD_DEPRECATED_SINCE(5, 0) | ||
733 | void KMainWindow::restoreWindowSize(const KConfigGroup &cg) | 733 | void KMainWindow::restoreWindowSize(const KConfigGroup &cg) | ||
734 | { | 734 | { | ||
735 | KWindowConfig::restoreWindowSize(windowHandle(), cg); | 735 | KWindowConfig::restoreWindowSize(windowHandle(), cg); | ||
736 | } | 736 | } | ||
737 | #endif | 737 | #endif | ||
738 | 738 | | |||
739 | #ifndef KXMLGUI_NO_DEPRECATED | 739 | #if KXMLGUI_BUILD_DEPRECATED_SINCE(5, 0) | ||
740 | void KMainWindow::saveWindowSize(KConfigGroup &cg) const | 740 | void KMainWindow::saveWindowSize(KConfigGroup &cg) const | ||
741 | { | 741 | { | ||
742 | KWindowConfig::saveWindowSize(windowHandle(), cg); | 742 | KWindowConfig::saveWindowSize(windowHandle(), cg); | ||
743 | } | 743 | } | ||
744 | #endif | 744 | #endif | ||
745 | 745 | | |||
746 | void KMainWindow::setSettingsDirty() | 746 | void KMainWindow::setSettingsDirty() | ||
747 | { | 747 | { | ||
▲ Show 20 Lines • Show All 195 Lines • Show Last 20 Lines |