summaryrefslogtreecommitdiff
path: root/metawatch
diff options
context:
space:
mode:
Diffstat (limited to 'metawatch')
-rw-r--r--metawatch/metawatchdigitalsimulator.cpp1
-rw-r--r--metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml11
2 files changed, 12 insertions, 0 deletions
diff --git a/metawatch/metawatchdigitalsimulator.cpp b/metawatch/metawatchdigitalsimulator.cpp
index f12e987..5c399bd 100644
--- a/metawatch/metawatchdigitalsimulator.cpp
+++ b/metawatch/metawatchdigitalsimulator.cpp
@@ -116,4 +116,5 @@ void MetaWatchDigitalSimulator::retryConnect()
void MetaWatchDigitalSimulator::send(const Message &msg)
{
// Do not send messages
+ Q_UNUSED(msg);
}
diff --git a/metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml b/metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml
index 6af7b18..e16869f 100644
--- a/metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml
+++ b/metawatch/qml/com/javispedro/sowatch/metawatch/MWListView.qml
@@ -67,6 +67,17 @@ ListView {
}
}
+ function scrollTop() {
+ if (count == 0) {
+ return;
+ }
+ if (selectable) {
+ currentIndex = 0;
+ }
+ positionViewAtIndex(0, ListView.Beginning);
+
+ }
+
Rectangle {
id: indicatorCont
visible: list.indicator && (list.contentHeight > list.height)