Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwintabbox/layoutpreview.h
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | |||||
49 | { | 49 | { | ||
50 | Q_OBJECT | 50 | Q_OBJECT | ||
51 | public: | 51 | public: | ||
52 | explicit ExampleClientModel(QObject *parent = nullptr); | 52 | explicit ExampleClientModel(QObject *parent = nullptr); | ||
53 | virtual ~ExampleClientModel(); | 53 | virtual ~ExampleClientModel(); | ||
54 | 54 | | |||
55 | virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; | 55 | virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; | ||
56 | virtual int rowCount(const QModelIndex &parent = QModelIndex()) const; | 56 | virtual int rowCount(const QModelIndex &parent = QModelIndex()) const; | ||
57 | virtual QHash<int, QByteArray> roleNames() const; | ||||
57 | Q_INVOKABLE QString longestCaption() const; | 58 | Q_INVOKABLE QString longestCaption() const; | ||
58 | 59 | | |||
59 | private: | 60 | private: | ||
60 | void init(); | 61 | void init(); | ||
61 | QList<KService::Ptr> m_services; | 62 | QList<KService::Ptr> m_services; | ||
62 | KService::Ptr m_fileManager; | 63 | KService::Ptr m_fileManager; | ||
63 | KService::Ptr m_browser; | 64 | KService::Ptr m_browser; | ||
64 | KService::Ptr m_email; | 65 | KService::Ptr m_email; | ||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |