Subversion Repositories svn1

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
190 - 1
#include "qmbasicpage.h"
2
#include <QPushButton>
3
 
4
QmBasicPage::QmBasicPage(QWidget *parent) :QWidget(parent)
5
{
6
    resize ( 600,400);
7
 
8
    verticalLayout = new QVBoxLayout(this);
9
    verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
10
    verticalLayout->setContentsMargins(0, 0, 0, 0);
11
 
12
    centralWidget = new QWidget (this);
13
    verticalLayout->addWidget(centralWidget);
14
 
15
    buttonBox = new QDialogButtonBox(this);
16
    buttonBox->setOrientation(Qt::Horizontal);
17
    buttonBox->addButton( new QPushButton("Recalc"),QDialogButtonBox::AcceptRole);
18
    QObject::connect(buttonBox, SIGNAL(accepted()), this, SLOT(calculate()));
19
 
20
    verticalLayout->addWidget(buttonBox);
21
 
22
}