|
|
|
|
9
|
QShortcut* quit = new QShortcut(QKeySequence("Ctrl+Q"), this);
|
9
|
QShortcut* quit = new QShortcut(QKeySequence("Ctrl+Q"), this);
|
10
|
connect(quit, SIGNAL(activated()), qApp, SLOT(quit()));
|
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
|
setFixedSize(size());
|
15
|
setFixedSize(size());
|
13
|
connect(ui->btnAdd, SIGNAL(clicked()), this, SLOT(addUser()));
|
16
|
connect(ui->btnAdd, SIGNAL(clicked()), this, SLOT(addUser()));
|
14
|
connect(ui->btnRemove, SIGNAL(clicked()), this, SLOT(removeCurrent()));
|
17
|
connect(ui->btnRemove, SIGNAL(clicked()), this, SLOT(removeCurrent()));
|