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
Q_OBJECT
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;
/**
......
......@@ -38,7 +38,7 @@ KItemListWidgetInformant::~KItemListWidgetInformant()
}
KItemListWidget::KItemListWidget(KItemListWidgetInformant* informant, QGraphicsItem* parent) :
QGraphicsWidget(parent, nullptr),
QGraphicsWidget(parent),
m_informant(informant),
m_index(-1),
m_selected(false),
......
......@@ -25,7 +25,7 @@
#include <QPainter>
KItemListSelectionToggle::KItemListSelectionToggle(QGraphicsItem* parent) :
QGraphicsWidget(parent, nullptr),
QGraphicsWidget(parent),
m_checked(false),
m_hovered(false)
{
......
......@@ -64,7 +64,7 @@ GeneralSettingsPage::GeneralSettingsPage(const QUrl& url, QWidget* parent) :
m_pages.append(confirmationsPage);
m_pages.append(statusBarPage);
topLayout->addWidget(tabWidget, 0, nullptr);
topLayout->addWidget(tabWidget, 0, {});
}
GeneralSettingsPage::~GeneralSettingsPage()
......
......@@ -76,7 +76,7 @@ DolphinGeneralConfigModule::DolphinGeneralConfigModule(QWidget* parent, const QV
m_pages.append(previewsPage);
m_pages.append(confirmationsPage);
topLayout->addWidget(tabWidget, 0, nullptr);
topLayout->addWidget(tabWidget, 0, {});
}
DolphinGeneralConfigModule::~DolphinGeneralConfigModule()
......
......@@ -46,7 +46,7 @@ DolphinNavigationConfigModule::DolphinNavigationConfigModule(QWidget* parent, co
#else
connect(m_navigation, &NavigationSettingsPage::changed, this, &DolphinNavigationConfigModule::markAsChanged);
#endif
topLayout->addWidget(m_navigation, 0, nullptr);
topLayout->addWidget(m_navigation, 0, {});
}
DolphinNavigationConfigModule::~DolphinNavigationConfigModule()
......
......@@ -46,7 +46,7 @@ DolphinServicesConfigModule::DolphinServicesConfigModule(QWidget* parent, const
#else
connect(m_services, &ServicesSettingsPage::changed, this, &DolphinServicesConfigModule::markAsChanged);
#endif
topLayout->addWidget(m_services, 0, nullptr);
topLayout->addWidget(m_services, 0, {});
}
DolphinServicesConfigModule::~DolphinServicesConfigModule()
......
......@@ -65,7 +65,7 @@ DolphinViewModesConfigModule::DolphinViewModesConfigModule(QWidget* parent, cons
m_tabs.append(compactTab);
m_tabs.append(detailsTab);
topLayout->addWidget(tabWidget, 0, nullptr);
topLayout->addWidget(tabWidget, 0, {});
}
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