signal title changes

so that interested parties (the iconbar ;-) can use/forward them
This commit is contained in:
Thomas Lübking 2016-08-03 21:46:52 +02:00
parent f6e1f555f9
commit a8b0b3632b
2 changed files with 4 additions and 0 deletions

View file

@ -238,6 +238,7 @@ void IconButton::refreshEverything(bool setup) {
void IconButton::clientTitleChanged() {
refreshEverything(true);
m_title_changed.emit();
if (m_has_tooltip)
showTooltip();

View file

@ -64,6 +64,8 @@ public:
bool setOrientation(FbTk::Orientation orient);
const FbTk::Signal<> &titleChanged() { return m_title_changed; }
protected:
void drawText(int x, int y, FbTk::FbDrawable *drawable_override);
private:
@ -89,6 +91,7 @@ private:
// cached pixmaps
FbTk::CachedPixmap m_pm;
FbTk::SignalTracker m_signals;
FbTk::Signal<> m_title_changed;
};
#endif // ICONBUTTON_HH