mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
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:
parent
af3b63ac40
commit
6bfbb310d2
@ -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()));
|
||||
}
|
||||
|
||||
|
||||
|
@ -48,6 +48,7 @@ protected Q_SLOTS:
|
||||
void on_moveDownTB_clicked();
|
||||
void on_moveInTB_clicked();
|
||||
void on_moveOutTB_clicked();
|
||||
void setTreeDepth() { setTreeDepth(depth_); };
|
||||
|
||||
protected:
|
||||
///
|
||||
|
@ -33,7 +33,7 @@ What's new
|
||||
|
||||
* USER INTERFACE
|
||||
|
||||
|
||||
- Fix the automatic uncollapsing of outliner during updates (bug 3740).
|
||||
|
||||
|
||||
* DOCUMENT INPUT/OUTPUT
|
||||
|
Loading…
x
Reference in New Issue
Block a user