Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow using enter to select item on main menu (closes #1685) #2229

Merged
merged 2 commits into from
Mar 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 71 additions & 47 deletions client/page_main.ui
Original file line number Diff line number Diff line change
Expand Up @@ -44,53 +44,39 @@
<property name="verticalSpacing">
<number>5</number>
</property>
<item row="2" column="0">
<widget class="QPushButton" name="bstart">
<item row="1" column="0">
<widget class="QPushButton" name="btut">
<property name="text">
<string>Start</string>
<string>Tutorial</string>
</property>
<property name="autoDefault">
<bool>true</bool>
</property>
<property name="main_pagebt" stdset="0">
<bool>true</bool>
</property>
</widget>
</item>
<item row="10" column="2">
<widget class="QLabel" name="lversion">
<item row="2" column="0">
<widget class="QPushButton" name="bstart">
<property name="text">
<string>lversion</string>
</property>
<property name="alignment">
<set>Qt::AlignBottom|Qt::AlignRight|Qt::AlignTrailing</set>
<string>Start</string>
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="QPushButton" name="bquit">
<property name="text">
<string>Quit</string>
<property name="autoDefault">
<bool>true</bool>
</property>
<property name="main_pagebt" stdset="0">
<bool>true</bool>
</property>
</widget>
</item>
<item row="10" column="1">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="7" column="0">
<widget class="QPushButton" name="boptions">
<item row="3" column="0">
<widget class="QPushButton" name="bconnect">
<property name="text">
<string>Options</string>
<string>Connect</string>
</property>
<property name="autoDefault">
<bool>true</bool>
</property>
<property name="main_pagebt" stdset="0">
<bool>true</bool>
Expand All @@ -102,6 +88,9 @@
<property name="text">
<string>Load</string>
</property>
<property name="autoDefault">
<bool>true</bool>
</property>
<property name="main_pagebt" stdset="0">
<bool>true</bool>
</property>
Expand All @@ -112,15 +101,34 @@
<property name="text">
<string>Scenario</string>
</property>
<property name="autoDefault">
<bool>true</bool>
</property>
<property name="main_pagebt" stdset="0">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QPushButton" name="bconnect">
<item row="6" column="0">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="7" column="0">
<widget class="QPushButton" name="boptions">
<property name="text">
<string>Connect</string>
<string>Options</string>
</property>
<property name="autoDefault">
<bool>true</bool>
</property>
<property name="main_pagebt" stdset="0">
<bool>true</bool>
Expand All @@ -132,16 +140,9 @@
<property name="text">
<string>Mods</string>
</property>
<property name="main_pagebt" stdset="0">
<property name="autoDefault">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="btut">
<property name="text">
<string>Tutorial</string>
</property>
<property name="main_pagebt" stdset="0">
<bool>true</bool>
</property>
Expand All @@ -160,19 +161,42 @@
</property>
</spacer>
</item>
<item row="6" column="0">
<spacer name="verticalSpacer_2">
<item row="10" column="0">
<widget class="QPushButton" name="bquit">
<property name="text">
<string>Quit</string>
</property>
<property name="autoDefault">
<bool>true</bool>
</property>
<property name="main_pagebt" stdset="0">
<bool>true</bool>
</property>
</widget>
</item>
<item row="10" column="1">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="10" column="2">
<widget class="QLabel" name="lversion">
<property name="text">
<string>lversion</string>
</property>
<property name="alignment">
<set>Qt::AlignBottom|Qt::AlignRight|Qt::AlignTrailing</set>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
Expand Down
Loading