X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/9691afbc507ee480d4d129a6fff90b6b926aed62..231200e6800a20aef5a1ba68dd3d64ecbee01000:/src/settings/viewmodes/generalviewsettingspage.cpp diff --git a/src/settings/viewmodes/generalviewsettingspage.cpp b/src/settings/viewmodes/generalviewsettingspage.cpp index 08048ea88..cd68cdaeb 100644 --- a/src/settings/viewmodes/generalviewsettingspage.cpp +++ b/src/settings/viewmodes/generalviewsettingspage.cpp @@ -13,7 +13,9 @@ #include #include +#include #include +#include #include #include @@ -25,14 +27,26 @@ GeneralViewSettingsPage::GeneralViewSettingsPage(const QUrl &url, QWidget *paren // Display style m_globalViewProps = new QRadioButton(i18nc("@option:radio", "Use common display style for all folders")); + // i18n: The information in this sentence contradicts the preceding sentence. That's what the word "still" is communicating. + // The previous sentence is "Use common display style for all folders". + QLabel *globalViewPropsLabel = new QLabel(i18nc("@info", "Some special views like search, recent files, or trash will still use a custom display style.")); + globalViewPropsLabel->setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont)); + globalViewPropsLabel->setWordWrap(true); + globalViewPropsLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); + m_localViewProps = new QRadioButton(i18nc("@option:radio", "Remember display style for each folder")); - m_localViewProps->setToolTip(i18nc("@info", "Dolphin will create a hidden .directory file in each folder you change view properties for.")); + QLabel *localViewPropsLabel = new QLabel(i18nc("@info", "Dolphin will create a hidden .directory file in each folder you change view properties for.")); + localViewPropsLabel->setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont)); + localViewPropsLabel->setWordWrap(true); + localViewPropsLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); QButtonGroup *viewGroup = new QButtonGroup(this); viewGroup->addButton(m_globalViewProps); viewGroup->addButton(m_localViewProps); topLayout->addRow(i18nc("@title:group", "Display style: "), m_globalViewProps); + topLayout->addRow(QString(), globalViewPropsLabel); topLayout->addRow(QString(), m_localViewProps); + topLayout->addRow(QString(), localViewPropsLabel); topLayout->addItem(new QSpacerItem(0, Dolphin::VERTICAL_SPACER_HEIGHT, QSizePolicy::Fixed, QSizePolicy::Fixed)); @@ -46,7 +60,7 @@ GeneralViewSettingsPage::GeneralViewSettingsPage(const QUrl &url, QWidget *paren #if HAVE_BALOO // 'Show tooltips' - m_showToolTips = new QCheckBox(i18nc("@option:check", "Show tooltips")); + m_showToolTips = new QCheckBox(i18nc("@option:check", "Show item information on hover")); topLayout->addRow(i18nc("@title:group", "Miscellaneous: "), m_showToolTips); #endif @@ -59,7 +73,8 @@ GeneralViewSettingsPage::GeneralViewSettingsPage(const QUrl &url, QWidget *paren #endif // 'Inline renaming of items' - m_renameInline = new QCheckBox(i18nc("option:check", "Rename inline")); + m_renameInline = new QCheckBox(i18nc("option:check", "Rename single items inline")); + m_renameInline->setToolTip(i18n("Renaming multiple items is always done with a dialog window.")); topLayout->addRow(QString(), m_renameInline); m_hideXtrashFiles = new QCheckBox(i18nc("option:check", "Also hide backup files while hiding hidden files")); @@ -102,6 +117,7 @@ void GeneralViewSettingsPage::applySettings() settings->setRenameInline(m_renameInline->isChecked()); settings->setHideXTrashFile(m_hideXtrashFiles->isChecked()); settings->setAutoExpandFolders(m_autoExpandFolders->isChecked()); + settings->setBrowseThroughArchives(m_openArchivesAsFolder->isChecked()); settings->save(); if (useGlobalViewProps) { // Remember the global view properties by applying the current view properties.