1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
| /* @haytam */
#include "fenprincip.h"
#include <QFormLayout>
#include <QGroupBox>
FenPrincip::FenPrincip()
{
// à bloquer
site1 = new QLineEdit;
bloquer = new QPushButton("Valider le bloquage");
QFormLayout *bloquerLayout = new QFormLayout;
bloquerLayout->addRow("Entrez le site à bloquer :", site1);
QGroupBox *bloquerGroup = new QGroupBox("Bloquer");
bloquerGroup->setLayout(bloquerLayout);
//à débloquer
site2 = new QLineEdit;
debloquer = new QPushButton("Valider le débloquage");
QFormLayout *debloquerLayout = new QFormLayout;
debloquerLayout->addRow("Entrez le site à Débloquer :", site2);
QGroupBox *debloquerGroup = new QGroupBox("Débloquer");
debloquerGroup->setLayout(debloquerLayout);
//layout principal
QVBoxLayout *layoutPrincipal = new QVBoxLayout();
layoutPrincipal->addWidget(bloquerGroup);
layoutPrincipal->addWidget(debloquerGroup);
setLayout(layoutPrincipal);
setWindowTitle("hWBlocker");
resize(400, 450);
} |
Partager