Unify Java page
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
012bbca197
commit
1b4b36df33
11 changed files with 865 additions and 634 deletions
|
@ -37,6 +37,7 @@
|
|||
|
||||
#include <Application.h>
|
||||
#include <QObjectPtr.h>
|
||||
#include <ui/widgets/JavaSettingsWidget.h>
|
||||
#include <QDialog>
|
||||
#include <QStringListModel>
|
||||
#include "JavaCommon.h"
|
||||
|
@ -59,26 +60,16 @@ class JavaPage : public QWidget, public BasePage {
|
|||
QIcon icon() const override { return APPLICATION->getThemedIcon("java"); }
|
||||
QString id() const override { return "java-settings"; }
|
||||
QString helpPage() const override { return "Java-settings"; }
|
||||
bool apply() override;
|
||||
void retranslate() override;
|
||||
|
||||
void updateThresholds();
|
||||
|
||||
private:
|
||||
void applySettings();
|
||||
void loadSettings();
|
||||
bool apply() override;
|
||||
|
||||
private slots:
|
||||
void on_javaDetectBtn_clicked();
|
||||
void on_javaTestBtn_clicked();
|
||||
void on_javaBrowseBtn_clicked();
|
||||
void on_downloadJavaButton_clicked();
|
||||
void on_removeJavaButton_clicked();
|
||||
void on_refreshJavaButton_clicked();
|
||||
void on_maxMemSpinBox_valueChanged(int i);
|
||||
void checkerFinished();
|
||||
|
||||
private:
|
||||
Ui::JavaPage* ui;
|
||||
unique_qobject_ptr<JavaCommon::TestCheck> checker;
|
||||
JavaSettingsWidget* m_javaSettings;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue