summaryrefslogtreecommitdiff
path: root/launcher/java/JavaInstallList.h
diff options
context:
space:
mode:
authorMehmet Samet Duman <yongdohyun@projecttick.org>2026-04-02 17:36:40 +0300
committerMehmet Samet Duman <yongdohyun@projecttick.org>2026-04-02 17:36:40 +0300
commit1d4bf6e8b1208383021e22f61d859e9b721c482d (patch)
tree21c8e0c4350d7c44d817243ebf409be625ea4f21 /launcher/java/JavaInstallList.h
parent38c57e163abad6216f7e0f44d401c362c5fd5da6 (diff)
downloadProject-Tick-1d4bf6e8b1208383021e22f61d859e9b721c482d.tar.gz
Project-Tick-1d4bf6e8b1208383021e22f61d859e9b721c482d.zip
NOISSUE reformat MeshMC to new clang format rules and fixed macOS portability issue and java find issue
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
Diffstat (limited to 'launcher/java/JavaInstallList.h')
-rw-r--r--launcher/java/JavaInstallList.h80
1 files changed, 38 insertions, 42 deletions
diff --git a/launcher/java/JavaInstallList.h b/launcher/java/JavaInstallList.h
index 62d7931b28..a889f43b96 100644
--- a/launcher/java/JavaInstallList.h
+++ b/launcher/java/JavaInstallList.h
@@ -17,7 +17,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
+ *
* This file incorporates work covered by the following copyright and
* permission notice:
*
@@ -53,52 +53,48 @@ class JavaListLoadTask;
class JavaInstallList : public BaseVersionList
{
- Q_OBJECT
- enum class Status
- {
- NotDone,
- InProgress,
- Done
- };
-public:
- explicit JavaInstallList(QObject *parent = 0);
-
- Task::Ptr getLoadTask() override;
- bool isLoaded() override;
- const BaseVersionPtr at(int i) const override;
- int count() const override;
- void sortVersions() override;
-
- QVariant data(const QModelIndex &index, int role) const override;
- RoleList providesRoles() const override;
-
-public slots:
- void updateListData(QList<BaseVersionPtr> versions) override;
-
-protected:
- void load();
- Task::Ptr getCurrentTask();
-
-protected:
- Status m_status = Status::NotDone;
- shared_qobject_ptr<JavaListLoadTask> m_loadTask;
- QList<BaseVersionPtr> m_vlist;
+ Q_OBJECT
+ enum class Status { NotDone, InProgress, Done };
+
+ public:
+ explicit JavaInstallList(QObject* parent = 0);
+
+ Task::Ptr getLoadTask() override;
+ bool isLoaded() override;
+ const BaseVersionPtr at(int i) const override;
+ int count() const override;
+ void sortVersions() override;
+
+ QVariant data(const QModelIndex& index, int role) const override;
+ RoleList providesRoles() const override;
+
+ public slots:
+ void updateListData(QList<BaseVersionPtr> versions) override;
+
+ protected:
+ void load();
+ Task::Ptr getCurrentTask();
+
+ protected:
+ Status m_status = Status::NotDone;
+ shared_qobject_ptr<JavaListLoadTask> m_loadTask;
+ QList<BaseVersionPtr> m_vlist;
};
class JavaListLoadTask : public Task
{
- Q_OBJECT
+ Q_OBJECT
-public:
- explicit JavaListLoadTask(JavaInstallList *vlist);
- virtual ~JavaListLoadTask();
+ public:
+ explicit JavaListLoadTask(JavaInstallList* vlist);
+ virtual ~JavaListLoadTask();
- void executeTask() override;
-public slots:
- void javaCheckerFinished();
+ void executeTask() override;
+ public slots:
+ void javaCheckerFinished();
-protected:
- shared_qobject_ptr<JavaCheckerJob> m_job;
- JavaInstallList *m_list;
- JavaInstall *m_currentRecommended;
+ protected:
+ shared_qobject_ptr<JavaCheckerJob> m_job;
+ JavaInstallList* m_list;
+ JavaInstall* m_currentRecommended;
};