[kwin/tabbox] Make ClientModel::longestClient() invokable

This allows to just invoke the method on the model instead of setting
it from the C++ side.
This commit is contained in:
Martin Gräßlin 2013-12-09 15:37:56 +01:00
parent 5f7eab206d
commit 3f7344501f

View file

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