Archived
Changed the controls of the password management window
This commit is contained in:
@@ -15,6 +15,7 @@ public:
|
||||
CommonWindow() = default;
|
||||
~CommonWindow() = default;
|
||||
protected:
|
||||
virtual void connections()=0;
|
||||
unique_ptr<QComboBox> selectionBox;
|
||||
unique_ptr<QPushButton> actionButton;
|
||||
unique_ptr<QHBoxLayout> mainLayout;
|
||||
|
||||
@@ -103,7 +103,4 @@ void KeyManagementWindow::generation()
|
||||
gk.keyMove();
|
||||
gk.keyDump();
|
||||
}
|
||||
void KeyManagementWindow::exitApplication()
|
||||
{
|
||||
this->hide();
|
||||
}
|
||||
void KeyManagementWindow::exitApplication() { this->hide(); }
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
@@ -18,5 +18,6 @@ private:
|
||||
|
||||
unique_ptr<QLineEdit> passwordField;
|
||||
private slots:
|
||||
void exitApplication();
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user