keep 4 context menu checkboxes and Display page in sync

This commit is contained in:
Ignat Semenov 2013-04-15 20:53:52 +04:00
parent 9bf43b7459
commit 7665ee95af

View file

@ -1813,6 +1813,9 @@ void FolderView::toggleIconsLocked(bool locked)
if (m_iconView) { if (m_iconView) {
m_iconView->setIconsMoveable(!locked); m_iconView->setIconsMoveable(!locked);
} }
if (isUserConfiguring()) {
uiDisplay.lockInPlace->setChecked(locked);
}
config().writeEntry("iconsLocked", locked); config().writeEntry("iconsLocked", locked);
emit configNeedsSaving(); emit configNeedsSaving();
@ -1825,6 +1828,9 @@ void FolderView::toggleAlignToGrid(bool align)
if (m_iconView) { if (m_iconView) {
m_iconView->setAlignToGrid(align); m_iconView->setAlignToGrid(align);
} }
if (isUserConfiguring()) {
uiDisplay.alignToGrid->setChecked(align);
}
config().writeEntry("alignToGrid", align); config().writeEntry("alignToGrid", align);
emit configNeedsSaving(); emit configNeedsSaving();
@ -1839,6 +1845,9 @@ void FolderView::toggleClickToViewFolders(bool enable)
if (m_iconView) { if (m_iconView) {
m_iconView->setClickToViewFolders(enable); m_iconView->setClickToViewFolders(enable);
} }
if (isUserConfiguring()) {
uiDisplay.clickToView->setChecked(enable);
}
config().writeEntry("clickForFolderPreviews", enable); config().writeEntry("clickForFolderPreviews", enable);
emit configNeedsSaving(); emit configNeedsSaving();
@ -1854,6 +1863,9 @@ void FolderView::toggleDirectoriesFirst(bool enable)
if (m_sortColumn != -1) { if (m_sortColumn != -1) {
m_model->invalidate(); m_model->invalidate();
} }
if (isUserConfiguring()) {
uiDisplay.foldersFirst->setChecked(enable);
}
config().writeEntry("sortDirsFirst", m_sortDirsFirst); config().writeEntry("sortDirsFirst", m_sortDirsFirst);
emit configNeedsSaving(); emit configNeedsSaving();