Loading...
Searching...
No Matches
ReactiveLabel.hpp
1#pragma once
2
3#include <QLabel>
4
5namespace score
6{
7template <typename Property_T>
8class ReactiveLabel : public QLabel
9{
10public:
11 ReactiveLabel(const typename Property_T::model_type& model, QWidget* parent)
12 : QLabel{(model.*Property_T::get())(), parent}
13 {
14 con(model, Property_T::notify(), this, &QLabel::setText);
15 }
16};
17}
Definition ReactiveLabel.hpp:9
Base toolkit upon which the software is built.
Definition Application.cpp:90