Skip to content
Snippets Groups Projects
Verified Commit 0b7d8803 authored by Tobias Triffterer's avatar Tobias Triffterer :house_with_garden:
Browse files

Fix Tab Sequence in LoginGui

The tab key now cycles through the widgets in the proper sequence.

For ease of use, the QTextEdit for the Start PIN takes the focus on
construction although being the second widget in the order.
parent 5f34d3cf
No related branches found
No related tags found
No related merge requests found
Pipeline #3275 passed with stage
in 55 seconds
......@@ -206,22 +206,22 @@ Diese Messung bestätigt nur die Kalibration des Messaufbaus und benötigt aufgr
<context>
<name>Fp311Online::LoginGui</name>
<message>
<location filename="../src/logingui.cpp" line="79"/>
<location filename="../src/logingui.cpp" line="81"/>
<source>Connecting to server...</source>
<translation>Verbinde mit dem Server...</translation>
</message>
<message>
<location filename="../src/logingui.cpp" line="89"/>
<location filename="../src/logingui.cpp" line="91"/>
<source>Sending Start PIN to server...</source>
<translation>Sende Start-PIN an den Server...</translation>
</message>
<message>
<location filename="../src/logingui.cpp" line="105"/>
<location filename="../src/logingui.cpp" line="107"/>
<source>&lt;html&gt;&lt;body&gt;&lt;p&gt;Login to server successful!&lt;/p&gt;&lt;h3&gt;Welcome, </source>
<translation>&lt;html&gt;&lt;body&gt;&lt;p&gt;Login auf dem Server erfolgreich!&lt;/p&gt;&lt;h3&gt;Willkommen, </translation>
</message>
<message>
<location filename="../src/logingui.cpp" line="132"/>
<location filename="../src/logingui.cpp" line="134"/>
<source>An error occured: </source>
<translation>Ein Fehler ist aufgetreten:</translation>
</message>
......
......@@ -54,6 +54,8 @@ LoginGui::LoginGui()
const QRect buttonTextSize = _ui.cmdShowLegalStuff->fontMetrics().boundingRect(_ui.cmdShowLegalStuff->text());
_ui.cmdShowLegalStuff->setMaximumSize(buttonTextSize.width() + 50, _ui.cmdLogin->height() + 5);
connect(_ui.cmdShowLegalStuff, &QPushButton::clicked, this, &LoginGui::showLegalStuff);
_ui.txtStartPin->setFocus();
}
void LoginGui::doLogin()
......
......@@ -189,9 +189,10 @@ This software is built using the &lt;a href=&quot;https://qt.io&quot;&gt;Qt Fram
<widget class="QStatusBar" name="statusbar"/>
</widget>
<tabstops>
<tabstop>txtUrl</tabstop>
<tabstop>txtStartPin</tabstop>
<tabstop>cmdLogin</tabstop>
<tabstop>txtUrl</tabstop>
<tabstop>cmdShowLegalStuff</tabstop>
</tabstops>
<resources>
<include location="../res/resources.qrc"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment