signal title changes
so that interested parties (the iconbar ;-) can use/forward them
This commit is contained in:
parent
f6e1f555f9
commit
a8b0b3632b
2 changed files with 4 additions and 0 deletions
|
@ -238,6 +238,7 @@ void IconButton::refreshEverything(bool setup) {
|
|||
|
||||
void IconButton::clientTitleChanged() {
|
||||
refreshEverything(true);
|
||||
m_title_changed.emit();
|
||||
|
||||
if (m_has_tooltip)
|
||||
showTooltip();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue