Changeset fc60f210 in subsurface


Ignore:
Timestamp:
Jan 21, 2017, 5:06:07 PM (11 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
d62e461
Parents:
affea80
git-author:
Dirk Hohndel <dirk@…> (01/21/17 16:22:15)
git-committer:
Dirk Hohndel <dirk@…> (01/21/17 17:06:07)
Message:

QML UI: move 'No dives in dive list' down

Otherwise it overlaps with the page title.

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

File:
1 edited

Legend:

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

    r14b4c94 rfc60f210  
    1 import QtQuick 2.4
     1import QtQuick 2.6
    22import QtQuick.Controls 1.2
    33import QtQuick.Layouts 1.2
     
    245245        }
    246246
    247         Kirigami.Label {
     247        Text {
     248                // make sure this gets pushed far enough down so that it's not obscured by the page title
     249                // it would be nicer to use Kirigami.Label, but due to a QML bug that isn't possible with a
     250                // weird "component versioning" error
     251                // using this property means that we require Qt 5.6 / QtQuick2.6
     252                topPadding: Kirigami.Units.iconSizes.large
     253                leftPadding: Kirigami.Units.iconSizes.large
     254
    248255                text: qsTr("No dives in dive list")
    249256                visible: diveListView.visible && diveListView.count === 0
Note: See TracChangeset for help on using the changeset viewer.