diff options
author | Tomasz Olszak <olszak.tomasz@gmail.com> | 2014-10-07 01:05:06 +0200 |
---|---|---|
committer | Tomasz Olszak <olszak.tomasz@gmail.com> | 2014-10-07 02:21:03 +0200 |
commit | c42c0171092b2ddc40153325dbca0a1f6ff05508 (patch) | |
tree | fb974c3a4e0b88af9b5024cd666c5a23cd74bbc4 | |
parent | db39bfd4bbf38ac5618374bce905fc9f41adc29e (diff) | |
download | qtquickcontrols-tizen-tizen_3.0_ivi.tar.gz qtquickcontrols-tizen-tizen_3.0_ivi.tar.bz2 qtquickcontrols-tizen-tizen_3.0_ivi.zip |
[HOTFIX] Added ApplicationWindowStyle based on Base style.tizen_3.0.m14.3_ivi_releasetizen_3.0.2014.q3_common_releasesubmit/tizen_mobile/20141120.000000submit/tizen_ivi/20141010.000000submit/tizen/20141007.194728accepted/tizen/ivi/20141011.052151accepted/tizen/common/20141008.082139tizen_3.0_ivitizen_3.0.m14.3_ivitizen_3.0.2014.q3_commonaccepted/tizen_3.0.m14.3_iviaccepted/tizen_3.0.2014.q3_common
Bug-Tizen: TC-1008
Change-Id: I19b5170241bbd952bdccf14bca990e667cf92ebd
Signed-off-by: Tomasz Olszak <olszak.tomasz@gmail.com>
-rw-r--r-- | src/styles/ApplicationWindowStyle.qml | 59 | ||||
-rw-r--r-- | src/styles/styles.pro | 3 |
2 files changed, 61 insertions, 1 deletions
diff --git a/src/styles/ApplicationWindowStyle.qml b/src/styles/ApplicationWindowStyle.qml new file mode 100644 index 0000000..453a148 --- /dev/null +++ b/src/styles/ApplicationWindowStyle.qml @@ -0,0 +1,59 @@ +import QtQuick 2.2 +import QtQuick.Controls 1.2 +import QtQuick.Controls.Private 1.0 + +QtObject { + readonly property ApplicationWindow control: __control + + property Component background: Rectangle { + visible: !styleData.hasColor + color: SystemPaletteSingleton.window(true) + } + + property Component panel: Item { + readonly property alias contentArea: contentArea + readonly property alias menuBarArea: menuBarArea + readonly property alias toolBarArea: toolBarArea + readonly property alias statusBarArea: statusBarArea + + Loader { + anchors.fill: parent + sourceComponent: background + } + + Item { + id: contentArea + anchors.top: toolBarArea.bottom + anchors.left: parent.left + anchors.right: parent.right + anchors.bottom: statusBarArea.top + } + + Item { + id: toolBarArea + anchors.top: parent.menuBarArea.bottom + anchors.left: parent.left + anchors.right: parent.right + implicitHeight: childrenRect.height + height: visibleChildren.length > 0 ? implicitHeight: 0 + } + + Item { + id: menuBarArea + anchors.top: parent.top + anchors.left: parent.left + anchors.right: parent.right + implicitHeight: childrenRect.height + height: visibleChildren.length > 0 ? implicitHeight: 0 + } + + Item { + id: statusBarArea + anchors.bottom: parent.bottom + anchors.left: parent.left + anchors.right: parent.right + implicitHeight: childrenRect.height + height: visibleChildren.length > 0 ? implicitHeight: 0 + } + } +} diff --git a/src/styles/styles.pro b/src/styles/styles.pro index 90ef5d7..8d3a20d 100644 --- a/src/styles/styles.pro +++ b/src/styles/styles.pro @@ -29,7 +29,8 @@ QML_FILES = \ PanelStyle.qml \ RadioButtonStyle.qml \ FocusFrameStyle.qml \ - ScrollViewStyle.qml + ScrollViewStyle.qml \ + ApplicationWindowStyle.qml QML_FILES += \ private/DateEditField.qml\ |