This repository has been archived on 2026-07-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
PasswordEncryption/messagingcontrols.cpp
T
2017-03-23 12:17:58 -05:00

48 lines
987 B
C++

#include <QtGui>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include "messagingcontrols.h"
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;
}