First draft of multiple Java installation detection on Windows
This commit is contained in:
		@@ -185,9 +185,9 @@ void SettingsDialog::loadSettings(SettingsObject *s)
 | 
			
		||||
void SettingsDialog::on_pushButton_clicked()
 | 
			
		||||
{
 | 
			
		||||
	JavaUtils jut;
 | 
			
		||||
	QStringList paths = jut.FindJavaPath();
 | 
			
		||||
	auto javas = jut.FindJavaPaths();
 | 
			
		||||
 | 
			
		||||
	ui->javaPathTextBox->setText(paths.at(0));
 | 
			
		||||
	ui->javaPathTextBox->setText(std::get<JI_PATH>(javas.at(0)));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void SettingsDialog::on_btnBrowse_clicked()
 | 
			
		||||
 
 | 
			
		||||
@@ -374,6 +374,12 @@
 | 
			
		||||
         <layout class="QGridLayout" name="gridLayout_3">
 | 
			
		||||
          <item row="0" column="0">
 | 
			
		||||
           <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>
 | 
			
		||||
@@ -381,6 +387,12 @@
 | 
			
		||||
          </item>
 | 
			
		||||
          <item row="2" column="0">
 | 
			
		||||
           <widget class="QLabel" name="labelJVMArgs">
 | 
			
		||||
            <property name="sizePolicy">
 | 
			
		||||
             <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
 | 
			
		||||
              <horstretch>0</horstretch>
 | 
			
		||||
              <verstretch>0</verstretch>
 | 
			
		||||
             </sizepolicy>
 | 
			
		||||
            </property>
 | 
			
		||||
            <property name="text">
 | 
			
		||||
             <string>JVM arguments:</string>
 | 
			
		||||
            </property>
 | 
			
		||||
@@ -402,9 +414,6 @@
 | 
			
		||||
          <item row="0" column="1" colspan="3">
 | 
			
		||||
           <widget class="QLineEdit" name="javaPathTextBox"/>
 | 
			
		||||
          </item>
 | 
			
		||||
          <item row="2" column="1" colspan="3">
 | 
			
		||||
           <widget class="QLineEdit" name="jvmArgsTextBox"/>
 | 
			
		||||
          </item>
 | 
			
		||||
          <item row="1" column="2">
 | 
			
		||||
           <widget class="QPushButton" name="pushButton">
 | 
			
		||||
            <property name="sizePolicy">
 | 
			
		||||
@@ -418,6 +427,9 @@
 | 
			
		||||
            </property>
 | 
			
		||||
           </widget>
 | 
			
		||||
          </item>
 | 
			
		||||
          <item row="2" column="1" colspan="3">
 | 
			
		||||
           <widget class="QLineEdit" name="jvmArgsTextBox"/>
 | 
			
		||||
          </item>
 | 
			
		||||
         </layout>
 | 
			
		||||
        </widget>
 | 
			
		||||
       </item>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user