Move splash page to a separate class

parent efae7a92
#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()
{
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment