Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
KStars
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
29
Issues
29
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Education
KStars
Commits
d07b56f9
Commit
d07b56f9
authored
Aug 18, 2012
by
Samikshan Bairagya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings related to anchoring items inside column in QML interface for WI.
parent
7752d95d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
28 deletions
+20
-28
kstars/tools/whatsinteresting/qml/wiview.qml
kstars/tools/whatsinteresting/qml/wiview.qml
+19
-15
kstars/tools/whatsinteresting/wiview.cpp
kstars/tools/whatsinteresting/wiview.cpp
+1
-13
No files found.
kstars/tools/whatsinteresting/qml/wiview.qml
View file @
d07b56f9
...
...
@@ -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
}
}
}
}
...
...
kstars/tools/whatsinteresting/wiview.cpp
View file @
d07b56f9
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment