forked from qt-creator/qt-creator
Aggregation: Add a convenience function to create simple aggregates
Change-Id: I03300f1fcc20314d392012fd288ef0fc2501d403 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -2531,9 +2531,7 @@ void ICorePrivate::changeLog()
|
||||
auto textEdit = new QTextBrowser;
|
||||
textEdit->setOpenExternalLinks(true);
|
||||
|
||||
auto aggregate = new Aggregation::Aggregate;
|
||||
aggregate->add(textEdit);
|
||||
aggregate->add(new Core::BaseTextFind(textEdit));
|
||||
Aggregation::aggregate({textEdit, new BaseTextFind(textEdit)});
|
||||
|
||||
new MarkdownHighlighter(textEdit->document());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user