SpkPageQssTest重命名为SpkPageUiTest

This commit is contained in:
RigoLigoRLC
2021-07-22 19:26:00 +08:00
parent 3eb2a0d63a
commit 4f0990293a
7 changed files with 25 additions and 19 deletions
+8 -4
View File
@@ -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);
}