First upload, 18 controller version
This commit is contained in:
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user