forked from qt-creator/qt-creator
Do not use QWeakPointer to track QObjects.
This use case is deprecated in Qt 5. Use QPointer instead. Change-Id: Id6c32542032656d7cb31cf838d93a680ab9e9327 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -123,7 +123,7 @@ QuickToolBar::~QuickToolBar()
|
||||
//if the pane was never activated the widget is not in a widget tree
|
||||
if (!m_widget.isNull())
|
||||
delete m_widget.data();
|
||||
m_widget.clear();
|
||||
m_widget = 0;
|
||||
}
|
||||
|
||||
void QuickToolBar::apply(TextEditor::BaseTextEditor *editor, Document::Ptr document, const ScopeChain *scopeChain, AST::Node *node, bool update, bool force)
|
||||
|
||||
Reference in New Issue
Block a user