mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
reverse Toc searching: use DocIterator instead of ParconsIterator.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24800 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6fd7c7c973
commit
fb31797d13
@ -16,11 +16,11 @@
|
|||||||
#include "Buffer.h"
|
#include "Buffer.h"
|
||||||
#include "BufferParams.h"
|
#include "BufferParams.h"
|
||||||
#include "BufferView.h"
|
#include "BufferView.h"
|
||||||
|
#include "DocIterator.h"
|
||||||
#include "Cursor.h"
|
#include "Cursor.h"
|
||||||
#include "FloatList.h"
|
#include "FloatList.h"
|
||||||
#include "FuncRequest.h"
|
#include "FuncRequest.h"
|
||||||
#include "LyXFunc.h"
|
#include "LyXFunc.h"
|
||||||
#include "ParIterator.h"
|
|
||||||
#include "TextClass.h"
|
#include "TextClass.h"
|
||||||
|
|
||||||
#include "support/convert.h"
|
#include "support/convert.h"
|
||||||
@ -204,9 +204,9 @@ QModelIndex TocModels::currentIndex(int type) const
|
|||||||
if (type < 0 || !bv_)
|
if (type < 0 || !bv_)
|
||||||
return QModelIndex();
|
return QModelIndex();
|
||||||
|
|
||||||
ParConstIterator it(bv_->cursor());
|
TocIterator const it = bv_->buffer().masterBuffer()->tocBackend().item(
|
||||||
return models_[type]->modelIndex(bv_->buffer().masterBuffer()->
|
fromqstr(types_[type]), bv_->cursor());
|
||||||
tocBackend().item(fromqstr(types_[type]), it));
|
return models_[type]->modelIndex(it);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user