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
fdb2bfb9
Commit
fdb2bfb9
authored
12 years ago
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move splash page to a separate class
parent
efae7a92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
splashpage.cpp
src/splashpage.cpp
+24
-0
No files found.
src/splashpage.cpp
0 → 100644
View file @
fdb2bfb9
#include "skylivex.h"
#include <QFile>
#include <QDir>
SplashPage
::
SplashPage
(
QFile
&
splash_html
)
:
QWebView
(
0
)
{
splash_html
.
open
(
QIODevice
::
ReadOnly
);
splashFile
=
QString
::
fromUtf8
(
splash_html
.
readAll
().
constData
());
QUrl
baseUrl
=
QUrl
::
fromLocalFile
(
QDir
::
current
().
absoluteFilePath
(
"gui/dummy.html"
));
setWindowFlags
(
Qt
::
FramelessWindowHint
);
page
()
->
setPalette
(
palette
());
setAttribute
(
Qt
::
WA_TranslucentBackground
,
true
);
setAttribute
(
Qt
::
WA_OpaquePaintEvent
,
false
);
setHtml
(
splashFile
,
baseUrl
);
resize
(
250
,
200
);
}
SplashPage
::~
SplashPage
()
{
}
This diff is collapsed.
Click to expand it.
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