Commit 7f968c3a authored by Simon Ratay's avatar Simon Ratay
Browse files

Indentation

parent 6499c5ed
......@@ -38,66 +38,66 @@ Kirigami.Page {
Keys.onPressed: {
switch(event.key) {
case Qt.Key_Delete:
case Qt.Key_Backspace:
inputManager.backspace(); break;
case Qt.Key_0:
inputManager.append("0"); break;
case Qt.Key_1:
inputManager.append("1"); break;
case Qt.Key_2:
inputManager.append("2"); break;
case Qt.Key_3:
inputManager.append("3"); break;
case Qt.Key_4:
inputManager.append("4"); break;
case Qt.Key_5:
inputManager.append("5"); break;
case Qt.Key_6:
inputManager.append("6"); break;
case Qt.Key_7:
inputManager.append("7"); break;
case Qt.Key_8:
inputManager.append("8"); break;
case Qt.Key_9:
inputManager.append("9"); break;
case Qt.Key_Plus:
inputManager.append("+"); break;
case Qt.Key_Minus:
inputManager.append("-"); break;
case Qt.Key_Asterisk:
inputManager.append("×"); break;
case Qt.Key_Slash:
inputManager.append("÷"); break;
case Qt.Key_AsciiCircum:
inputManager.append("^"); break;
case Qt.Key_Period:
inputManager.append("."); break;
case Qt.Key_ParenLeft:
inputManager.append("("); break;
case Qt.Key_ParenRight:
inputManager.append(")"); break;
case Qt.Key_Equal:
case Qt.Key_Return:
case Qt.Key_Enter:
inputManager.equal(); break;
default:
switch(event.text) {
case "":
case "×":
case "*":
inputManager.append("×"); break;
case "":
case "":
case "÷":
case "/":
inputManager.append("÷"); break;
case "":
case "-":
inputManager.append("-"); break;
case "+":
inputManager.append("+"); break;
}
case Qt.Key_Delete:
case Qt.Key_Backspace:
inputManager.backspace(); break;
case Qt.Key_0:
inputManager.append("0"); break;
case Qt.Key_1:
inputManager.append("1"); break;
case Qt.Key_2:
inputManager.append("2"); break;
case Qt.Key_3:
inputManager.append("3"); break;
case Qt.Key_4:
inputManager.append("4"); break;
case Qt.Key_5:
inputManager.append("5"); break;
case Qt.Key_6:
inputManager.append("6"); break;
case Qt.Key_7:
inputManager.append("7"); break;
case Qt.Key_8:
inputManager.append("8"); break;
case Qt.Key_9:
inputManager.append("9"); break;
case Qt.Key_Plus:
inputManager.append("+"); break;
case Qt.Key_Minus:
inputManager.append("-"); break;
case Qt.Key_Asterisk:
inputManager.append("×"); break;
case Qt.Key_Slash:
inputManager.append("÷"); break;
case Qt.Key_AsciiCircum:
inputManager.append("^"); break;
case Qt.Key_Period:
inputManager.append("."); break;
case Qt.Key_ParenLeft:
inputManager.append("("); break;
case Qt.Key_ParenRight:
inputManager.append(")"); break;
case Qt.Key_Equal:
case Qt.Key_Return:
case Qt.Key_Enter:
inputManager.equal(); break;
default:
switch(event.text) {
case "":
case "×":
case "*":
inputManager.append("×"); break;
case "":
case "":
case "÷":
case "/":
inputManager.append("÷"); break;
case "":
case "-":
inputManager.append("-"); break;
case "+":
inputManager.append("+"); break;
}
}
event.accepted = true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment