Port some things away from Controller::activeConnection

This commit is contained in:
Tobias Fella
2023-11-04 23:26:41 +01:00
parent ff4cf86ea5
commit 0e55c3b38f
29 changed files with 289 additions and 154 deletions

View File

@@ -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;