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
28
Issues
28
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
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
f8d66182
Commit
f8d66182
authored
Aug 04, 2012
by
Samikshan Bairagya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made the QML UI for WI translucent.
parent
77353288
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
4 deletions
+29
-4
kstars/tools/whatsinteresting/qml/wiview.qml
kstars/tools/whatsinteresting/qml/wiview.qml
+26
-3
kstars/tools/whatsinteresting/wiview.cpp
kstars/tools/whatsinteresting/wiview.cpp
+3
-0
kstars/tools/whatsinteresting/wiview.h
kstars/tools/whatsinteresting/wiview.h
+0
-1
No files found.
kstars/tools/whatsinteresting/qml/wiview.qml
View file @
f8d66182
...
...
@@ -5,9 +5,17 @@ Rectangle {
objectName
:
"
containerObj
"
width
:
370
height
:
575
color
:
"
#000009
"
color
:
"
transparent
"
// color: "#000009"
anchors.fill
:
parent
Rectangle
{
id
:
translucentBackground
color
:
"
#020518
"
anchors.fill
:
parent
opacity
:
0.890
}
Text
{
id
:
title
x
:
9
...
...
@@ -61,6 +69,7 @@ Rectangle {
color
:
"
#00060b
"
radius
:
12
opacity
:
0.500
border.width
:
4
border.color
:
"
black
"
}
...
...
@@ -348,6 +357,13 @@ Rectangle {
color
:
"
transparent
"
width
:
parent
.
width
Rectangle
{
id
:
soListViewBackground
anchors.fill
:
soListViewContainer
color
:
"
#00060b
"
opacity
:
0.5
}
Rectangle
{
id
:
soListViewContainer
...
...
@@ -355,7 +371,7 @@ Rectangle {
y
:
31
width
:
parent
.
width
-
30
height
:
351
color
:
"
#00060b
"
color
:
"
transparent
"
radius
:
12
border.width
:
4
border.color
:
"
#000000
"
...
...
@@ -404,13 +420,20 @@ Rectangle {
border.width
:
4
border.color
:
"
#000000
"
Rectangle
{
id
:
detailsViewBackground
anchors.fill
:
detailsView
color
:
"
#00060b
"
opacity
:
0.5
}
Rectangle
{
id
:
detailsView
objectName
:
"
detailsViewObj
"
x
:
parent
.
x
+
15
height
:
parent
.
height
-
20
width
:
parent
.
width
-
30
color
:
"
#00060b
"
color
:
"
transparent
"
radius
:
12
border.width
:
4
border.color
:
"
#000000
"
...
...
kstars/tools/whatsinteresting/wiview.cpp
View file @
f8d66182
...
...
@@ -28,6 +28,9 @@ WIView::WIView ( QObject *parent, ObsConditions *obs) : QObject(parent)
QDeclarativeView
*
baseView
=
new
QDeclarativeView
();
baseView
->
setAttribute
(
Qt
::
WA_TranslucentBackground
);
baseView
->
setStyleSheet
(
"background: transparent;"
);
ctxt
=
baseView
->
rootContext
();
baseView
->
setSource
(
KStandardDirs
::
locate
(
"appdata"
,
"tools/whatsinteresting/qml/wiview.qml"
));
...
...
kstars/tools/whatsinteresting/wiview.h
View file @
f8d66182
...
...
@@ -17,7 +17,6 @@
#include "QtDeclarative/QDeclarativeView"
#include "QtDeclarative/QDeclarativeContext"
#include "QtDeclarative/QDeclarativeItem"
#include "QModelIndex"
#include "skyobject.h"
#include "modelmanager.h"
...
...
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