mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
remember the size of dialogs
svn path=/trunk/KDE/kdebase/apps/; revision=668385
This commit is contained in:
parent
ca03456bab
commit
1693cc730d
2 changed files with 13 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue