Commit 984e8686 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't use nullptr/0 as flags (deprecated in qt5.15)

parent 61edac18
...@@ -30,7 +30,7 @@ class DolphinDockWidget : public QDockWidget ...@@ -30,7 +30,7 @@ class DolphinDockWidget : public QDockWidget
Q_OBJECT Q_OBJECT
public: public:
explicit DolphinDockWidget(const QString& title = QString(), QWidget* parent = nullptr, Qt::WindowFlags flags = nullptr); explicit DolphinDockWidget(const QString& title = QString(), QWidget* parent = nullptr, Qt::WindowFlags flags = {});
~DolphinDockWidget() override; ~DolphinDockWidget() override;
/** /**
......
...@@ -38,7 +38,7 @@ KItemListWidgetInformant::~KItemListWidgetInformant() ...@@ -38,7 +38,7 @@ KItemListWidgetInformant::~KItemListWidgetInformant()
} }
KItemListWidget::KItemListWidget(KItemListWidgetInformant* informant, QGraphicsItem* parent) : KItemListWidget::KItemListWidget(KItemListWidgetInformant* informant, QGraphicsItem* parent) :
QGraphicsWidget(parent, nullptr), QGraphicsWidget(parent),
m_informant(informant), m_informant(informant),
m_index(-1), m_index(-1),
m_selected(false), m_selected(false),
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <QPainter> #include <QPainter>
KItemListSelectionToggle::KItemListSelectionToggle(QGraphicsItem* parent) : KItemListSelectionToggle::KItemListSelectionToggle(QGraphicsItem* parent) :
QGraphicsWidget(parent, nullptr), QGraphicsWidget(parent),
m_checked(false), m_checked(false),
m_hovered(false) m_hovered(false)
{ {
......
...@@ -64,7 +64,7 @@ GeneralSettingsPage::GeneralSettingsPage(const QUrl& url, QWidget* parent) : ...@@ -64,7 +64,7 @@ GeneralSettingsPage::GeneralSettingsPage(const QUrl& url, QWidget* parent) :
m_pages.append(confirmationsPage); m_pages.append(confirmationsPage);
m_pages.append(statusBarPage); m_pages.append(statusBarPage);
topLayout->addWidget(tabWidget, 0, nullptr); topLayout->addWidget(tabWidget, 0, {});
} }
GeneralSettingsPage::~GeneralSettingsPage() GeneralSettingsPage::~GeneralSettingsPage()
......
...@@ -76,7 +76,7 @@ DolphinGeneralConfigModule::DolphinGeneralConfigModule(QWidget* parent, const QV ...@@ -76,7 +76,7 @@ DolphinGeneralConfigModule::DolphinGeneralConfigModule(QWidget* parent, const QV
m_pages.append(previewsPage); m_pages.append(previewsPage);
m_pages.append(confirmationsPage); m_pages.append(confirmationsPage);
topLayout->addWidget(tabWidget, 0, nullptr); topLayout->addWidget(tabWidget, 0, {});
} }
DolphinGeneralConfigModule::~DolphinGeneralConfigModule() DolphinGeneralConfigModule::~DolphinGeneralConfigModule()
......
...@@ -46,7 +46,7 @@ DolphinNavigationConfigModule::DolphinNavigationConfigModule(QWidget* parent, co ...@@ -46,7 +46,7 @@ DolphinNavigationConfigModule::DolphinNavigationConfigModule(QWidget* parent, co
#else #else
connect(m_navigation, &NavigationSettingsPage::changed, this, &DolphinNavigationConfigModule::markAsChanged); connect(m_navigation, &NavigationSettingsPage::changed, this, &DolphinNavigationConfigModule::markAsChanged);
#endif #endif
topLayout->addWidget(m_navigation, 0, nullptr); topLayout->addWidget(m_navigation, 0, {});
} }
DolphinNavigationConfigModule::~DolphinNavigationConfigModule() DolphinNavigationConfigModule::~DolphinNavigationConfigModule()
......
...@@ -46,7 +46,7 @@ DolphinServicesConfigModule::DolphinServicesConfigModule(QWidget* parent, const ...@@ -46,7 +46,7 @@ DolphinServicesConfigModule::DolphinServicesConfigModule(QWidget* parent, const
#else #else
connect(m_services, &ServicesSettingsPage::changed, this, &DolphinServicesConfigModule::markAsChanged); connect(m_services, &ServicesSettingsPage::changed, this, &DolphinServicesConfigModule::markAsChanged);
#endif #endif
topLayout->addWidget(m_services, 0, nullptr); topLayout->addWidget(m_services, 0, {});
} }
DolphinServicesConfigModule::~DolphinServicesConfigModule() DolphinServicesConfigModule::~DolphinServicesConfigModule()
......
...@@ -65,7 +65,7 @@ DolphinViewModesConfigModule::DolphinViewModesConfigModule(QWidget* parent, cons ...@@ -65,7 +65,7 @@ DolphinViewModesConfigModule::DolphinViewModesConfigModule(QWidget* parent, cons
m_tabs.append(compactTab); m_tabs.append(compactTab);
m_tabs.append(detailsTab); m_tabs.append(detailsTab);
topLayout->addWidget(tabWidget, 0, nullptr); topLayout->addWidget(tabWidget, 0, {});
} }
DolphinViewModesConfigModule::~DolphinViewModesConfigModule() DolphinViewModesConfigModule::~DolphinViewModesConfigModule()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment