widgetexplorer: Replace `d->newStuffDialog` with `WidgetExplorerPrivate::newStuffDialog`

It's clearer in the relevant code.
wilder-5.25
Fushan Wen 4 years ago
parent 02e5a784e7
commit 18cc6c2da0
No known key found for this signature in database
GPG Key ID: 2E48D1487C91DCAA
  1. 8
      components/shellprivate/widgetexplorer/widgetexplorer.cpp

@ -452,11 +452,11 @@ void WidgetExplorer::immutabilityChanged(Plasma::Types::ImmutabilityType type)
void WidgetExplorer::downloadWidgets() void WidgetExplorer::downloadWidgets()
{ {
if (d->newStuffDialog.isNull()) { if (WidgetExplorerPrivate::newStuffDialog.isNull()) {
d->newStuffDialog = new KNS3::QtQuickDialogWrapper(QStringLiteral("plasmoids.knsrc")); WidgetExplorerPrivate::newStuffDialog = new KNS3::QtQuickDialogWrapper(QStringLiteral("plasmoids.knsrc"));
connect(d->newStuffDialog, &KNS3::QtQuickDialogWrapper::closed, d->newStuffDialog, &QObject::deleteLater); connect(WidgetExplorerPrivate::newStuffDialog, &KNS3::QtQuickDialogWrapper::closed, WidgetExplorerPrivate::newStuffDialog, &QObject::deleteLater);
d->newStuffDialog->open(); WidgetExplorerPrivate::newStuffDialog->open();
} }
Q_EMIT shouldClose(); Q_EMIT shouldClose();

Loading…
Cancel
Save