Commit d07b56f9 authored by Samikshan Bairagya's avatar Samikshan Bairagya

Fix warnings related to anchoring items inside column in QML interface for WI.

parent 7752d95d
......@@ -488,22 +488,26 @@ Rectangle {
contentWidth: parent.width
contentHeight: col.height
Column {
id: col
width: parent.width
Text {
id: descText
objectName: "descTextObj"
color: "#187988"
text: qsTr("text")
anchors.top: parent.top
anchors.topMargin: 3
anchors.left: parent.left
anchors.leftMargin: 6
clip: true
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
Item {
id: descTextItem
anchors.top :parent.top
anchors.topMargin: 3
anchors.left: parent.left
anchors.leftMargin: 6
anchors.right: parent.right
Column {
id: col
width: parent.width
font.pixelSize: 12
Text {
id: descText
objectName: "descTextObj"
color: "#187988"
text: qsTr("text")
clip: true
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
width: parent.width
font.pixelSize: 12
}
}
}
}
......
......@@ -71,19 +71,7 @@ WIView::~WIView()
void WIView::onCategorySelected(int type)
{
switch(type)
{
case 0: ///Planet type
case 1: ///Star type
case 2: ///Constellation type
ctxt->setContextProperty("soListModel", m->returnModel(type));
break;
case 3: ///Galaxy type
case 4: ///Cluster type
case 5: ///Nebula type
ctxt->setContextProperty("soListModel", m->returnModel(type));
break;
}
ctxt->setContextProperty("soListModel", m->returnModel(type));
}
void WIView::onSoListItemClicked(int type, QString typeName, int index)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment