Add captionChanged signal
Emitted during setCaption. The Q_PROPERTY has no setter as caption is provided through WM_NAME.
This commit is contained in:
parent
08ad6c953f
commit
01633be601
2 changed files with 7 additions and 2 deletions
|
@ -1869,6 +1869,7 @@ void Client::setCaption(const QString& _s, bool force)
|
|||
client_group->updateItems();
|
||||
decoration->captionChange();
|
||||
}
|
||||
emit captionChanged();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
8
client.h
8
client.h
|
@ -76,8 +76,11 @@ class Client
|
|||
* @see Workspace::activateClient
|
||||
**/
|
||||
Q_PROPERTY(bool active READ isActive NOTIFY activeChanged)
|
||||
// TODO: notify signal
|
||||
Q_PROPERTY(QString caption READ caption)
|
||||
/**
|
||||
* The Caption of the Client. Read from WM_NAME property together with a suffix for hostname and shortcut.
|
||||
* To read only the caption as provided by WM_NAME, use the getter with an additional @c false value.
|
||||
**/
|
||||
Q_PROPERTY(QString caption READ caption NOTIFY captionChanged)
|
||||
// TODO: notify signal
|
||||
Q_PROPERTY(bool closeable READ isCloseable)
|
||||
// TODO: notify signal
|
||||
|
@ -523,6 +526,7 @@ signals:
|
|||
void clientStepUserMovedResized(KWin::Client *, const QRect&);
|
||||
void clientFinishUserMovedResized(KWin::Client*);
|
||||
void activeChanged();
|
||||
void captionChanged();
|
||||
|
||||
private:
|
||||
void exportMappingState(int s); // ICCCM 4.1.3.1, 4.1.4, NETWM 2.5.1
|
||||
|
|
Loading…
Reference in a new issue