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
efae7a92
Commit
efae7a92
authored
Feb 11, 2013
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Splash image logo added
parent
ce1e470a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
logo.png
gui/img/logo.png
+0
-0
splash.html
gui/splash.html
+1
-0
main.cpp
src/main.cpp
+4
-1
No files found.
gui/img/logo.png
0 → 100644
View file @
efae7a92
25.9 KB
gui/splash.html
View file @
efae7a92
...
...
@@ -9,6 +9,7 @@
</head>
<body>
<div
id=
"loading"
>
<img
src=
"img/logo.png"
></img>
<h3>
Loading...
</h3>
</div>
</body>
...
...
src/main.cpp
View file @
efae7a92
...
...
@@ -40,6 +40,7 @@
#include <QApplication>
#include <QFile>
#include <QUrl>
#include <QDir>
int
main
(
int
argc
,
char
*
argv
[])
...
...
@@ -50,6 +51,8 @@ int main(int argc, char *argv[])
QFile
loadinghtml
(
"gui/splash.html"
);
loadinghtml
.
open
(
QIODevice
::
ReadOnly
);
QString
splashFile
=
QString
::
fromUtf8
(
loadinghtml
.
readAll
().
constData
());
QUrl
baseUrl
=
QUrl
::
fromLocalFile
(
QDir
::
current
().
absoluteFilePath
(
"gui/dummy.html"
));
splashwin
.
setWindowFlags
(
Qt
::
FramelessWindowHint
);
QPalette
palette
=
splashwin
.
palette
();
...
...
@@ -59,7 +62,7 @@ int main(int argc, char *argv[])
splashwin
.
setAttribute
(
Qt
::
WA_OpaquePaintEvent
,
false
);
//splashwin.setGeometry(0, 0, QApplication::desktop()->size().width(), QApplication::desktop()->size().height());
splashwin
.
setHtml
(
QString
::
fromUtf8
(
loadinghtml
.
readAll
().
constData
()),
QUrl
()
);
splashwin
.
setHtml
(
splashFile
,
baseUrl
);
splashwin
.
resize
(
300
,
200
);
splashwin
.
show
();
...
...
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