forked from qt-creator/qt-creator
QtQuickToolbar: adds isAvailable() to IContextPane
isAvailable() returns true if a Quick ToolBar is available for that node
This commit is contained in:
@@ -54,6 +54,7 @@ public:
|
||||
virtual ~IContextPane() {}
|
||||
virtual void apply(TextEditor::BaseTextEditorEditable *editor, Document::Ptr doc, const QmlJS::Snapshot &snapshot, AST::Node *node, bool update, bool force = false) = 0;
|
||||
virtual void setEnabled(bool) = 0;
|
||||
virtual bool isAvailable(TextEditor::BaseTextEditorEditable *editor, Document::Ptr doc, const QmlJS::Snapshot &snapshot, AST::Node *node) = 0;
|
||||
virtual QWidget* widget() = 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user