mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-06-22 22:23:49 +08:00
SpkPageQssTest重命名为SpkPageUiTest
This commit is contained in:
+8
-4
@@ -1,9 +1,8 @@
|
||||
|
||||
#include <QEventLoop>
|
||||
#include "spkdialog.h"
|
||||
#include <QEventLoop>
|
||||
|
||||
SpkDialog::SpkDialog(QWidget *parent) :
|
||||
SpkWindow(parent, Qt::Dialog)
|
||||
SpkDialog::SpkDialog(QWidget *parent) : SpkWindow(parent, Qt::Dialog)
|
||||
{
|
||||
mDialogWidget = new QWidget;
|
||||
mMainVLay = new QVBoxLayout(mDialogWidget);
|
||||
@@ -30,7 +29,7 @@ SpkDialog::~SpkDialog()
|
||||
auto itp = mParentsList.begin();
|
||||
for(auto itw = mWidgetsList.begin(); itw != mWidgetsList.end(); itw++)
|
||||
{
|
||||
(*itw)->setParent(*(itp++)); // We shall never take the ownership of these widgets
|
||||
(*itw)->setParent(*(itp++));// We shall never take the ownership of these widgets
|
||||
}
|
||||
delete mDialogWidget;
|
||||
}
|
||||
@@ -103,3 +102,8 @@ void SpkDialog::ForceClose()
|
||||
disconnect(this, &SpkDialog::CloseWindow, this, &QMainWindow::close);
|
||||
emit ExitEventLoop(-1);
|
||||
}
|
||||
|
||||
void SpkDialog::SetMargin(int left, int top, int right, int bottom)
|
||||
{
|
||||
mWidgetsVLay->setContentsMargins(left, top, right, bottom);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user