From 3f7344501f3d7f71f1fea7f83d0f6858ccae9840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 9 Dec 2013 15:37:56 +0100 Subject: [PATCH] [kwin/tabbox] Make ClientModel::longestClient() invokable This allows to just invoke the method on the model instead of setting it from the C++ side. --- tabbox/clientmodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabbox/clientmodel.h b/tabbox/clientmodel.h index 37d0c94031..0bfe97f4ac 100644 --- a/tabbox/clientmodel.h +++ b/tabbox/clientmodel.h @@ -64,7 +64,7 @@ public: virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; virtual QModelIndex parent(const QModelIndex& child) const; virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const; - QString longestCaption() const; + Q_INVOKABLE QString longestCaption() const; /** * @param client The TabBoxClient whose index should be returned