1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-23 11:47:24 +01:00

Stylesheet support should work now

This commit is contained in:
Roman Bovsunivskiy 2010-02-27 01:11:00 +00:00
parent d496e7ecb4
commit 385f598ee2
2 changed files with 2 additions and 1 deletions

View File

@ -331,5 +331,6 @@
<file>Tutorial/getting_started/images/17.png</file>
<file>Tutorial/getting_started/images/18.png</file>
<file>Tutorial/getting_started/images/new_button.png</file>
<file>Tutorial/getting_started/stylesheets/style.css</file>
</qresource>
</RCC>

View File

@ -33,6 +33,7 @@ TutorialDialog::TutorialDialog(QString tutorial, QWidget *parent) :
QDialog(parent),
ui(new Ui::TutorialDialog_q)
{
ui->setupUi(this);
this->tutorial = tutorial;
QString stylefile = QString(":/Tutorial/") + this->tutorial + "/stylesheets/style.css";
QFile f(stylefile);
@ -42,7 +43,6 @@ TutorialDialog::TutorialDialog(QString tutorial, QWidget *parent) :
QString stylesheet = f.readAll();
ui->content->setStyleSheet(stylesheet);
}
ui->setupUi(this);
currentPage = 0;
this->setWindowFlags(this->windowFlags() | Qt::WindowStaysOnTopHint);
//this->setWindowModality(Qt::ApplicationModal);