forked from ciphrex/mSIGNA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentropydialog.cpp
36 lines (29 loc) · 953 Bytes
/
entropydialog.cpp
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
///////////////////////////////////////////////////////////////////////////////
//
// mSIGNA
//
// entropydialog.cpp
//
// Copyright (c) 2014 Eric Lombrozo
//
// All Rights Reserved.
#include "entropydialog.h"
#include <QDialogButtonBox>
#include <QHBoxLayout>
#include <QLineEdit>
#include <QLabel>
EntropyDialog::EntropyDialog(QWidget* parent)
: QDialog(parent)
{
// Buttons
QDialogButtonBox* buttonBox = new QDialogButtonBox(QDialogButtonBox::Cancel);
//connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
// Prompt
QLabel* promptLabel = new QLabel(tr("Getting entropy from system. This might take a while, please wait..."));
QHBoxLayout* mainLayout = new QHBoxLayout();
mainLayout->setSizeConstraint(QLayout::SetNoConstraint);
mainLayout->addWidget(promptLabel);
mainLayout->addWidget(buttonBox);
setLayout(mainLayout);
}