From f60d2a0056d58e3b312be1bbbf9a109e0df96cde Mon Sep 17 00:00:00 2001 From: Olivier Keshavjee Date: Wed, 10 Jun 2015 23:41:53 +0200 Subject: [PATCH] Do not display root title in folder text mode, it's ugly. --- src/ui/editors/editorWidget.py | 4 +++- test_project/outline.xml | 12 ++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/ui/editors/editorWidget.py b/src/ui/editors/editorWidget.py index 81b814bb..999274f1 100644 --- a/src/ui/editors/editorWidget.py +++ b/src/ui/editors/editorWidget.py @@ -135,7 +135,9 @@ class editorWidget(QWidget, Ui_editorWidget_ui): self.txtEdits = [] - addTitle(item) + if item != self._model.rootItem: + addTitle(item) + addChildren(item) addSpacer() self.scroll.setWidget(w) diff --git a/test_project/outline.xml b/test_project/outline.xml index f47da017..8590255a 100644 --- a/test_project/outline.xml +++ b/test_project/outline.xml @@ -37,7 +37,7 @@ - + @@ -51,13 +51,13 @@ - - + + - + - + - +