mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-06-22 22:23:49 +08:00
e3c43198b9
使用了SpkSidebarTree子类实现对TreeWidget的特殊要求:不能取消选择,不能拖拽选择。 API调用接口暂时写死。API会获取 配置文件已添加但暂不使用。
21 lines
645 B
C++
21 lines
645 B
C++
#pragma once
|
|
|
|
#include <QStyle>
|
|
#include <QMessageBox>
|
|
#include "spkdialog.h"
|
|
|
|
class SpkMsgBox : public SpkDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
SpkMsgBox(QWidget *parent = nullptr);
|
|
static int StaticExec(QString msg, QString title, QMessageBox::Icon = QMessageBox::NoIcon,
|
|
QMessageBox::StandardButtons = QMessageBox::Ok, QString extra = "",
|
|
bool expanded = false);
|
|
private:
|
|
static void AddButtons(SpkMsgBox *me, QMessageBox::StandardButtons b);
|
|
QList<QMessageBox::StandardButton> mButtonList;
|
|
static constexpr QSize IconSize {48, 48};
|
|
static constexpr int Margin = 10;
|
|
};
|