summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-12 23:50:43 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-12 23:50:43 +0200
commit76544a015e0db637e1328ad66da9bef3c50f8217 (patch)
treeb0c936b1e63d2887a5b56602f0b577551ed47ac2
parent25eecf940815db811f66256831a7b74a3b8ea9f7 (diff)
downloadsowatch-76544a015e0db637e1328ad66da9bef3c50f8217.tar.gz
sowatch-76544a015e0db637e1328ad66da9bef3c50f8217.zip
fix scrollable again
-rw-r--r--metawatch/metawatch.cpp4
-rw-r--r--metawatch/qml/com/javispedro/sowatch/metawatch/MWScrollable.qml6
2 files changed, 7 insertions, 3 deletions
diff --git a/metawatch/metawatch.cpp b/metawatch/metawatch.cpp
index 3845817..783a44f 100644
--- a/metawatch/metawatch.cpp
+++ b/metawatch/metawatch.cpp
@@ -691,7 +691,9 @@ void MetaWatch::realReceive(bool block)
do {
qint64 dataRead;
+#if PROTOCOL_DEBUG
qDebug() << "received" << _socket->bytesAvailable() << "bytes";
+#endif
if (_partialReceived.type == 0) {
/* Still not received even the packet type */
@@ -729,7 +731,9 @@ void MetaWatch::realReceive(bool block)
_partialReceived.type = static_cast<MessageType>(header[2]);
_partialReceived.data.resize(header[1] - 6);
_partialReceived.options = header[3];
+#if PROTOCOL_DEBUG
qDebug() << "got header";
+#endif
}
/* We have the header; now, try to get the complete packet. */
diff --git a/metawatch/qml/com/javispedro/sowatch/metawatch/MWScrollable.qml b/metawatch/qml/com/javispedro/sowatch/metawatch/MWScrollable.qml
index 1a48118..3b6c44e 100644
--- a/metawatch/qml/com/javispedro/sowatch/metawatch/MWScrollable.qml
+++ b/metawatch/qml/com/javispedro/sowatch/metawatch/MWScrollable.qml
@@ -10,8 +10,8 @@ Flickable {
boundsBehavior: Flickable.StopAtBounds
flickableDirection: Flickable.VerticalFlick
- contentWidth: childrenRect.width
- contentHeight: childrenRect.height
+ contentWidth: contentItem.childrenRect.width
+ contentHeight: contentItem.childrenRect.height
function scrollDown() {
console.log(contentHeight + " " + height);
@@ -41,7 +41,7 @@ Flickable {
contentY = 0;
}
- Rectangle {
+ children: Rectangle {
id: indicatorCont
visible: flickable.indicator && (flickable.contentHeight > flickable.height)
anchors.top: parent.top