mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-04-24 15:37:23 +00:00
added screenshot
edited buttons
This commit is contained in:
parent
e969be6b89
commit
8c9904ac4b
Before Width: | Height: | Size: 147 KiB After Width: | Height: | Size: 147 KiB |
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 133 KiB |
BIN
screenshots/gui_profile_general.png
Normal file
BIN
screenshots/gui_profile_general.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 105 KiB |
@ -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()));
|
||||
}
|
||||
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user