blob: 39672c62a1a4005ceeba02af29c1877aec9b61ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
// @snippet setpagesize
bool out = %CPPSELF.setPageSize(%1);
%PYARG_0 = %CONVERTTOPYTHON[bool](out);
// @snippet setpagesize
// @snippet exec
if (PyErr_WarnEx(PyExc_DeprecationWarning,
"'exec_' will be removed in the future. "
"Use 'exec' instead.",
1)) {
return nullptr;
}
%BEGIN_ALLOW_THREADS
int cppResult = %CPPSELF.exec();
%END_ALLOW_THREADS
%PYARG_0 = %CONVERTTOPYTHON[int](cppResult);
// @snippet exec
|