diff --git a/screenshots/confiuration_01.png b/screenshots/configuration_01.png similarity index 100% rename from screenshots/confiuration_01.png rename to screenshots/configuration_01.png diff --git a/screenshots/confiuration_02.png b/screenshots/configuration_02.png similarity index 100% rename from screenshots/confiuration_02.png rename to screenshots/configuration_02.png diff --git a/screenshots/gui_profile_general.png b/screenshots/gui_profile_general.png new file mode 100644 index 0000000..5ee5fce Binary files /dev/null and b/screenshots/gui_profile_general.png differ diff --git a/sources/gui/src/passwdwidget.cpp b/sources/gui/src/passwdwidget.cpp index 43f431d..3fe8511 100644 --- a/sources/gui/src/passwdwidget.cpp +++ b/sources/gui/src/passwdwidget.cpp @@ -27,16 +27,12 @@ PasswdWidget::PasswdWidget(MainWindow *wid) ui(new Ui::PasswdWidget) { ui->setupUi(this); - cancelButton = ui->buttonBox->button(QDialogButtonBox::Cancel); - okButton = ui->buttonBox->button(QDialogButtonBox::Ok); createActions(); } PasswdWidget::~PasswdWidget() { - delete cancelButton; - delete okButton; delete ui; } @@ -52,8 +48,8 @@ void PasswdWidget::keyPressEvent(QKeyEvent *pressedKey) void PasswdWidget::createActions() { connect(ui->lineEdit, SIGNAL(returnPressed()), this, SLOT(passwdApply())); - connect(cancelButton, SIGNAL(clicked(bool)), this, SLOT(cancel())); - connect(okButton, SIGNAL(clicked(bool)), this, SLOT(passwdApply())); + connect(ui->buttonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked(bool)), this, SLOT(cancel())); + connect(ui->buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked(bool)), this, SLOT(passwdApply())); } diff --git a/sources/gui/src/passwdwidget.h b/sources/gui/src/passwdwidget.h index fa9ef44..35f46aa 100644 --- a/sources/gui/src/passwdwidget.h +++ b/sources/gui/src/passwdwidget.h @@ -47,8 +47,6 @@ private slots: private: MainWindow *parent; Ui::PasswdWidget *ui; - QPushButton *cancelButton; - QPushButton *okButton; // ESC pressed event void keyPressEvent(QKeyEvent *pressedKey); void createActions();