Browse Source

add Ctrl S in usermgr

master
Robin Thoni 10 years ago
parent
commit
2e76890fe1
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      usermgr/widget.cpp

+ 3
- 0
usermgr/widget.cpp View File

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()));

Loading…
Cancel
Save