|
@@ -9,6 +9,9 @@ Widget::Widget(QWidget *parent) : QWidget(parent), ui(new Ui::Widget)
|
9
|
9
|
QShortcut* quit = new QShortcut(QKeySequence("Ctrl+Q"), this);
|
10
|
10
|
connect(quit, SIGNAL(activated()), qApp, SLOT(quit()));
|
11
|
11
|
|
|
12
|
+ QShortcut* save = new QShortcut(QKeySequence("Ctrl+S"), this);
|
|
13
|
+ connect(save, SIGNAL(activated()), this, SLOT(saveCurrent()));
|
|
14
|
+
|
12
|
15
|
setFixedSize(size());
|
13
|
16
|
connect(ui->btnAdd, SIGNAL(clicked()), this, SLOT(addUser()));
|
14
|
17
|
connect(ui->btnRemove, SIGNAL(clicked()), this, SLOT(removeCurrent()));
|