Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
3fd03964
Commit
3fd03964
authored
Oct 18, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix code style
parent
c63b4433
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
window_QT.cpp
modules/highgui/src/window_QT.cpp
+8
-7
No files found.
modules/highgui/src/window_QT.cpp
View file @
3fd03964
...
...
@@ -3015,6 +3015,7 @@ void DefaultViewPort::drawImgRegion(QPainter *painter)
for
(
int
j
=-
1
;
j
<
height
()
/
pixel_height
;
j
++
)
//-1 because display the pixels top rows left columns
{
for
(
int
i
=-
1
;
i
<
width
()
/
pixel_width
;
i
++
)
//-1
{
// Calculate top left of the pixel's position in the viewport (screen space)
...
...
@@ -3067,15 +3068,15 @@ void DefaultViewPort::drawImgRegion(QPainter *painter)
Qt
::
AlignCenter
,
val
);
}
}
}
painter
->
setPen
(
QPen
(
Qt
::
black
,
1
));
painter
->
drawLines
(
linesX
.
data
(),
linesX
.
size
());
painter
->
drawLines
(
linesY
.
data
(),
linesY
.
size
());
//restore font size
f
.
setPointSize
(
original_font_size
);
painter
->
setFont
(
f
);
painter
->
setPen
(
QPen
(
Qt
::
black
,
1
));
painter
->
drawLines
(
linesX
.
data
(),
linesX
.
size
());
painter
->
drawLines
(
linesY
.
data
(),
linesY
.
size
());
//restore font size
f
.
setPointSize
(
original_font_size
);
painter
->
setFont
(
f
);
}
void
DefaultViewPort
::
drawViewOverview
(
QPainter
*
painter
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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