1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-04 17:30:55 +00:00

GeneralViewSettingsPage: Initialize variables in header, avoid unused variable depending on config

This commit is contained in:
Alexander Lohnau 2023-12-27 12:11:53 +01:00
parent f22530d446
commit 5e74b4c017
2 changed files with 10 additions and 13 deletions

View File

@ -19,11 +19,6 @@
GeneralViewSettingsPage::GeneralViewSettingsPage(const QUrl &url, QWidget *parent)
: SettingsPageBase(parent)
, m_url(url)
, m_localViewProps(nullptr)
, m_globalViewProps(nullptr)
, m_showToolTips(nullptr)
, m_showSelectionToggle(nullptr)
, m_renameInline(nullptr)
{
QFormLayout *topLayout = new QFormLayout(this);

View File

@ -6,6 +6,7 @@
#ifndef GENERALVIEWSETTINGSPAGE_H
#define GENERALVIEWSETTINGSPAGE_H
#include "config-dolphin.h"
#include "settings/settingspagebase.h"
#include <qradiobutton.h>
@ -37,14 +38,15 @@ private:
private:
QUrl m_url;
QRadioButton *m_localViewProps;
QRadioButton *m_globalViewProps;
QCheckBox *m_showToolTips;
QLabel *m_configureToolTips;
QCheckBox *m_showSelectionToggle;
QCheckBox *m_renameInline;
QCheckBox *m_openArchivesAsFolder;
QCheckBox *m_autoExpandFolders;
QRadioButton *m_localViewProps = nullptr;
QRadioButton *m_globalViewProps = nullptr;
#if HAVE_BALOO
QCheckBox *m_showToolTips = nullptr;
#endif
QCheckBox *m_showSelectionToggle = nullptr;
QCheckBox *m_renameInline = nullptr;
QCheckBox *m_openArchivesAsFolder = nullptr;
QCheckBox *m_autoExpandFolders = nullptr;
};
#endif