Changed the controls of the password management window
This commit is contained in:
@@ -15,6 +15,7 @@ public:
|
|||||||
CommonWindow() = default;
|
CommonWindow() = default;
|
||||||
~CommonWindow() = default;
|
~CommonWindow() = default;
|
||||||
protected:
|
protected:
|
||||||
|
virtual void connections()=0;
|
||||||
unique_ptr<QComboBox> selectionBox;
|
unique_ptr<QComboBox> selectionBox;
|
||||||
unique_ptr<QPushButton> actionButton;
|
unique_ptr<QPushButton> actionButton;
|
||||||
unique_ptr<QHBoxLayout> mainLayout;
|
unique_ptr<QHBoxLayout> mainLayout;
|
||||||
|
|||||||
@@ -103,7 +103,4 @@ void KeyManagementWindow::generation()
|
|||||||
gk.keyMove();
|
gk.keyMove();
|
||||||
gk.keyDump();
|
gk.keyDump();
|
||||||
}
|
}
|
||||||
void KeyManagementWindow::exitApplication()
|
void KeyManagementWindow::exitApplication() { this->hide(); }
|
||||||
{
|
|
||||||
this->hide();
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -14,16 +14,24 @@ void PasswordManagementWindow::setupWindow()
|
|||||||
|
|
||||||
selectionBox=unique_ptr<QComboBox>{new QComboBox};
|
selectionBox=unique_ptr<QComboBox>{new QComboBox};
|
||||||
actionButton=unique_ptr<QPushButton>{new QPushButton{"i3"}};
|
actionButton=unique_ptr<QPushButton>{new QPushButton{"i3"}};
|
||||||
|
closeButton=unique_ptr<QPushButton>{new QPushButton{"close"}};
|
||||||
crypticText=unique_ptr<QLineEdit>{new QLineEdit};
|
crypticText=unique_ptr<QLineEdit>{new QLineEdit};
|
||||||
|
|
||||||
mainLayout=unique_ptr<QHBoxLayout>{new QHBoxLayout};
|
mainLayout=unique_ptr<QHBoxLayout>{new QHBoxLayout};
|
||||||
subLayoutOne=unique_ptr<QVBoxLayout>{new QVBoxLayout};
|
subLayoutOne=unique_ptr<QVBoxLayout>{new QVBoxLayout};
|
||||||
subLayoutTwo=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());
|
subLayoutOne.get()->addWidget(elementView.get());
|
||||||
subLayoutTwo.get()->addWidget(selectionBox.get());
|
subLayoutTwo.get()->addLayout(subLayoutGoonOne.get());
|
||||||
subLayoutTwo.get()->addWidget(actionButton.get());
|
subLayoutTwo.get()->addLayout(subLayoutGoonTwo.get());
|
||||||
subLayoutTwo.get()->addWidget(crypticText.get());
|
|
||||||
|
|
||||||
mainLayout.get()->addLayout(subLayoutOne.get());
|
mainLayout.get()->addLayout(subLayoutOne.get());
|
||||||
mainLayout.get()->addLayout(subLayoutTwo.get());
|
mainLayout.get()->addLayout(subLayoutTwo.get());
|
||||||
@@ -37,5 +45,6 @@ void PasswordManagementWindow::setupWindow()
|
|||||||
}
|
}
|
||||||
void PasswordManagementWindow::connections()
|
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;
|
unique_ptr<QLineEdit> passwordField;
|
||||||
private slots:
|
private slots:
|
||||||
|
void exitApplication();
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user