score
Home
Classes
Namespaces
Files
Loading...
Searching...
No Matches
ReactiveLabel.hpp
1
#pragma once
2
3
#include <QLabel>
4
5
namespace
score
6
{
7
template
<
typename
Property_T>
8
class
ReactiveLabel
:
public
QLabel
9
{
10
public
:
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
}
score::ReactiveLabel
Definition
ReactiveLabel.hpp:9
score
Base toolkit upon which the software is built.
Definition
Application.cpp:90