修正大量demo
This commit is contained in:
@@ -4,12 +4,13 @@
|
||||
#include "ui_frmmaskwidget.h"
|
||||
#include "maskwidget.h"
|
||||
#include "qdialog.h"
|
||||
#include "qtimer.h"
|
||||
#include "qdebug.h"
|
||||
|
||||
frmMaskWidget::frmMaskWidget(QWidget *parent) : QWidget(parent), ui(new Ui::frmMaskWidget)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
MaskWidget::Instance()->setMainWidget(this);
|
||||
MaskWidget::Instance()->setDialogNames(QStringList() << "frmTest");
|
||||
QTimer::singleShot(1000, this, SLOT(initForm()));
|
||||
}
|
||||
|
||||
frmMaskWidget::~frmMaskWidget()
|
||||
@@ -18,6 +19,12 @@ frmMaskWidget::~frmMaskWidget()
|
||||
exit(0);
|
||||
}
|
||||
|
||||
void frmMaskWidget::initForm()
|
||||
{
|
||||
MaskWidget::Instance()->setMainWidget(this->topLevelWidget());
|
||||
MaskWidget::Instance()->setDialogNames(QStringList() << "frmTest");
|
||||
}
|
||||
|
||||
void frmMaskWidget::on_pushButton_clicked()
|
||||
{
|
||||
QDialog d;
|
||||
|
||||
@@ -15,11 +15,12 @@ public:
|
||||
explicit frmMaskWidget(QWidget *parent = 0);
|
||||
~frmMaskWidget();
|
||||
|
||||
private slots:
|
||||
void on_pushButton_clicked();
|
||||
|
||||
private:
|
||||
Ui::frmMaskWidget *ui;
|
||||
|
||||
private slots:
|
||||
void initForm();
|
||||
void on_pushButton_clicked();
|
||||
};
|
||||
|
||||
#endif // FRMMASKWIDGET_H
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>10</y>
|
||||
<width>131</width>
|
||||
<height>23</height>
|
||||
<width>92</width>
|
||||
<height>28</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>弹出遮罩窗体</string>
|
||||
<string>弹出</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
Reference in New Issue
Block a user