mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 18:36:58 +03:00
chore(clang-tidy): modernize the code
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
170d59de2a
commit
1af838db2e
38 changed files with 1088 additions and 956 deletions
|
|
@ -24,11 +24,18 @@ class JavaWizardWidget : public QWidget {
|
|||
|
||||
public:
|
||||
explicit JavaWizardWidget(QWidget* parent);
|
||||
virtual ~JavaWizardWidget();
|
||||
~JavaWizardWidget() override;
|
||||
|
||||
enum class JavaStatus { NotSet, Pending, Good, DoesNotExist, DoesNotStart, ReturnedInvalidData } javaStatus = JavaStatus::NotSet;
|
||||
enum class JavaStatus : std::uint8_t {
|
||||
NotSet,
|
||||
Pending,
|
||||
Good,
|
||||
DoesNotExist,
|
||||
DoesNotStart,
|
||||
ReturnedInvalidData
|
||||
} javaStatus = JavaStatus::NotSet;
|
||||
|
||||
enum class ValidationStatus { Bad, JavaBad, AllOK };
|
||||
enum class ValidationStatus : std::uint8_t { Bad, JavaBad, AllOK };
|
||||
|
||||
void refresh();
|
||||
void initialize();
|
||||
|
|
@ -49,10 +56,10 @@ class JavaWizardWidget : public QWidget {
|
|||
void onSpinBoxValueChanged(int);
|
||||
void memoryValueChanged();
|
||||
void javaPathEdited(const QString& path);
|
||||
void javaVersionSelected(BaseVersion::Ptr version);
|
||||
void on_javaBrowseBtn_clicked();
|
||||
void on_javaStatusBtn_clicked();
|
||||
void javaDownloadBtn_clicked();
|
||||
void javaVersionSelected(const BaseVersion::Ptr& version);
|
||||
void onJavaBrowseBtnClicked();
|
||||
void onJavaStatusBtnClicked();
|
||||
void javaDownloadBtnClicked();
|
||||
void checkFinished(const JavaChecker::Result& result);
|
||||
|
||||
protected: /* methods */
|
||||
|
|
@ -72,7 +79,7 @@ class JavaWizardWidget : public QWidget {
|
|||
QHBoxLayout* m_horizontalLayout = nullptr;
|
||||
|
||||
QGroupBox* m_memoryGroupBox = nullptr;
|
||||
QGridLayout* m_gridLayout_2 = nullptr;
|
||||
QGridLayout* m_gridLayout2 = nullptr;
|
||||
QSpinBox* m_maxMemSpinBox = nullptr;
|
||||
QLabel* m_labelMinMem = nullptr;
|
||||
QLabel* m_labelMaxMem = nullptr;
|
||||
|
|
@ -83,20 +90,20 @@ class JavaWizardWidget : public QWidget {
|
|||
|
||||
QHBoxLayout* m_horizontalBtnLayout = nullptr;
|
||||
QPushButton* m_javaDownloadBtn = nullptr;
|
||||
QIcon goodIcon;
|
||||
QIcon yellowIcon;
|
||||
QIcon badIcon;
|
||||
QIcon m_goodIcon;
|
||||
QIcon m_yellowIcon;
|
||||
QIcon m_badIcon;
|
||||
|
||||
QGroupBox* m_autoJavaGroupBox = nullptr;
|
||||
QVBoxLayout* m_veriticalJavaLayout = nullptr;
|
||||
QCheckBox* m_autodetectJavaCheckBox = nullptr;
|
||||
QCheckBox* m_autodownloadCheckBox = nullptr;
|
||||
|
||||
unsigned int observedMinMemory = 0;
|
||||
unsigned int observedMaxMemory = 0;
|
||||
unsigned int observedPermGenMemory = 0;
|
||||
QString queuedCheck;
|
||||
uint64_t m_availableMemory = 0ull;
|
||||
int m_observedMinMemory = 0;
|
||||
int m_observedMaxMemory = 0;
|
||||
int m_observedPermGenMemory = 0;
|
||||
QString m_queuedCheck;
|
||||
uint64_t m_availableMemory = 0ULL;
|
||||
shared_qobject_ptr<JavaChecker> m_checker;
|
||||
JavaChecker::Result m_result;
|
||||
QTimer* m_memoryTimer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue