forked from qt-creator/qt-creator
QmlJsEditor: Delay construction of QuickToolBar
It's now apparently created when the first .qml file opens. Change-Id: I4bcd84d29da268565ee6e771f8c56c8b07ecdaf3 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -86,6 +86,12 @@ QuickToolBar::~QuickToolBar()
|
||||
m_widget = nullptr;
|
||||
}
|
||||
|
||||
QuickToolBar *QuickToolBar::instance()
|
||||
{
|
||||
static QuickToolBar theQuickToolBar;
|
||||
return &theQuickToolBar;
|
||||
}
|
||||
|
||||
void QuickToolBar::apply(TextEditor::TextEditorWidget *editorWidget, Document::Ptr document, const ScopeChain *scopeChain, Node *node, bool update, bool force)
|
||||
{
|
||||
if (!QmlJsEditingSettings::get().enableContextPane() && !force && !update) {
|
||||
|
||||
Reference in New Issue
Block a user