QmlJsEditor: combine the Quick ToolBar with the toolTip

1000ms after a tooltip is shown we now also show the quick toolbar

Reviewed-by: Erik Verbruggen
This commit is contained in:
Thomas Hartmann
2010-09-29 16:58:30 +02:00
parent cb48aad9d2
commit f5b4668fa5
2 changed files with 39 additions and 2 deletions

View File

@@ -279,6 +279,8 @@ private slots:
void onRefactorMarkerClicked(const TextEditor::Internal::RefactorMarker &marker);
void performQuickFix(int index);
void onTooltipRequested(TextEditor::ITextEditor* editor, QPoint point, int position);
void updateToolTipNow();
protected:
void contextMenuEvent(QContextMenuEvent *e);
@@ -317,6 +319,7 @@ private:
QTimer *m_updateOutlineTimer;
QTimer *m_updateOutlineIndexTimer;
QTimer *m_cursorPositionTimer;
QTimer *m_toolTipTimer;
QComboBox *m_outlineCombo;
QmlOutlineModel *m_outlineModel;
QModelIndex m_outlineModelIndex;
@@ -333,6 +336,7 @@ private:
QmlJS::IContextPane *m_contextPane;
int m_oldCursorPosition;
bool m_updateSelectedElements;
int m_toolTipPosition;
FindReferences *m_findReferences;
};