mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 04:42:03 +08:00
New Non-DTK store client prototype
This commit is contained in:
22
inc/spkmsgbox.h
Normal file
22
inc/spkmsgbox.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef SPKMSGBOX_H
|
||||
#define SPKMSGBOX_H
|
||||
|
||||
#include <QStyle>
|
||||
#include <QMessageBox>
|
||||
#include "spkdialog.h"
|
||||
|
||||
class SpkMsgBox : public SpkDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
SpkMsgBox();
|
||||
static int StaticExec(QString msg, QString title, QMessageBox::Icon = QMessageBox::NoIcon,
|
||||
QMessageBox::StandardButtons = QMessageBox::Ok, QString extra = "");
|
||||
private:
|
||||
static void AddButtons(SpkMsgBox *me, QMessageBox::StandardButtons b);
|
||||
QList<QMessageBox::StandardButton> mButtonList;
|
||||
static constexpr QSize IconSize {48, 48};
|
||||
static constexpr int Margin = 10;
|
||||
};
|
||||
|
||||
#endif // SPKMSGBOX_H
|
||||
Reference in New Issue
Block a user