diff --git a/examples/dataengines/customDataContainers/httpContainer.h b/examples/dataengines/customDataContainers/httpContainer.h index 3de046c7e..f40ab653b 100644 --- a/examples/dataengines/customDataContainers/httpContainer.h +++ b/examples/dataengines/customDataContainers/httpContainer.h @@ -50,7 +50,7 @@ private Q_SLOTS: private: const QUrl m_url; - QWeakPointer m_job; + QPointer m_job; QByteArray m_data; }; diff --git a/src/declarativeimports/core/colorscope.h b/src/declarativeimports/core/colorscope.h index f0cc4470d..bbb92bb3c 100644 --- a/src/declarativeimports/core/colorscope.h +++ b/src/declarativeimports/core/colorscope.h @@ -21,7 +21,7 @@ #define COLORSCOPE_H #include -#include +#include #include #include #include diff --git a/src/declarativeimports/core/serviceoperationstatus.h b/src/declarativeimports/core/serviceoperationstatus.h index 628beba3d..03dd8858c 100644 --- a/src/declarativeimports/core/serviceoperationstatus.h +++ b/src/declarativeimports/core/serviceoperationstatus.h @@ -20,7 +20,7 @@ #define SERVICEOPERATIONSTATUS_P #include -#include +#include #include "plasma/service.h" @@ -74,7 +74,7 @@ private Q_SLOTS: void updateStatus(); private: - QWeakPointer m_service; + QPointer m_service; QString m_operation; bool m_enabled; }; diff --git a/src/declarativeimports/core/svgitem.h b/src/declarativeimports/core/svgitem.h index 4f3654f57..2ca3decfd 100644 --- a/src/declarativeimports/core/svgitem.h +++ b/src/declarativeimports/core/svgitem.h @@ -102,7 +102,7 @@ private: void updatePolish() override; void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override; - QWeakPointer m_svg; + QPointer m_svg; QString m_elementID; bool m_smooth; bool m_textureChanged; diff --git a/src/declarativeimports/core/tooltip.h b/src/declarativeimports/core/tooltip.h index efed9b8bd..576f77c14 100644 --- a/src/declarativeimports/core/tooltip.h +++ b/src/declarativeimports/core/tooltip.h @@ -23,7 +23,7 @@ #define TOOLTIPOBJECT_H #include -#include +#include #include #include @@ -204,7 +204,7 @@ private: bool m_tooltipsEnabledGlobally; bool m_containsMouse; Plasma::Types::Location m_location; - QWeakPointer m_mainItem; + QPointer m_mainItem; QTimer *m_showTimer; QString m_mainText; QString m_subText; diff --git a/src/declarativeimports/core/tooltipdialog.h b/src/declarativeimports/core/tooltipdialog.h index 63c88a62d..9ec91b728 100644 --- a/src/declarativeimports/core/tooltipdialog.h +++ b/src/declarativeimports/core/tooltipdialog.h @@ -24,7 +24,6 @@ #include #include -#include #include class QQuickItem; diff --git a/src/declarativeimports/plasmacomponents/fullscreenwindow.h b/src/declarativeimports/plasmacomponents/fullscreenwindow.h index 85920bcd7..99b139661 100644 --- a/src/declarativeimports/plasmacomponents/fullscreenwindow.h +++ b/src/declarativeimports/plasmacomponents/fullscreenwindow.h @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include @@ -83,10 +83,10 @@ protected: private: QGraphicsView *m_view; - QWeakPointer m_mainItem; + QPointer m_mainItem; DeclarativeItemContainer *m_declarativeItemContainer; QGraphicsScene *m_scene; - QWeakPointer m_rootObject; + QPointer m_rootObject; static uint s_numItems; Background *m_background; diff --git a/src/declarativeimports/plasmacomponents/qmenu.h b/src/declarativeimports/plasmacomponents/qmenu.h index a19768397..de5ec2c21 100644 --- a/src/declarativeimports/plasmacomponents/qmenu.h +++ b/src/declarativeimports/plasmacomponents/qmenu.h @@ -22,6 +22,7 @@ #include #include +#include #include #include "qmenuitem.h" #include "enums.h" @@ -189,7 +190,7 @@ private: QList m_items; QMenu *m_menu; DialogStatus::Status m_status; - QWeakPointer m_visualParent; + QPointer m_visualParent; Plasma::Types::PopupPlacement m_placement; }; diff --git a/src/plasma/pluginloader.cpp b/src/plasma/pluginloader.cpp index 7da0f6d5d..daf5e661b 100644 --- a/src/plasma/pluginloader.cpp +++ b/src/plasma/pluginloader.cpp @@ -19,6 +19,7 @@ #include "pluginloader.h" +#include #include #include @@ -64,7 +65,7 @@ public: static QString parentAppConstraint(const QString &parentApp = QString()); static QSet s_customCategories; - QHash > structures; + QHash > structures; bool isDefaultLoader; static QString s_dataEnginePluginDir; @@ -144,7 +145,7 @@ PluginLoader::PluginLoader() PluginLoader::~PluginLoader() { - typedef QWeakPointer pswp; + typedef QPointer pswp; foreach (pswp wp, d->structures) { delete wp.data(); } diff --git a/src/plasma/private/datacontainer_p.h b/src/plasma/private/datacontainer_p.h index 13d1c1dfa..70c284561 100644 --- a/src/plasma/private/datacontainer_p.h +++ b/src/plasma/private/datacontainer_p.h @@ -89,7 +89,7 @@ public: Storage *storage; QBasicTimer storageTimer; QBasicTimer checkUsageTimer; - QWeakPointer model; + QPointer model; int storageCount; bool dirty : 1; bool cached : 1; diff --git a/src/plasma/private/storage.cpp b/src/plasma/private/storage.cpp index 8ac2d2d85..7a76aa8ec 100644 --- a/src/plasma/private/storage.cpp +++ b/src/plasma/private/storage.cpp @@ -48,7 +48,7 @@ StorageJob::StorageJob(const QString &destination, Plasma::StorageThread::self()->start(); connect(Plasma::StorageThread::self(), SIGNAL(newResult(StorageJob*,QVariant)), this, SLOT(resultSlot(StorageJob*,QVariant))); qRegisterMetaType(); - qRegisterMetaType >(); + qRegisterMetaType >(); } StorageJob::~StorageJob() @@ -80,15 +80,15 @@ void StorageJob::start() valueGroup = QStringLiteral("default"); } - QWeakPointer me(this); + QPointer me(this); if (operationName() == QLatin1String("save")) { - QMetaObject::invokeMethod(Plasma::StorageThread::self(), "save", Qt::QueuedConnection, Q_ARG(QWeakPointer, me), Q_ARG(QVariantMap, params)); + QMetaObject::invokeMethod(Plasma::StorageThread::self(), "save", Qt::QueuedConnection, Q_ARG(QPointer, me), Q_ARG(QVariantMap, params)); } else if (operationName() == QLatin1String("retrieve")) { - QMetaObject::invokeMethod(Plasma::StorageThread::self(), "retrieve", Qt::QueuedConnection, Q_ARG(QWeakPointer, me), Q_ARG(QVariantMap, params)); + QMetaObject::invokeMethod(Plasma::StorageThread::self(), "retrieve", Qt::QueuedConnection, Q_ARG(QPointer, me), Q_ARG(QVariantMap, params)); } else if (operationName() == QLatin1String("delete")) { - QMetaObject::invokeMethod(Plasma::StorageThread::self(), "deleteEntry", Qt::QueuedConnection, Q_ARG(QWeakPointer, me), Q_ARG(QVariantMap, params)); + QMetaObject::invokeMethod(Plasma::StorageThread::self(), "deleteEntry", Qt::QueuedConnection, Q_ARG(QPointer, me), Q_ARG(QVariantMap, params)); } else if (operationName() == QLatin1String("expire")) { - QMetaObject::invokeMethod(Plasma::StorageThread::self(), "expire", Qt::QueuedConnection, Q_ARG(QWeakPointer, me), Q_ARG(QVariantMap, params)); + QMetaObject::invokeMethod(Plasma::StorageThread::self(), "expire", Qt::QueuedConnection, Q_ARG(QPointer, me), Q_ARG(QVariantMap, params)); } else { setError(true); setResult(false); diff --git a/src/plasma/private/storage_p.h b/src/plasma/private/storage_p.h index 5c951e183..d89298881 100644 --- a/src/plasma/private/storage_p.h +++ b/src/plasma/private/storage_p.h @@ -55,7 +55,7 @@ private: //End StorageJob Q_DECLARE_METATYPE(StorageJob *) -Q_DECLARE_METATYPE(QWeakPointer) +Q_DECLARE_METATYPE(QPointer) class Storage : public Plasma::Service { diff --git a/src/plasma/private/storagethread.cpp b/src/plasma/private/storagethread.cpp index 3a1db087d..ffcd003f2 100644 --- a/src/plasma/private/storagethread.cpp +++ b/src/plasma/private/storagethread.cpp @@ -97,7 +97,7 @@ void StorageThread::initializeDb(StorageJob *caller) m_db.transaction(); } -void StorageThread::save(QWeakPointer wcaller, const QVariantMap ¶ms) +void StorageThread::save(QPointer wcaller, const QVariantMap ¶ms) { StorageJob *caller = wcaller.data(); if (!caller) { @@ -200,7 +200,7 @@ void StorageThread::save(QWeakPointer wcaller, const QVariantMap &pa emit newResult(caller, true); } -void StorageThread::retrieve(QWeakPointer wcaller, const QVariantMap ¶ms) +void StorageThread::retrieve(QPointer wcaller, const QVariantMap ¶ms) { StorageJob *caller = wcaller.data(); if (!caller) { @@ -273,7 +273,7 @@ void StorageThread::retrieve(QWeakPointer wcaller, const QVariantMap emit newResult(caller, result); } -void StorageThread::deleteEntry(QWeakPointer wcaller, const QVariantMap ¶ms) +void StorageThread::deleteEntry(QPointer wcaller, const QVariantMap ¶ms) { StorageJob *caller = wcaller.data(); if (!caller) { @@ -303,7 +303,7 @@ void StorageThread::deleteEntry(QWeakPointer wcaller, const QVariant emit newResult(caller, success); } -void StorageThread::expire(QWeakPointer wcaller, const QVariantMap ¶ms) +void StorageThread::expire(QPointer wcaller, const QVariantMap ¶ms) { StorageJob *caller = wcaller.data(); if (!caller) { diff --git a/src/plasma/private/storagethread_p.h b/src/plasma/private/storagethread_p.h index c5ae8d933..a82365437 100644 --- a/src/plasma/private/storagethread_p.h +++ b/src/plasma/private/storagethread_p.h @@ -22,7 +22,7 @@ #include #include -#include +#include #include "storage_p.h" @@ -43,10 +43,10 @@ public: void closeDb(); public Q_SLOTS: - void save(QWeakPointer caller, const QVariantMap ¶meters); - void retrieve(QWeakPointer caller, const QVariantMap ¶meters); - void deleteEntry(QWeakPointer caller, const QVariantMap ¶meters); - void expire(QWeakPointer caller, const QVariantMap ¶meters); + void save(QPointer caller, const QVariantMap ¶meters); + void retrieve(QPointer caller, const QVariantMap ¶meters); + void deleteEntry(QPointer caller, const QVariantMap ¶meters); + void expire(QPointer caller, const QVariantMap ¶meters); Q_SIGNALS: void newResult(StorageJob *caller, const QVariant &result); diff --git a/src/plasma/private/svg_p.h b/src/plasma/private/svg_p.h index ab8dde784..e9d8f41b7 100644 --- a/src/plasma/private/svg_p.h +++ b/src/plasma/private/svg_p.h @@ -21,6 +21,7 @@ #define PLASMA_SVG_P_H #include +#include #include #include #include @@ -96,11 +97,11 @@ public: void colorsChanged(); static QHash s_renderers; - static QWeakPointer s_systemColorsCache; + static QPointer s_systemColorsCache; static qreal s_lastScaleFactor; Svg *q; - QWeakPointer theme; + QPointer theme; QHash localRectCache; QHash elementsWithSizeHints; SharedSvgRenderer::Ptr renderer; diff --git a/src/plasma/svg.cpp b/src/plasma/svg.cpp index 87fe53afa..8df69d956 100644 --- a/src/plasma/svg.cpp +++ b/src/plasma/svg.cpp @@ -693,7 +693,7 @@ void SvgPrivate::colorsChanged() } QHash SvgPrivate::s_renderers; -QWeakPointer SvgPrivate::s_systemColorsCache; +QPointer SvgPrivate::s_systemColorsCache; qreal SvgPrivate::s_lastScaleFactor = 1.0; Svg::Svg(QObject *parent) diff --git a/src/plasmaquick/appletquickitem.h b/src/plasmaquick/appletquickitem.h index 7c88b500c..9f0e53241 100644 --- a/src/plasmaquick/appletquickitem.h +++ b/src/plasmaquick/appletquickitem.h @@ -21,7 +21,6 @@ #define APPLETQUICKITEM_H #include -#include #include #include #include diff --git a/src/plasmaquick/configmodel.cpp b/src/plasmaquick/configmodel.cpp index 637640211..320ae95cb 100644 --- a/src/plasmaquick/configmodel.cpp +++ b/src/plasmaquick/configmodel.cpp @@ -53,7 +53,7 @@ public: ConfigModel *q; QList categories; - QWeakPointer appletInterface; + QPointer appletInterface; QHash kcms; void appendCategory(ConfigCategory *c); diff --git a/src/plasmaquick/configview.cpp b/src/plasmaquick/configview.cpp index e44507386..66c3353a8 100644 --- a/src/plasmaquick/configview.cpp +++ b/src/plasmaquick/configview.cpp @@ -64,13 +64,13 @@ public: void mainItemLoaded(); ConfigView *q; - QWeakPointer applet; + QPointer applet; ConfigModel *configModel; ConfigModel *kcmConfigModel; Plasma::Corona *corona; //Attached Layout property of mainItem, if any - QWeakPointer mainItemLayout; + QPointer mainItemLayout; }; ConfigViewPrivate::ConfigViewPrivate(Plasma::Applet *appl, ConfigView *view) diff --git a/src/scriptengines/qml/plasmoid/containmentinterface.h b/src/scriptengines/qml/plasmoid/containmentinterface.h index ea2245375..4fa13fa0d 100644 --- a/src/scriptengines/qml/plasmoid/containmentinterface.h +++ b/src/scriptengines/qml/plasmoid/containmentinterface.h @@ -215,7 +215,7 @@ private: QHash m_dropJobs; KActivities::Info *m_activityInfo; QPointer m_containment; - QWeakPointer m_contextMenu; + QPointer m_contextMenu; int m_wheelDelta; bool m_editMode : 1; friend class AppletInterface;