From f0d049a2da1900a7a68ee2487d268826f5fa83a5 Mon Sep 17 00:00:00 2001 From: uncor3 Date: Mon, 8 Dec 2025 19:41:56 +0000 Subject: [PATCH] remove dead code & update ZUpdater reference --- .gitmodules | 3 +++ lib/zupdater | 1 + src/detailwindow.cpp | 36 ------------------------------------ src/detailwindow.h | 38 -------------------------------------- 4 files changed, 4 insertions(+), 74 deletions(-) create mode 160000 lib/zupdater delete mode 100644 src/detailwindow.cpp delete mode 100644 src/detailwindow.h diff --git a/.gitmodules b/.gitmodules index 7555416..a5f05f3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,6 @@ [submodule "lib/win-ifuse"] path = lib/win-ifuse url = https://github.com/uncor3/win-ifuse.git +[submodule "lib/zupdater"] + path = lib/zupdater + url = https://github.com/libZQT/ZUpdater diff --git a/lib/zupdater b/lib/zupdater new file mode 160000 index 0000000..61aea85 --- /dev/null +++ b/lib/zupdater @@ -0,0 +1 @@ +Subproject commit 61aea855c82a67a3536ec00aca7acd583bcbfc83 diff --git a/src/detailwindow.cpp b/src/detailwindow.cpp deleted file mode 100644 index 0f34620..0000000 --- a/src/detailwindow.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/* - * iDescriptor: A free and open-source idevice management tool. - * - * Copyright (C) 2025 Uncore - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -#include "detailwindow.h" -#include -#include -#include - -DetailWindow::DetailWindow(const QString &title, int userId, QWidget *parent) - : QMainWindow(parent), m_title(title), m_userId(userId) -{ - - setWindowTitle(m_title); - - QLabel *label = new QLabel(QString("User ID: %1").arg(m_userId)); - QWidget *central = new QWidget; - QVBoxLayout *layout = new QVBoxLayout(central); - layout->addWidget(label); - setCentralWidget(central); -} diff --git a/src/detailwindow.h b/src/detailwindow.h deleted file mode 100644 index 2bee3b9..0000000 --- a/src/detailwindow.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * iDescriptor: A free and open-source idevice management tool. - * - * Copyright (C) 2025 Uncore - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -#ifndef DETAILWINDOW_H -#define DETAILWINDOW_H - -#include - -class DetailWindow : public QMainWindow -{ - Q_OBJECT -public: - explicit DetailWindow(const QString &title, int userId, - QWidget *parent = nullptr); - -signals: -private: - QString m_title; - int m_userId; -}; - -#endif // DETAILWINDOW_H