diff --git a/WordsIDE/storychainspresent.cpp b/WordsIDE/storychainspresent.cpp index 674e413..ff7667d 100644 --- a/WordsIDE/storychainspresent.cpp +++ b/WordsIDE/storychainspresent.cpp @@ -15,7 +15,7 @@ using namespace CommandList; StorychainsPresentModel::StorychainsPresentModel(Core::AppCore *core) : core_ins(core), model_base(new QStandardItemModel), details_base(new QTextDocument) { - sync_tools = new ModelSyncs( + sync_tools = new TreeSyncs( model_base, [](DesNode *const &d, QStandardItem *it) -> bool { return static_cast(d)->name().first() == it->text(); diff --git a/WordsIDE/storychainspresent.h b/WordsIDE/storychainspresent.h index b9cffec..55311f0 100644 --- a/WordsIDE/storychainspresent.h +++ b/WordsIDE/storychainspresent.h @@ -35,7 +35,7 @@ namespace Components { Core::AppCore *const core_ins; QStandardItemModel *const model_base; QTextDocument *const details_base; - Tools::ModelSyncs *sync_tools; + Tools::TreeSyncs *sync_tools; };