Fixed issue where a new window to save password with a certain name would crash. Next add implementation

This commit is contained in:
amazing-username
2018-02-26 23:00:26 -06:00
parent cec1e0bbb6
commit 05b559bacf
6 changed files with 117 additions and 17 deletions
+38
View File
@@ -0,0 +1,38 @@
#include"SaveFile.h"
SaveFile::SaveFile(QWidget* parent) : QDialog(parent)
{
setupWindow();
}
void SaveFile::setupWindow()
{
windowWidth=250;
windowHeight=250;
filename = unique_ptr<QLineEdit>{new QLineEdit};
saveIt = unique_ptr<QPushButton>{new QPushButton};
subLayoutOne = unique_ptr<QVBoxLayout>{new QVBoxLayout};
subLayoutTwo = unique_ptr<QVBoxLayout>{new QVBoxLayout};
subLayoutOne.get()->addWidget(filename.get());
subLayoutOne.get()->addWidget(saveIt.get());
subLayoutTwo.get()->addLayout(subLayoutOne.get());
setLayout(subLayoutTwo.get());
setFixedWidth(windowWidth);
setFixedHeight(windowHeight);
connections();
}
void SaveFile::connections()
{
QObject::connect(saveIt.get(), SIGNAL(clicked()), this, SLOT(saveFileAs()));
}
void SaveFile::saveFileAs()
{
}