Changeset 0a0c93e in subsurface


Ignore:
Timestamp:
Jul 9, 2017, 6:08:06 PM (3 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
dbb5826
Parents:
ff65939
Message:

QML UI: add variable for libdc logfile

It seemed cleanest and easiest to have this in the QMLManager and
not in the DCDownload object.

Signed-off-by: Dirk Hohndel <dirk@…>

Location:
mobile-widgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mobile-widgets/qmlmanager.cpp

    rc59a740 r0a0c93e  
    8686        m_credentialStatus(UNKNOWN),
    8787        alreadySaving(false),
    88         m_device_data(new DCDeviceData(this))
     88        m_device_data(new DCDeviceData(this)),
     89        m_libdcLog(false)
    8990{
    9091        m_instance = this;
     
    15451546}
    15461547
     1548bool QMLManager::libdcLog() const
     1549{
     1550        return m_libdcLog;
     1551}
     1552
     1553void QMLManager::setLibdcLog(bool value)
     1554{
     1555        m_libdcLog = value;
     1556        emit libdcLogChanged();
     1557}
     1558
    15471559#if defined (Q_OS_ANDROID)
    15481560
  • mobile-widgets/qmlmanager.h

    rc59a740 r0a0c93e  
    4242        Q_PROPERTY(bool showPin READ showPin WRITE setShowPin NOTIFY showPinChanged)
    4343        Q_PROPERTY(QString progressMessage READ progressMessage WRITE setProgressMessage NOTIFY progressMessageChanged)
     44        Q_PROPERTY(bool libdcLog READ libdcLog WRITE setLibdcLog NOTIFY libdcLogChanged)
    4445
    4546public:
     
    115116        QString progressMessage() const;
    116117        void setProgressMessage(QString text);
     118
     119        bool libdcLog() const;
     120        void setLibdcLog(bool value);
    117121
    118122        typedef void (QMLManager::*execute_function_type)();
     
    212216        DCDeviceData *m_device_data;
    213217        QString m_progressMessage;
     218        bool m_libdcLog;
    214219#if defined(Q_OS_ANDROID)
    215220        QString appLogFileName;
     
    240245        void sendScreenChanged(QScreen *screen);
    241246        void progressMessageChanged();
     247        void libdcLogChanged();
    242248};
    243249
Note: See TracChangeset for help on using the changeset viewer.