X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/9d1a3abd35f71efa005470c1c559f31bbfc10a8e..885916b7b4:/src/settings/viewpropertiesdialog.cpp diff --git a/src/settings/viewpropertiesdialog.cpp b/src/settings/viewpropertiesdialog.cpp index 9002765b5..2f5d55523 100644 --- a/src/settings/viewpropertiesdialog.cpp +++ b/src/settings/viewpropertiesdialog.cpp @@ -68,7 +68,7 @@ ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) : Q_ASSERT(dolphinView); const bool useGlobalViewProps = GeneralSettings::globalViewProps(); - setWindowTitle(i18nc("@title:window", "View Properties")); + setWindowTitle(i18nc("@title:window", "View Display Style")); const QUrl& url = dolphinView->url(); m_viewProps = new ViewProperties(url); @@ -149,7 +149,7 @@ ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) : additionalInfoBox->setLayout(innerLayout); QHBoxLayout* sortingLayout = new QHBoxLayout(); - sortingLayout->setMargin(0); + sortingLayout->setContentsMargins(0, 0, 0, 0); sortingLayout->addWidget(m_sortOrder); sortingLayout->addWidget(m_sorting); @@ -163,11 +163,23 @@ ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) : layout->addRow(QString(), m_showInGroups); layout->addRow(QString(), m_showHiddenFiles); - connect(m_viewMode, static_cast(&QComboBox::currentIndexChanged), +#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) + connect(m_viewMode, QOverload::of(&QComboBox::currentIndexChanged), +#else + connect(m_viewMode, QOverload::of(&QComboBox::currentIndexChanged), +#endif this, &ViewPropertiesDialog::slotViewModeChanged); - connect(m_sorting, static_cast(&QComboBox::currentIndexChanged), +#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) + connect(m_sorting, QOverload::of(&QComboBox::currentIndexChanged), +#else + connect(m_sorting, QOverload::of(&QComboBox::currentIndexChanged), +#endif this, &ViewPropertiesDialog::slotSortingChanged); - connect(m_sortOrder, static_cast(&QComboBox::currentIndexChanged), +#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) + connect(m_sortOrder, QOverload::of(&QComboBox::currentIndexChanged), +#else + connect(m_sortOrder, QOverload::of(&QComboBox::currentIndexChanged), +#endif this, &ViewPropertiesDialog::slotSortOrderChanged); connect(m_sortFoldersFirst, &QCheckBox::clicked, this, &ViewPropertiesDialog::slotSortFoldersFirstChanged); @@ -366,7 +378,7 @@ void ViewPropertiesDialog::applyViewProperties() const bool applyToAllFolders = m_applyToAllFolders && m_applyToAllFolders->isChecked(); - // If the user selected 'Apply To All Folders' the view properties implicitely + // If the user selected 'Apply To All Folders' the view properties implicitly // are also used as default for new folders. const bool useAsDefault = applyToAllFolders || (m_useAsDefault && m_useAsDefault->isChecked()); if (useAsDefault) {