Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
skylivex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
astronomy
skylivex
Commits
64ecb4dc
Commit
64ecb4dc
authored
Feb 16, 2013
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make splash background transparent
parent
8209052e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
mainwin.cpp
src/mainwin.cpp
+5
-1
No files found.
src/mainwin.cpp
View file @
64ecb4dc
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#include "mainwin.h"
#include "mainwin.h"
#include <QFile>
#include <QFile>
#include <QDir>
#include <QDir>
#include <QPalette>
MainWin
::
MainWin
(
QFile
&
htmlfile
)
MainWin
::
MainWin
(
QFile
&
htmlfile
)
:
QWebView
(
0
)
:
QWebView
(
0
)
...
@@ -43,8 +44,11 @@ MainWin::MainWin(QFile &htmlfile)
...
@@ -43,8 +44,11 @@ MainWin::MainWin(QFile &htmlfile)
htmlFileName
=
QString
::
fromUtf8
(
htmlfile
.
readAll
().
constData
());
htmlFileName
=
QString
::
fromUtf8
(
htmlfile
.
readAll
().
constData
());
QUrl
baseUrl
=
QUrl
::
fromLocalFile
(
QDir
::
current
().
absoluteFilePath
(
"gui/dummy.html"
));
QUrl
baseUrl
=
QUrl
::
fromLocalFile
(
QDir
::
current
().
absoluteFilePath
(
"gui/dummy.html"
));
QPalette
pal
=
palette
();
pal
.
setBrush
(
QPalette
::
Base
,
Qt
::
transparent
);
setWindowFlags
(
Qt
::
FramelessWindowHint
);
setWindowFlags
(
Qt
::
FramelessWindowHint
);
page
()
->
setPalette
(
pal
ette
()
);
page
()
->
setPalette
(
pal
);
setAttribute
(
Qt
::
WA_TranslucentBackground
,
true
);
setAttribute
(
Qt
::
WA_TranslucentBackground
,
true
);
setAttribute
(
Qt
::
WA_OpaquePaintEvent
,
false
);
setAttribute
(
Qt
::
WA_OpaquePaintEvent
,
false
);
...
...
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