remember the size of dialogs

svn path=/trunk/KDE/kdebase/apps/; revision=668385
This commit is contained in:
Peter Penz 2007-05-26 07:51:43 +00:00
parent ca03456bab
commit 1693cc730d
2 changed files with 13 additions and 0 deletions

View file

@ -45,10 +45,15 @@ DolphinSettingsDialog::DolphinSettingsDialog(DolphinMainWindow* mainWindow) :
m_viewSettingsPage = new ViewSettingsPage(mainWindow, this);
KPageWidgetItem* viewSettingsFrame = addPage(m_viewSettingsPage, i18n("View Modes"));
viewSettingsFrame->setIcon(KIcon("view-choose"));
const KConfigGroup dialogConfig(KSharedConfig::openConfig("dolphinrc"), "SettingsDialog");
restoreDialogSize(dialogConfig);
}
DolphinSettingsDialog::~DolphinSettingsDialog()
{
KConfigGroup dialogConfig(KSharedConfig::openConfig("dolphinrc"), "SettingsDialog");
saveDialogSize(dialogConfig, KConfigFlags::Persistent);
}
void DolphinSettingsDialog::slotButtonClicked(int button)

View file

@ -203,6 +203,10 @@ ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) :
main->setLayout(topLayout);
setMainWidget(main);
const KConfigGroup dialogConfig(KSharedConfig::openConfig("dolphinrc"),
"ViewPropertiesDialog");
restoreDialogSize(dialogConfig);
}
ViewPropertiesDialog::~ViewPropertiesDialog()
@ -210,6 +214,10 @@ ViewPropertiesDialog::~ViewPropertiesDialog()
m_isDirty = false;
delete m_viewProps;
m_viewProps = 0;
KConfigGroup dialogConfig(KSharedConfig::openConfig("dolphinrc"),
"ViewPropertiesDialog");
saveDialogSize(dialogConfig, KConfigFlags::Persistent);
}
void ViewPropertiesDialog::slotOk()