From a6a2a70987b58d4a441e5531bbe3dfd440ab9d73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=89=E5=AE=87=E6=B8=85=E9=9F=B3?= <2422523675@qq.com> Date: Sat, 11 Mar 2023 12:49:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WordsIDE/storychainspresent.cpp | 2 +- WordsIDE/storychainspresent.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; };