mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-13 12:22:05 +08:00
加入SpkAbout(无内容)
This commit is contained in:
@@ -1,11 +1,21 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
#include <QHBoxLayout>
|
||||
#include "spkdialog.h"
|
||||
|
||||
class SpkAbout : public SpkDialog
|
||||
{
|
||||
public:
|
||||
SpkAbout(QWidget* parent = nullptr);
|
||||
void Show();
|
||||
~SpkAbout();
|
||||
static void Show();
|
||||
|
||||
private:
|
||||
QHBoxLayout *mIconLay;
|
||||
QLabel *mSpkIcon;
|
||||
QLabel *mSpkVersion;
|
||||
QLabel *mDescriptionText;
|
||||
};
|
||||
|
||||
@@ -15,7 +15,9 @@ class SpkDialog : public SpkWindow
|
||||
~SpkDialog();
|
||||
void AddButton(QString text, SpkUi::SpkButtonStyle style = SpkUi::SpkButtonStyle::Normal);
|
||||
void AddWidget(QWidget*);
|
||||
void AddLayout(QLayout*);
|
||||
void AddSpacing(int);
|
||||
void SetMargin(int);
|
||||
int Exec();
|
||||
|
||||
private slots:
|
||||
@@ -31,5 +33,5 @@ class SpkDialog : public SpkWindow
|
||||
QVBoxLayout *mMainVLay, *mWidgetsVLay;
|
||||
QHBoxLayout *mBtnLay;
|
||||
QButtonGroup *mBtnGroup;
|
||||
QList<QWidget*> mWidgetsList, mParentsList;
|
||||
QList<QObject*> mWidgetsList, mParentsList;
|
||||
};
|
||||
|
||||
@@ -17,6 +17,11 @@ class QNetworkReply;
|
||||
|
||||
namespace SpkUi
|
||||
{
|
||||
enum SpkStackedPages
|
||||
{
|
||||
PgQssTest // Must be at last
|
||||
};
|
||||
|
||||
class SpkSidebarSelector : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -35,5 +35,5 @@ class SpkStore : public QObject
|
||||
SpkLogger *mLogger;
|
||||
SpkMainWindow *mMainWindow = nullptr;
|
||||
QNetworkAccessManager *mNetMgr = nullptr;
|
||||
QString mDistroName, mApiRequestUrl, mUserAgentStr;
|
||||
QString mDistroName, mApiRequestUrl, mUserAgentStr, mConfigPath;
|
||||
};
|
||||
|
||||
@@ -59,7 +59,7 @@ class SpkWindow : public QMainWindow
|
||||
void SetMouseCursor(Qt::Edges);
|
||||
void ResizeWindowByCursor(QPoint);
|
||||
void closeEvent(QCloseEvent *) override;
|
||||
// void paintEvent(QPaintEvent *) override;
|
||||
void paintEvent(QPaintEvent *) override;
|
||||
|
||||
private:
|
||||
void PopulateUi();
|
||||
|
||||
Reference in New Issue
Block a user