diff options
Diffstat (limited to 'launcher/ui/pages/global')
| -rw-r--r-- | launcher/ui/pages/global/AccountListPage.cpp | 2 | ||||
| -rw-r--r-- | launcher/ui/pages/global/ExternalToolsPage.ui | 8 | ||||
| -rw-r--r-- | launcher/ui/pages/global/JavaPage.cpp | 2 | ||||
| -rw-r--r-- | launcher/ui/pages/global/JavaPage.ui | 150 | ||||
| -rw-r--r-- | launcher/ui/pages/global/LauncherPage.ui | 8 | ||||
| -rw-r--r-- | launcher/ui/pages/global/ProxyPage.cpp | 2 | 
6 files changed, 84 insertions, 88 deletions
| diff --git a/launcher/ui/pages/global/AccountListPage.cpp b/launcher/ui/pages/global/AccountListPage.cpp index 1d5ecb8d..5c6fb092 100644 --- a/launcher/ui/pages/global/AccountListPage.cpp +++ b/launcher/ui/pages/global/AccountListPage.cpp @@ -83,7 +83,7 @@ AccountListPage::AccountListPage(QWidget* parent) : QMainWindow(parent), ui(new      QItemSelectionModel* selectionModel = ui->listView->selectionModel();      connect(selectionModel, &QItemSelectionModel::selectionChanged, -            [this](const QItemSelection& sel, const QItemSelection& dsel) { updateButtonStates(); }); +            [this]([[maybe_unused]] const QItemSelection& sel, [[maybe_unused]] const QItemSelection& dsel) { updateButtonStates(); });      connect(ui->listView, &VersionListView::customContextMenuRequested, this, &AccountListPage::ShowContextMenu);      connect(m_accounts.get(), &AccountList::listChanged, this, &AccountListPage::listChanged); diff --git a/launcher/ui/pages/global/ExternalToolsPage.ui b/launcher/ui/pages/global/ExternalToolsPage.ui index 3643094d..47c77842 100644 --- a/launcher/ui/pages/global/ExternalToolsPage.ui +++ b/launcher/ui/pages/global/ExternalToolsPage.ui @@ -47,7 +47,7 @@              <item>               <widget class="QPushButton" name="jprofilerPathBtn">                <property name="text"> -               <string notr="true">...</string> +               <string>Browse</string>                </property>               </widget>              </item> @@ -84,7 +84,7 @@              <item>               <widget class="QPushButton" name="jvisualvmPathBtn">                <property name="text"> -               <string notr="true">...</string> +               <string>Browse</string>                </property>               </widget>              </item> @@ -121,7 +121,7 @@              <item>               <widget class="QPushButton" name="mceditPathBtn">                <property name="text"> -               <string notr="true">...</string> +               <string>Browse</string>                </property>               </widget>              </item> @@ -166,7 +166,7 @@            <item row="0" column="2">             <widget class="QToolButton" name="jsonEditorBrowseBtn">              <property name="text"> -             <string notr="true">...</string> +             <string>Browse</string>              </property>             </widget>            </item> diff --git a/launcher/ui/pages/global/JavaPage.cpp b/launcher/ui/pages/global/JavaPage.cpp index a9ede8ed..45d8f018 100644 --- a/launcher/ui/pages/global/JavaPage.cpp +++ b/launcher/ui/pages/global/JavaPage.cpp @@ -166,7 +166,7 @@ void JavaPage::on_javaTestBtn_clicked()      checker->run();  } -void JavaPage::on_maxMemSpinBox_valueChanged(int i) +void JavaPage::on_maxMemSpinBox_valueChanged([[maybe_unused]] int i)  {      updateThresholds();  } diff --git a/launcher/ui/pages/global/JavaPage.ui b/launcher/ui/pages/global/JavaPage.ui index 561cf79b..5a547637 100644 --- a/launcher/ui/pages/global/JavaPage.ui +++ b/launcher/ui/pages/global/JavaPage.ui @@ -160,37 +160,73 @@            <string>Java Runtime</string>           </property>           <layout class="QGridLayout" name="gridLayout_3"> -          <item row="3" column="1"> -           <widget class="QPushButton" name="javaDetectBtn"> +          <item row="7" column="0" colspan="3"> +           <widget class="QPlainTextEdit" name="jvmArgsTextBox"> +            <property name="enabled"> +             <bool>true</bool> +            </property>              <property name="sizePolicy"> -             <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> +             <sizepolicy hsizetype="Expanding" vsizetype="Fixed">                <horstretch>0</horstretch>                <verstretch>0</verstretch>               </sizepolicy>              </property> -            <property name="text"> -             <string>&Auto-detect...</string> +            <property name="maximumSize"> +             <size> +              <width>16777215</width> +              <height>100</height> +             </size>              </property>             </widget>            </item> -          <item row="2" column="0"> -           <widget class="QLabel" name="labelJVMArgs"> +          <item row="4" column="0"> +           <widget class="QCheckBox" name="skipCompatibilityCheckbox">              <property name="sizePolicy"> -             <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> +             <sizepolicy hsizetype="Preferred" vsizetype="Fixed">                <horstretch>0</horstretch>                <verstretch>0</verstretch>               </sizepolicy>              </property> -            <property name="text"> -             <string>JVM arguments:</string> +            <property name="toolTip"> +             <string>If enabled, the launcher will not check if an instance is compatible with the selected Java version.</string>              </property> -            <property name="alignment"> -             <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> +            <property name="text"> +             <string>&Skip Java compatibility checks</string>              </property>             </widget>            </item> -          <item row="0" column="0"> -           <widget class="QLabel" name="labelJavaPath"> +          <item row="2" column="0" colspan="3"> +           <layout class="QHBoxLayout" name="horizontalLayout_2"> +            <item> +             <widget class="QPushButton" name="javaDetectBtn"> +              <property name="sizePolicy"> +               <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> +                <horstretch>0</horstretch> +                <verstretch>0</verstretch> +               </sizepolicy> +              </property> +              <property name="text"> +               <string>&Auto-detect...</string> +              </property> +             </widget> +            </item> +            <item> +             <widget class="QPushButton" name="javaTestBtn"> +              <property name="sizePolicy"> +               <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> +                <horstretch>0</horstretch> +                <verstretch>0</verstretch> +               </sizepolicy> +              </property> +              <property name="text"> +               <string>&Test</string> +              </property> +             </widget> +            </item> +           </layout> +          </item> +          <item row="6" column="0"> +           <widget class="QLabel" name="labelJVMArgs">              <property name="sizePolicy">               <sizepolicy hsizetype="Fixed" vsizetype="Preferred">                <horstretch>0</horstretch> @@ -198,69 +234,50 @@               </sizepolicy>              </property>              <property name="text"> -             <string>&Java path:</string> -            </property> -            <property name="buddy"> -             <cstring>javaPathTextBox</cstring> -            </property> -           </widget> -          </item> -          <item row="3" column="2"> -           <widget class="QPushButton" name="javaTestBtn"> -            <property name="sizePolicy"> -             <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> -              <horstretch>0</horstretch> -              <verstretch>0</verstretch> -             </sizepolicy> +             <string>JVM arguments:</string>              </property> -            <property name="text"> -             <string>&Test</string> +            <property name="alignment"> +             <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>              </property>             </widget>            </item> -          <item row="0" column="1" colspan="2"> +          <item row="1" column="0" colspan="3">             <layout class="QHBoxLayout" name="horizontalLayout">              <item> +             <widget class="QLabel" name="labelJavaPath"> +              <property name="sizePolicy"> +               <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> +                <horstretch>0</horstretch> +                <verstretch>0</verstretch> +               </sizepolicy> +              </property> +              <property name="text"> +               <string>&Java path:</string> +              </property> +              <property name="buddy"> +               <cstring>javaPathTextBox</cstring> +              </property> +             </widget> +            </item> +            <item>               <widget class="QLineEdit" name="javaPathTextBox"/>              </item>              <item>               <widget class="QPushButton" name="javaBrowseBtn">                <property name="sizePolicy"> -               <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> +               <sizepolicy hsizetype="Maximum" vsizetype="Fixed">                  <horstretch>0</horstretch>                  <verstretch>0</verstretch>                 </sizepolicy>                </property> -              <property name="maximumSize"> -               <size> -                <width>28</width> -                <height>16777215</height> -               </size> -              </property>                <property name="text"> -               <string notr="true">...</string> +               <string>Browse</string>                </property>               </widget>              </item>             </layout>            </item> -          <item row="4" column="1"> -           <widget class="QCheckBox" name="skipCompatibilityCheckbox"> -            <property name="sizePolicy"> -             <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> -              <horstretch>0</horstretch> -              <verstretch>0</verstretch> -             </sizepolicy> -            </property> -            <property name="toolTip"> -             <string>If enabled, the launcher will not check if an instance is compatible with the selected Java version.</string> -            </property> -            <property name="text"> -             <string>&Skip Java compatibility checks</string> -            </property> -           </widget> -          </item> -          <item row="5" column="1"> +          <item row="5" column="0">             <widget class="QCheckBox" name="skipJavaWizardCheckbox">              <property name="toolTip">               <string>If enabled, the launcher will not prompt you to choose a Java version if one isn't found.</string> @@ -270,25 +287,6 @@              </property>             </widget>            </item> -          <item row="2" column="1" colspan="2"> -           <widget class="QPlainTextEdit" name="jvmArgsTextBox"> -            <property name="enabled"> -             <bool>true</bool> -            </property> -            <property name="sizePolicy"> -             <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> -              <horstretch>0</horstretch> -              <verstretch>0</verstretch> -             </sizepolicy> -            </property> -            <property name="maximumSize"> -             <size> -              <width>16777215</width> -              <height>100</height> -             </size> -            </property> -           </widget> -          </item>           </layout>          </widget>         </item> @@ -317,8 +315,6 @@    <tabstop>permGenSpinBox</tabstop>    <tabstop>javaBrowseBtn</tabstop>    <tabstop>javaPathTextBox</tabstop> -  <tabstop>javaDetectBtn</tabstop> -  <tabstop>javaTestBtn</tabstop>    <tabstop>tabWidget</tabstop>   </tabstops>   <resources/> diff --git a/launcher/ui/pages/global/LauncherPage.ui b/launcher/ui/pages/global/LauncherPage.ui index 11c59ab7..250a8bc8 100644 --- a/launcher/ui/pages/global/LauncherPage.ui +++ b/launcher/ui/pages/global/LauncherPage.ui @@ -99,7 +99,7 @@            <item row="3" column="2">             <widget class="QToolButton" name="downloadsDirBrowseBtn">              <property name="text"> -             <string notr="true">...</string> +             <string>Browse</string>              </property>             </widget>            </item> @@ -109,7 +109,7 @@            <item row="1" column="2">             <widget class="QToolButton" name="modsDirBrowseBtn">              <property name="text"> -             <string notr="true">...</string> +             <string>Browse</string>              </property>             </widget>            </item> @@ -126,14 +126,14 @@            <item row="0" column="2">             <widget class="QToolButton" name="instDirBrowseBtn">              <property name="text"> -             <string notr="true">...</string> +             <string>Browse</string>              </property>             </widget>            </item>            <item row="2" column="2">             <widget class="QToolButton" name="iconsDirBrowseBtn">              <property name="text"> -             <string notr="true">...</string> +             <string>Browse</string>              </property>             </widget>            </item> diff --git a/launcher/ui/pages/global/ProxyPage.cpp b/launcher/ui/pages/global/ProxyPage.cpp index 19b2bcea..9caffcb3 100644 --- a/launcher/ui/pages/global/ProxyPage.cpp +++ b/launcher/ui/pages/global/ProxyPage.cpp @@ -71,7 +71,7 @@ void ProxyPage::updateCheckboxStuff()      ui->proxyAuthBox->setEnabled(enableEditing);  } -void ProxyPage::proxyGroupChanged(QAbstractButton* button) +void ProxyPage::proxyGroupChanged([[maybe_unused]] QAbstractButton* button)  {      updateCheckboxStuff();  } | 
