QmlJSEditor: hiding of the context pane

We properly hide the pane if the viewport is scrolled or resized.
This commit is contained in:
Thomas Hartmann
2010-07-20 15:01:06 +02:00
parent 8b90b96f3c
commit 825c43dd2b
2 changed files with 34 additions and 7 deletions

View File

@@ -256,6 +256,8 @@ protected:
void contextMenuEvent(QContextMenuEvent *e);
bool event(QEvent *e);
void wheelEvent(QWheelEvent *event);
void resizeEvent(QResizeEvent *event);
void scrollContentsBy(int dx, int dy);
TextEditor::BaseTextEditorEditable *createEditableInterface();
void createToolBar(QmlJSEditorEditable *editable);
TextEditor::BaseTextEditor::Link findLinkAt(const QTextCursor &cursor, bool resolveTarget = true);
@@ -277,6 +279,7 @@ private:
SemanticHighlighter::Source currentSource(bool force = false);
QModelIndex indexForPosition(unsigned cursorPosition, const QModelIndex &rootIndex = QModelIndex()) const;
bool hideContextPane();
const Core::Context m_context;