Commit bf9ba67b authored by Alessandro Portale's avatar Alessandro Portale
Browse files

Added EditorView::editorArea()

Returns the area of the editor as QRect in global coordinates.
parent 862637cc
......@@ -346,6 +346,12 @@ void EditorView::updateEditorHistory(IEditor *editor)
m_editorHistory.prepend(location);
}
QRect EditorView::editorArea() const
{
const QRect cRect = m_container->rect();
return QRect(m_container->mapToGlobal(cRect.topLeft()), cRect.size());
}
void EditorView::addCurrentPositionToNavigationHistory(IEditor *editor, const QByteArray &saveState)
{
if (editor && editor != currentEditor()) {
......
......@@ -141,6 +141,7 @@ public:
void copyNavigationHistoryFrom(EditorView* other);
void updateEditorHistory(IEditor *editor);
QRect editorArea() const;
};
class SplitterOrView : public QWidget
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment