Changeset View
Changeset View
Standalone View
Standalone View
shell/mainwindow_actions.cpp
Show All 15 Lines | |||||
16 | 16 | | |||
17 | You should have received a copy of the GNU Library General Public License | 17 | You should have received a copy of the GNU Library General Public License | ||
18 | along with this library; see the file COPYING.LIB. If not, write to | 18 | along with this library; see the file COPYING.LIB. If not, write to | ||
19 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 19 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
20 | Boston, MA 02110-1301, USA. | 20 | Boston, MA 02110-1301, USA. | ||
21 | */ | 21 | */ | ||
22 | 22 | | |||
23 | #include <QApplication> | 23 | #include <QApplication> | ||
24 | #include <QPointer> | ||||
24 | 25 | | |||
25 | #include <KAboutData> | 26 | #include <KAboutData> | ||
26 | #include <KAboutApplicationDialog> | 27 | #include <KAboutApplicationDialog> | ||
27 | #include <KConfigGroup> | 28 | #include <KConfigGroup> | ||
28 | #include <KNotifyConfigWidget> | 29 | #include <KNotifyConfigWidget> | ||
29 | #include <KToggleFullScreenAction> | 30 | #include <KToggleFullScreenAction> | ||
30 | 31 | | |||
31 | #include <sublime/area.h> | 32 | #include <sublime/area.h> | ||
▲ Show 20 Lines • Show All 169 Lines • ▼ Show 20 Line(s) | |||||
201 | 202 | | |||
202 | void MainWindowPrivate::configureNotifications() | 203 | void MainWindowPrivate::configureNotifications() | ||
203 | { | 204 | { | ||
204 | KNotifyConfigWidget::configure(m_mainWindow); | 205 | KNotifyConfigWidget::configure(m_mainWindow); | ||
205 | } | 206 | } | ||
206 | 207 | | |||
207 | void MainWindowPrivate::showAboutPlatform() | 208 | void MainWindowPrivate::showAboutPlatform() | ||
208 | { | 209 | { | ||
209 | KAboutApplicationDialog dlg(Core::self()->aboutData(), m_mainWindow ); | 210 | QPointer<KAboutApplicationDialog> dlg = | ||
210 | dlg.exec(); | 211 | new KAboutApplicationDialog(Core::self()->aboutData(), m_mainWindow ); | ||
212 | dlg->exec(); | ||||
213 | delete dlg; | ||||
211 | } | 214 | } | ||
212 | 215 | | |||
213 | void MainWindowPrivate::showLoadedPlugins() | 216 | void MainWindowPrivate::showLoadedPlugins() | ||
214 | { | 217 | { | ||
215 | LoadedPluginsDialog dlg(m_mainWindow); | 218 | QPointer<LoadedPluginsDialog> dlg = | ||
216 | dlg.exec(); | 219 | new LoadedPluginsDialog(m_mainWindow); | ||
220 | dlg->exec(); | ||||
221 | delete dlg; | ||||
217 | } | 222 | } | ||
218 | 223 | | |||
219 | void MainWindowPrivate::contextMenuFileNew() | 224 | void MainWindowPrivate::contextMenuFileNew() | ||
220 | { | 225 | { | ||
221 | m_mainWindow->activateView(m_tabView); | 226 | m_mainWindow->activateView(m_tabView); | ||
222 | fileNew(); | 227 | fileNew(); | ||
223 | } | 228 | } | ||
224 | 229 | | |||
Show All 21 Lines |