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
d7ac4495
Commit
d7ac4495
authored
Sep 11, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
highgui: fix QT build
parent
492ef145
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
window.cpp
modules/highgui/src/window.cpp
+6
-6
No files found.
modules/highgui/src/window.cpp
View file @
d7ac4495
...
...
@@ -469,23 +469,23 @@ CV_IMPL void cvUpdateWindow(const char*)
cv
::
QtFont
cv
::
fontQt
(
const
String
&
nameFont
,
int
pointSize
,
Scalar
color
,
int
weight
,
int
style
,
int
spacing
)
{
CvFont
f
=
cvFontQt
(
nameFont
.
c_str
(),
pointSize
,
color
,
weight
,
style
,
spacing
);
CvFont
f
=
cvFontQt
(
nameFont
.
c_str
(),
pointSize
,
cvScalar
(
color
),
weight
,
style
,
spacing
);
void
*
pf
=
&
f
;
// to suppress strict-aliasing
return
*
(
cv
::
QtFont
*
)
pf
;
}
void
cv
::
addText
(
const
Mat
&
img
,
const
String
&
text
,
Point
org
,
const
QtFont
&
font
)
{
CvMat
_img
=
img
;
cvAddText
(
&
_img
,
text
.
c_str
(),
org
,
(
CvFont
*
)
&
font
);
CvMat
_img
=
cvMat
(
img
)
;
cvAddText
(
&
_img
,
text
.
c_str
(),
cvPoint
(
org
)
,
(
CvFont
*
)
&
font
);
}
void
cv
::
addText
(
const
Mat
&
img
,
const
String
&
text
,
Point
org
,
const
String
&
nameFont
,
int
pointSize
,
Scalar
color
,
int
weight
,
int
style
,
int
spacing
)
{
CvFont
f
=
cvFontQt
(
nameFont
.
c_str
(),
pointSize
,
color
,
weight
,
style
,
spacing
);
CvMat
_img
=
img
;
cvAddText
(
&
_img
,
text
.
c_str
(),
org
,
&
f
);
CvFont
f
=
cvFontQt
(
nameFont
.
c_str
(),
pointSize
,
cvScalar
(
color
),
weight
,
style
,
spacing
);
CvMat
_img
=
cvMat
(
img
)
;
cvAddText
(
&
_img
,
text
.
c_str
(),
cvPoint
(
org
)
,
&
f
);
}
void
cv
::
displayStatusBar
(
const
String
&
name
,
const
String
&
text
,
int
delayms
)
...
...
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