Sfoglia il codice sorgente

add Ctrl S in usermgr

master
Robin Thoni 10 anni fa
parent
commit
2e76890fe1
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3
    0
      usermgr/widget.cpp

+ 3
- 0
usermgr/widget.cpp Vedi File

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

Loading…
Annulla
Salva