* 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:
Michael Schmitt 2007-01-04 19:52:41 +00:00
parent 1f83a88cd6
commit 6152f74317

View File

@ -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);
} }