ToC tree redrawing after resets.

http://bugzilla.lyx.org/show_bug.cgi?id=3740


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23444 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2008-03-04 14:07:12 +00:00
parent af3b63ac40
commit 6bfbb310d2
3 changed files with 7 additions and 1 deletions

View File

@ -23,6 +23,7 @@
#include <QHeaderView>
#include <QPushButton>
#include <QTreeWidgetItem>
#include <QTimer>
#include <vector>
#include <string>
@ -259,6 +260,10 @@ void TocWidget::updateGui()
typeCO->blockSignals(false);
setTocModel(typeCO->currentIndex());
// setTocModel produce QTreeView reset and setting depth again
// is needed. That must be done after all Qt updates are processed.
QTimer::singleShot(1, this, SLOT(setTreeDepth()));
}

View File

@ -48,6 +48,7 @@ protected Q_SLOTS:
void on_moveDownTB_clicked();
void on_moveInTB_clicked();
void on_moveOutTB_clicked();
void setTreeDepth() { setTreeDepth(depth_); };
protected:
///

View File

@ -33,7 +33,7 @@ What's new
* USER INTERFACE
- Fix the automatic uncollapsing of outliner during updates (bug 3740).
* DOCUMENT INPUT/OUTPUT