Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
bf9ba67b
Commit
bf9ba67b
authored
Aug 05, 2010
by
Alessandro Portale
Browse files
Added EditorView::editorArea()
Returns the area of the editor as QRect in global coordinates.
parent
862637cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/editormanager/editorview.cpp
View file @
bf9ba67b
...
...
@@ -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
())
{
...
...
src/plugins/coreplugin/editormanager/editorview.h
View file @
bf9ba67b
...
...
@@ -141,6 +141,7 @@ public:
void
copyNavigationHistoryFrom
(
EditorView
*
other
);
void
updateEditorHistory
(
IEditor
*
editor
);
QRect
editorArea
()
const
;
};
class
SplitterOrView
:
public
QWidget
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment