[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/plasma/shells/mobile/containments/mobilelauncher
From: Marco Martin <notmart () gmail ! com>
Date: 2010-07-31 20:37:15
Message-ID: 20100731203715.C6BEFAC783 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1157673 by mart:
all the containment space if for the qml scene
the view has a translucent black background
M +2 -1 mobilelauncher.cpp
M +10 -0 qml/view.qml
--- trunk/playground/base/plasma/shells/mobile/containments/mobilelauncher/mobilelauncher.cpp \
#1157672:1157673 @@ -68,10 +68,11 @@
m_runnerModel = new KRunnerModel(this);
m_runnerModel->setQuery("Network");
- setContentsMargins(0, 16, 0, 32);
+ setContentsMargins(0, 0, 0, 0);
m_qmlWidget = new Plasma::QmlWidget(this);
QGraphicsLinearLayout *lay = new QGraphicsLinearLayout(this);
+ lay->setContentsMargins(0, 0, 0, 0);
lay->addItem(m_qmlWidget);
m_qmlWidget->setQmlPath(KStandardDirs::locate("data", \
"plasma-mobile/containments/mobilelauncher/view.qml"));
--- trunk/playground/base/plasma/shells/mobile/containments/mobilelauncher/qml/view.qml \
#1157672:1157673 @@ -1,9 +1,18 @@
import MobileLauncher 1.0
import Qt 4.7
+Rectangle {
+ color: Qt.rgba(0,0,0,0.4)
+
GridView {
id: gridView
+
anchors.fill: parent
+ anchors.topMargin: 32
+ anchors.bottomMargin: 32
+ anchors.leftMargin: 4
+ anchors.rightMargin: 4
+
model: myModel
flow: GridView.LeftToRight
snapMode: GridView.SnapToRow
@@ -42,3 +51,4 @@
}
}
}
+}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic