┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorKevin Ottens <[email protected]>2007-04-13 14:44:18 +0000
committerKevin Ottens <[email protected]>2007-04-13 14:44:18 +0000
commit4216e814d4e5e1249eb7004b990a69fc7388b884 (patch)
treed98b1d2e425a2f1bfcf4cd8e857ce5da67eb4152 /src/dolphinmainwindow.cpp
parentc273b0ae1be6b0d55cf951e7c7befaefb03f3517 (diff)
Those hacks are not needed anymore for autosaving.
svn path=/trunk/KDE/kdebase/apps/; revision=653522
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 901330670..d621b3ffc 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -394,17 +394,6 @@ void DolphinMainWindow::closeEvent(QCloseEvent* event)
settings.save();
- // TODO: I assume there will be a generic way in KDE 4 to store the docks
- // of the main window. In the meantime they are stored manually:
- QString filename = KStandardDirs::locateLocal("data", KGlobal::mainComponent().componentName());
- filename.append("/panels_layout");
- QFile file(filename);
- if (file.open(QIODevice::WriteOnly)) {
- QByteArray data = saveState();
- file.write(data);
- file.close();
- }
-
KMainWindow::closeEvent(event);
}
@@ -1031,17 +1020,6 @@ void DolphinMainWindow::loadSettings()
}
updateViewActions();
-
- // TODO: I assume there will be a generic way in KDE 4 to restore the docks
- // of the main window. In the meantime they are restored manually (see also
- // DolphinMainWindow::closeEvent() for more details):
- QString filename = KStandardDirs::locateLocal("data", KGlobal::mainComponent().componentName()); filename.append("/panels_layout");
- QFile file(filename);
- if (file.open(QIODevice::ReadOnly)) {
- QByteArray data = file.readAll();
- restoreState(data);
- file.close();
- }
}
void DolphinMainWindow::setupActions()
@@ -1281,7 +1259,7 @@ void DolphinMainWindow::setupDockWidgets()
// after the dock concept has been finalized.
// setup "Information"
- QDockWidget* infoDock = new QDockWidget(i18n("Information"), this);
+ QDockWidget* infoDock = new QDockWidget(i18n("Information"));
infoDock->setObjectName("infoDock");
infoDock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
SidebarPage* infoWidget = new InfoSidebarPage(infoDock);