Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
a8d94208
Commit
a8d94208
authored
Mar 11, 2016
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable hiding OSK on Windows
parent
214764dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
UBPlatformUtils_win.cpp
src/frameworks/UBPlatformUtils_win.cpp
+15
-7
No files found.
src/frameworks/UBPlatformUtils_win.cpp
View file @
a8d94208
...
...
@@ -439,11 +439,19 @@ void UBPlatformUtils::showFullScreen(QWidget *pWidget)
void
UBPlatformUtils
::
showOSK
(
bool
show
)
{
Q_UNUSED
(
show
);
QString
windir
=
qgetenv
(
"WINDIR"
);
QString
osk_path
=
windir
+
"
\\
System32
\\
osk.exe"
;
QProcess
newProcess
;
newProcess
.
startDetached
(
"explorer.exe"
,
QStringList
()
<<
osk_path
);
if
(
show
)
{
QString
windir
=
qgetenv
(
"WINDIR"
);
QString
osk_path
=
windir
+
"
\\
System32
\\
osk.exe"
;
QProcess
oskProcess
;
// We have to pass by explorer.exe because osk.exe can only be launched
// directly with administrator rights
oskProcess
.
startDetached
(
"explorer.exe"
,
QStringList
()
<<
osk_path
);
}
else
{
HWND
oskWindow
=
::
FindWindow
(
TEXT
(
"OSKMainClass"
),
NULL
);
if
(
oskWindow
)
PostMessage
(
oskWindow
,
WM_SYSCOMMAND
,
SC_CLOSE
,
0
);
}
}
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