From: Peter Penz Date: Sun, 18 Feb 2007 12:29:25 +0000 (+0000) Subject: minor cosmetic fix: don't use a group box if the global view properties are set ... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/fd43139134da394e413c5d7d5518275379e67798?ds=inline minor cosmetic fix: don't use a group box if the global view properties are set (less clutter) svn path=/trunk/KDE/kdebase/apps/; revision=634819 --- diff --git a/src/viewproperties.cpp b/src/viewproperties.cpp index fd4dfd8dd..25aa98e0e 100644 --- a/src/viewproperties.cpp +++ b/src/viewproperties.cpp @@ -70,8 +70,6 @@ ViewProperties::ViewProperties(const KUrl& url) : const QString file(m_filepath + FILE_NAME); m_node = new ViewPropertySettings(KSharedConfig::openConfig(file)); - kDebug() << "------------------ global timestamp: " << settings->viewPropsTimestamp() << endl; - const bool useDefaultProps = !useGlobalViewProps && (!QFileInfo(file).exists() || (m_node->timestamp() < settings->viewPropsTimestamp())); diff --git a/src/viewpropertiesdialog.cpp b/src/viewpropertiesdialog.cpp index eceaf8048..350113a3c 100644 --- a/src/viewpropertiesdialog.cpp +++ b/src/viewpropertiesdialog.cpp @@ -60,6 +60,7 @@ ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) : m_useAsDefault(0) { assert(dolphinView != 0); + const bool useGlobalViewProps = DolphinSettings::instance().generalSettings()->globalViewProps(); setCaption(i18n("View Properties")); setButtons(KDialog::Ok | KDialog::Cancel | KDialog::Apply); @@ -72,7 +73,10 @@ ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) : QVBoxLayout* topLayout = new QVBoxLayout(); // create 'Properties' group containing view mode, sorting, sort order and show hidden files - QGroupBox* propsBox = new QGroupBox(i18n("Properties"), main); + QWidget* propsBox = main; + if (!useGlobalViewProps) { + propsBox = new QGroupBox(i18n("Properties"), main); + } QLabel* viewModeLabel = new QLabel(i18n("View mode:"), propsBox); m_viewMode = new QComboBox(propsBox); @@ -133,7 +137,7 @@ ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) : // Only show the following settings if the view properties are remembered // for each directory: - if (!DolphinSettings::instance().generalSettings()->globalViewProps()) { + if (!useGlobalViewProps) { // create 'Apply view properties to:' group QGroupBox* applyBox = new QGroupBox(i18n("Apply view properties to:"), main);