Changeset 77a3e6a in subsurface


Ignore:
Timestamp:
Jun 16, 2017, 1:22:44 AM (8 days ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
b453403
Parents:
27deb31
Message:

QML UI: clear the previous list when downloading

When you start a new session with Download from DC, clear out the table
from the last attempt before adding the page.

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

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • mobile-widgets/qml/DownloadFromDiveComputer.qml

    rfb2638b3 r77a3e6a  
    1717
    1818        property bool selectAll : false
     19        property alias dcImportModel: importModel
    1920
    2021        DCDownloadThread {
  • mobile-widgets/qml/main.qml

    r8056e16 r77a3e6a  
    158158                                        enabled: true
    159159                                        onTriggered: {
     160                                                downloadFromDc.dcImportModel.clearTable()
    160161                                                stackView.push(downloadFromDc)
    161162                                        }
  • qt-models/diveimportedmodel.h

    r03e7710 r77a3e6a  
    1919        void setImportedDivesIndexes(int first, int last);
    2020        Qt::ItemFlags flags(const QModelIndex &index) const;
    21         void clearTable();
     21        Q_INVOKABLE void clearTable();
    2222        QHash<int, QByteArray> roleNames() const;
    2323        Q_INVOKABLE void repopulate();
Note: See TracChangeset for help on using the changeset viewer.