Changed the controls of the password management window

This commit is contained in:
amazing-username
2017-07-30 14:29:06 -05:00
parent 2074f26c4e
commit 4b7c0ea173
4 changed files with 16 additions and 8 deletions
+13 -4
View File
@@ -14,16 +14,24 @@ void PasswordManagementWindow::setupWindow()
selectionBox=unique_ptr<QComboBox>{new QComboBox};
actionButton=unique_ptr<QPushButton>{new QPushButton{"i3"}};
closeButton=unique_ptr<QPushButton>{new QPushButton{"close"}};
crypticText=unique_ptr<QLineEdit>{new QLineEdit};
mainLayout=unique_ptr<QHBoxLayout>{new QHBoxLayout};
subLayoutOne=unique_ptr<QVBoxLayout>{new QVBoxLayout};
subLayoutTwo=unique_ptr<QVBoxLayout>{new QVBoxLayout};
subLayoutGoonOne=unique_ptr<QVBoxLayout>{new QVBoxLayout};
subLayoutGoonTwo=unique_ptr<QVBoxLayout>{new QVBoxLayout};
subLayoutGoonOne.get()->addWidget(selectionBox.get());
subLayoutGoonOne.get()->addWidget(actionButton.get());
subLayoutGoonTwo.get()->addWidget(crypticText.get());
subLayoutGoonTwo.get()->addWidget(closeButton.get());
subLayoutOne.get()->addWidget(elementView.get());
subLayoutTwo.get()->addWidget(selectionBox.get());
subLayoutTwo.get()->addWidget(actionButton.get());
subLayoutTwo.get()->addWidget(crypticText.get());
subLayoutTwo.get()->addLayout(subLayoutGoonOne.get());
subLayoutTwo.get()->addLayout(subLayoutGoonTwo.get());
mainLayout.get()->addLayout(subLayoutOne.get());
mainLayout.get()->addLayout(subLayoutTwo.get());
@@ -37,5 +45,6 @@ void PasswordManagementWindow::setupWindow()
}
void PasswordManagementWindow::connections()
{
QObject::connect(closeButton.get(), SIGNAL(clicked()), this, SLOT(exitApplication()));
}
void PasswordManagementWindow::exitApplication() { this->hide(); }