Fixed the code style
This commit is contained in:
parent
884a59ff0a
commit
ee49f9a0ee
|
@ -45,9 +45,9 @@ ConfigDialog::ConfigDialog(QWidget *parent) :
|
||||||
contentsWidget->setViewMode(QListView::IconMode);
|
contentsWidget->setViewMode(QListView::IconMode);
|
||||||
contentsWidget->setIconSize(QSize(96, 84));
|
contentsWidget->setIconSize(QSize(96, 84));
|
||||||
contentsWidget->setMovement(QListView::Static);
|
contentsWidget->setMovement(QListView::Static);
|
||||||
contentsWidget->setMaximumWidth(128);
|
contentsWidget->setMaximumWidth(128);
|
||||||
contentsWidget->setMinimumWidth(128);
|
contentsWidget->setMinimumWidth(128);
|
||||||
contentsWidget->setMinimumHeight(500);
|
contentsWidget->setMinimumHeight(500);
|
||||||
contentsWidget->setSpacing(12);
|
contentsWidget->setSpacing(12);
|
||||||
|
|
||||||
pagesWidget = new QStackedWidget;
|
pagesWidget = new QStackedWidget;
|
||||||
|
@ -87,10 +87,10 @@ ConfigDialog::ConfigDialog(QWidget *parent) :
|
||||||
|
|
||||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||||
mainLayout->addLayout(horizontalLayout);
|
mainLayout->addLayout(horizontalLayout);
|
||||||
//mainLayout->addStretch(1);
|
//mainLayout->addStretch(1);
|
||||||
//mainLayout->addSpacing(12);
|
//mainLayout->addSpacing(12);
|
||||||
mainLayout->addLayout(buttonsLayout);
|
mainLayout->addLayout(buttonsLayout);
|
||||||
mainLayout->setStretch(0, 1);
|
mainLayout->setStretch(0, 1);
|
||||||
setLayout(mainLayout);
|
setLayout(mainLayout);
|
||||||
|
|
||||||
setWindowTitle(tr("Config Dialog"));
|
setWindowTitle(tr("Config Dialog"));
|
||||||
|
@ -146,8 +146,8 @@ void ConfigDialog::showEvent(QShowEvent *event)
|
||||||
}
|
}
|
||||||
// do your init stuff here
|
// do your init stuff here
|
||||||
|
|
||||||
//setMaximumSize(size());
|
//setMaximumSize(size());
|
||||||
setMinimumSize(size());
|
setMinimumSize(size());
|
||||||
|
|
||||||
isInitialized = true;//first show windows are held
|
isInitialized = true;//first show windows are held
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user