Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F40366730
w32-qt-util.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
691 B
Subscribers
None
w32-qt-util.cpp
View Options
/* Copyright (C) 2018 by Andre Heinecke <aheinecke@gnupg.com>
*
* This file is free software under the GNU GPL (v>=2)
* and comes with ABSOLUTELY NO WARRANTY!
* See LICENSE.txt for details.
*/
#include
<QWidget>
#include
<QWindow>
#include
"w32-qt-util.h"
void
W32
::
setupForeignParent
(
WId
id
,
QWidget
*
widget
,
bool
modal
)
{
if
(
!
widget
||
!
id
)
{
return
;
}
auto
foreignWindow
=
QWindow
::
fromWinId
(
id
);
widget
->
winId
();
auto
parentHandle
=
widget
->
windowHandle
();
if
(
parentHandle
&&
foreignWindow
)
{
parentHandle
->
setTransientParent
(
foreignWindow
);
if
(
modal
)
{
widget
->
setWindowModality
(
Qt
::
WindowModal
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Apr 14, 9:24 PM (3 h, 48 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d6/81/9d07a5515122ccee71261153e6da
Attached To
rGTO Gpg4win-Tools
Event Timeline
Log In to Comment