Port some things away from Controller::activeConnection
This commit is contained in:
11
src/runner.h
11
src/runner.h
@@ -165,6 +165,10 @@ class Runner : public QObject, protected QDBusContext
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_CLASSINFO("D-Bus Interface", "org.kde.krunner1")
|
||||
QML_ELEMENT
|
||||
QML_SINGLETON
|
||||
|
||||
Q_PROPERTY(RoomListModel *roomListModel READ roomListModel WRITE setRoomListModel NOTIFY roomListModelChanged)
|
||||
public:
|
||||
Runner();
|
||||
|
||||
@@ -185,9 +189,14 @@ public:
|
||||
*/
|
||||
Q_SCRIPTABLE void Run(const QString &id, const QString &actionId);
|
||||
|
||||
void setRoomListModel(RoomListModel *roomListModel);
|
||||
RoomListModel *roomListModel() const;
|
||||
|
||||
Q_SIGNALS:
|
||||
void roomListModelChanged();
|
||||
|
||||
private:
|
||||
RemoteImage serializeImage(const QImage &image);
|
||||
void activeConnectionChanged();
|
||||
|
||||
SortFilterRoomListModel m_model;
|
||||
RoomListModel m_sourceModel;
|
||||
|
||||
Reference in New Issue
Block a user