Added some skeleton control widgets

This commit is contained in:
amazing-username
2017-03-23 12:17:58 -05:00
parent 5fe6a261a0
commit 80d6d20b16
5 changed files with 100 additions and 17 deletions
+38 -1
View File
@@ -1,10 +1,47 @@
#include <QtGui>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include "messagingcontrols.h"
messagingcontrols::messagingcontrols()
messagingcontrols::messagingcontrols(QWidget* parent) : QDialog(parent)
{
QVBoxLayout* everything = new QVBoxLayout;
lblOfEncryptedBox = new QLabel(tr("Message: "));
encryptedBox = new QLineEdit;
encryptionButon = new QPushButton;
//Adding lbl and line edit
QHBoxLayout* lblAndLineEdit = new QHBoxLayout;
lblAndLineEdit->addWidget(lblOfEncryptedBox);
lblAndLineEdit->addWidget(encryptedBox);
//Adding button
QHBoxLayout* button = new QHBoxLayout;
button->addWidget(encryptionButon);
//Add everything
everything->addLayout(lblAndLineEdit);
everything->addLayout(button);
setLayout(everything);
setWindowTitle("Encryption Messaging");
setFixedHeight(300);
setFixedWidth(400);
/**
* Initialize controls
*/
}
messagingcontrols::~messagingcontrols()
{
/**
* Delete pointer types
*/
delete lblOfEncryptedBox;
delete encryptionButon;
delete encryptedBox;
}