diff options
| author | Peter Penz <[email protected]> | 2006-12-04 06:37:20 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2006-12-04 06:37:20 +0000 |
| commit | dde6f0a0772eee324e2838ba4a076a83193f163c (patch) | |
| tree | e138ffbf79a9e10ef555f854a1eb4d4e440b9298 /src/viewpropertiesdialog.cpp | |
| parent | 45d82b30417ce8a747eab2baab7a5618a069bbfa (diff) | |
First step of cleaning up the view properties: inheriting of viewproperties does not work with the current approach of directoryviewpropertysettings.kcfg (2 nodes would be required for each directory, only one is used at the moment). Therefor the valid_for_subdirs property has been removed and the implementation model will be adjusted to match 1:1 to the users model. TODO: improve the viewpropertiesdialog be able to apply viewproperties recursively to sub directories.
svn path=/trunk/playground/utils/dolphin/; revision=610383
Diffstat (limited to 'src/viewpropertiesdialog.cpp')
| -rw-r--r-- | src/viewpropertiesdialog.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/viewpropertiesdialog.cpp b/src/viewpropertiesdialog.cpp index 82f3c5976..594c487d2 100644 --- a/src/viewpropertiesdialog.cpp +++ b/src/viewpropertiesdialog.cpp @@ -110,12 +110,7 @@ ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) : buttonBoxLayout->addWidget(m_applyToAllFolders); buttonBox->setLayout(buttonBoxLayout); - if (m_viewProps->isValidForSubDirs()) { - m_applyToSubFolders->setChecked(true); - } - else { - m_applyToCurrentFolder->setChecked(true); - } + m_applyToCurrentFolder->setChecked(true); topLayout->addWidget(propsBox); topLayout->addWidget(buttonBox); @@ -135,6 +130,9 @@ ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) : connect(m_applyToAllFolders, SIGNAL(clicked()), this, SLOT(slotApplyToAllFolders())); + connect(this, SIGNAL(okClicked()), this, SLOT(slotOk())); + connect(this, SIGNAL(applyClicked()), this, SLOT(slotApply())); + main->setLayout(topLayout); setMainWidget(main); } @@ -149,13 +147,12 @@ ViewPropertiesDialog::~ViewPropertiesDialog() void ViewPropertiesDialog::slotOk() { applyViewProperties(); - // KDE4-TODO: KDialog::slotOk(); + accept(); } void ViewPropertiesDialog::slotApply() { applyViewProperties(); - // KDE4-TODO: KDialog::slotApply(); } void ViewPropertiesDialog::slotViewModeChanged(int index) @@ -193,13 +190,12 @@ void ViewPropertiesDialog::slotShowHiddenFilesChanged() void ViewPropertiesDialog::slotApplyToCurrentFolder() { - m_viewProps->setValidForSubDirs(false); m_isDirty = true; } void ViewPropertiesDialog::slotApplyToSubFolders() { - m_viewProps->setValidForSubDirs(true); + //m_viewProps->setValidForSubDirs(true); m_isDirty = true; } @@ -223,7 +219,7 @@ void ViewPropertiesDialog::applyViewProperties() props.setSorting(m_viewProps->sorting()); props.setSortOrder(m_viewProps->sortOrder()); props.setShowHiddenFilesEnabled(m_viewProps->isShowHiddenFilesEnabled()); - props.setValidForSubDirs(true); + //props.setValidForSubDirs(true); } else if (m_applyToSubFolders->isChecked() && m_isDirty) { const QString text(i18n("The view properties of all sub folders will be replaced. Do you want to continue?")); |
