~faenil/ubuntu-ui-toolkit/scrollbar_moreHoverFixesAndTests

« back to all changes in this revision

Viewing changes to src/Ubuntu/UbuntuToolkit/listener.cpp

  • Committer: Andrea Bernabei
  • Date: 2016-07-07 15:21:03 UTC
  • mfrom: (1903.1.124 staging)
  • Revision ID: andrea.bernabei@canonical.com-20160707152103-eaz1u4zpnyhlacwf
merge staging

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
#include <QQmlContext>
20
20
 
 
21
UT_NAMESPACE_BEGIN
 
22
 
21
23
ContextPropertyChangeListener::ContextPropertyChangeListener(QQmlContext *context, const QString &contextProperty) :
22
24
    QObject(context),
23
25
    m_context(context),
30
32
    QVariant value = m_context->contextProperty(m_contextProperty);
31
33
    m_context->setContextProperty(m_contextProperty, value);
32
34
}
 
35
 
 
36
UT_NAMESPACE_END