Rename tabformwidget to TabFormWidget.

Fix layout add bug.
This commit is contained in:
Krad
2022-07-13 10:13:07 +08:00
parent 8e3579b084
commit fc3fab4909
9 changed files with 8 additions and 14 deletions

View File

@@ -51,7 +51,7 @@ void AboutWidget::initUiWidget()
pMainLayout->setAlignment(Qt::AlignLeft);
pMainLayout->setSpacing(10);
pProductVerLayout = new QHBoxLayout(this);
pProductVerLayout = new QHBoxLayout;
pMainLayout->addLayout(pProductVerLayout);
pProductVer = new QLabel(this);

View File

@@ -20,10 +20,9 @@
AdminSettingForm::AdminSettingForm(QWidget* aParent, Qt::WindowFlags f)
: TabFormWidget(aParent)
{
QHBoxLayout* layout = new QHBoxLayout(this);
QHBoxLayout* layout = new QHBoxLayout(ui->contentWidget);
layout->setMargin(0);
layout->setContentsMargins(0, 8, 0, 1);
ui->contentWidget->setLayout(layout);
ui->contentWidget->setObjectName("settingContentWidget");
QListWidget* widget = new QListWidget(this);
widget->setFixedWidth(250);

View File

@@ -5,7 +5,7 @@
#ifndef ADMINSETTINGFORM_H
#define ADMINSETTINGFORM_H
#include "forms/tabformwidget.h"
#include "forms/TabFormWidget.h"
class AdminSettingForm :public TabFormWidget
{