mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 02:35:20 +00:00
* src/frontends/qt4/QTocDialog.C: fix formatting of curly brackets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16513 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1f83a88cd6
commit
6152f74317
@ -215,8 +215,7 @@ void QTocDialog::update()
|
|||||||
void QTocDialog::updateGui()
|
void QTocDialog::updateGui()
|
||||||
{
|
{
|
||||||
QStringListModel * type_model = form_->typeModel();
|
QStringListModel * type_model = form_->typeModel();
|
||||||
if (type_model->stringList().isEmpty())
|
if (type_model->stringList().isEmpty()) {
|
||||||
{
|
|
||||||
enableButtons();
|
enableButtons();
|
||||||
typeCO->setModel(type_model);
|
typeCO->setModel(type_model);
|
||||||
tocTV->setModel(new QStandardItemModel);
|
tocTV->setModel(new QStandardItemModel);
|
||||||
@ -227,8 +226,7 @@ void QTocDialog::updateGui()
|
|||||||
typeCO->setModel(type_model);
|
typeCO->setModel(type_model);
|
||||||
typeCO->setCurrentIndex(form_->getType());
|
typeCO->setCurrentIndex(form_->getType());
|
||||||
|
|
||||||
if (form_->tocModel())
|
if (form_->tocModel()) {
|
||||||
{
|
|
||||||
tocTV->setModel(form_->tocModel());
|
tocTV->setModel(form_->tocModel());
|
||||||
tocTV->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
tocTV->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user