chore:绘制包列表骨架

This commit is contained in:
momen 2025-06-06 13:29:35 +08:00
parent 064b068135
commit 3ba3364fb9
5 changed files with 42 additions and 0 deletions

View File

@ -25,6 +25,8 @@ if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
${PROJECT_SOURCES}
aptssupdater.h aptssupdater.cpp
icons.qrc
appdelegate.h appdelegate.cpp
applistmodel.h applistmodel.cpp
)
# Define target properties for Android with Qt 6 as:
# set_property(TARGET Spark-Update-Tool APPEND PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR

5
src/appdelegate.cpp Normal file
View File

@ -0,0 +1,5 @@
#include "appdelegate.h"
AppDelegate::AppDelegate(QObject *parent)
: QObject{parent}
{}

15
src/appdelegate.h Normal file
View File

@ -0,0 +1,15 @@
#ifndef APPDELEGATE_H
#define APPDELEGATE_H
#include <QObject>
class AppDelegate : public QObject
{
Q_OBJECT
public:
explicit AppDelegate(QObject *parent = nullptr);
signals:
};
#endif // APPDELEGATE_H

5
src/applistmodel.cpp Normal file
View File

@ -0,0 +1,5 @@
#include "applistmodel.h"
AppListModel::AppListModel(QObject *parent)
: QObject{parent}
{}

15
src/applistmodel.h Normal file
View File

@ -0,0 +1,15 @@
#ifndef APPLISTMODEL_H
#define APPLISTMODEL_H
#include <QObject>
class AppListModel : public QObject
{
Q_OBJECT
public:
explicit AppListModel(QObject *parent = nullptr);
signals:
};
#endif // APPLISTMODEL_H