changed the way config dialog gets key input from user so it works in qt5

Tue, 21 May 2013 14:21:26 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Tue, 21 May 2013 14:21:26 +0300
changeset 233
524cb0833027
parent 232
4e44c92e21dd
child 234
79b120b0aa51

changed the way config dialog gets key input from user so it works in qt5

src/configDialog.cpp file | annotate | diff | comparison | revisions
--- a/src/configDialog.cpp	Tue May 21 14:07:33 2013 +0300
+++ b/src/configDialog.cpp	Tue May 21 14:21:26 2013 +0300
@@ -774,21 +774,6 @@
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 // =============================================================================
 void KeySequenceDialog::keyPressEvent (QKeyEvent* ev) {
-	seq = ev->key ();
-	
-	switch (seq) {
-	case Qt::Key_Shift:
-	case Qt::Key_Control:
-	case Qt::Key_Alt:
-	case Qt::Key_Meta:
-		seq = 0;
-		break;
-	
-	default:
-		break;
-	}
-	
-	seq = (seq | ev->modifiers ());
-	
+	seq = ev->key () + ev->modifiers ();
 	updateOutput ();
 }
\ No newline at end of file

mercurial