Changeset View
Changeset View
Standalone View
Standalone View
src/context/AppletModel.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 36 | public: | |||
---|---|---|---|---|---|
53 | virtual QVariant data(const QModelIndex& index, int role) const Q_DECL_OVERRIDE; | 53 | virtual QVariant data(const QModelIndex& index, int role) const Q_DECL_OVERRIDE; | ||
54 | virtual bool setData(const QModelIndex& index, const QVariant& value, int role) Q_DECL_OVERRIDE; | 54 | virtual bool setData(const QModelIndex& index, const QVariant& value, int role) Q_DECL_OVERRIDE; | ||
55 | virtual QHash< int, QByteArray > roleNames() const Q_DECL_OVERRIDE; | 55 | virtual QHash< int, QByteArray > roleNames() const Q_DECL_OVERRIDE; | ||
56 | 56 | | |||
57 | AppletLoader* loader() const { return m_loader; } | 57 | AppletLoader* loader() const { return m_loader; } | ||
58 | 58 | | |||
59 | Q_INVOKABLE void setAppletCollapsed(const QString &id, bool collapsed); | 59 | Q_INVOKABLE void setAppletCollapsed(const QString &id, bool collapsed); | ||
60 | Q_INVOKABLE void setAppletContentHeight(const QString& id, qreal height); | 60 | Q_INVOKABLE void setAppletContentHeight(const QString& id, qreal height); | ||
61 | Q_INVOKABLE QUrl imageUrl(const QString &id, const QString &imageName); | ||||
61 | 62 | | |||
62 | public Q_SLOTS: | 63 | public Q_SLOTS: | ||
63 | void newApplets(const QList<KPluginMetaData> &applets); | 64 | void newApplets(const QList<KPluginMetaData> &applets); | ||
64 | 65 | | |||
65 | protected: | 66 | protected: | ||
66 | AppletPackage findPackage(const QString &id); | 67 | AppletPackage findPackage(const QString &id); | ||
67 | 68 | | |||
68 | private: | 69 | private: | ||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |