aboutsummaryrefslogtreecommitdiffstats
path: root/helppage.cpp
blob: 144b04414b33500b90cba555a0c08500c325e25f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "helppage.h"

HelpPage::HelpPage(const QString path, QWidget *parent) :
    QWidget(parent)
{

    QTextBrowser* browser   = new QTextBrowser();
    QVBoxLayout* mainLayout = new QVBoxLayout();
    mainLayout->setSpacing(0);
    mainLayout->addWidget(browser);
    mainLayout->setContentsMargins(0,0,0,0);
    setLayout(mainLayout);
    //setAttribute(Qt::WA_DeleteOnClose);
    browser->setSource(path);
    browser->setFocus();

}