| 1 |
// SPDX-FileCopyrightText: 2019 - 2026 UnionTech Software Technology Co., Ltd. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: LGPL-3.0-or-later |
| 4 |
|
| 5 |
#include "dialog_stub.h" |
| 6 |
|
| 7 |
#include "dialog/dcalendarddialog.h" |
| 8 |
#include "dialog/myscheduleview.h" |
| 9 |
|
| 10 |
#include <QObject> |
| 11 |
|
| 12 |
int calendarDDialogExecReturn = 0; |
| 13 |
|
| 14 |
int calendar_DDialog_Exec_stub(void *obj) |
| 15 |
{ |
| 16 |
Q_UNUSED(obj) |
| 17 |
return calendarDDialogExecReturn; |
| 18 |
} |
| 19 |
void calendarDDialogExecStub(Stub &stub) |
| 20 |
{ |
| 21 |
typedef int (*fptr)(DDialog *); |
| 22 |
fptr A_foo = (fptr)(&DDialog::exec); |
| 23 |
stub.set(A_foo, calendar_DDialog_Exec_stub); |
| 24 |
|
| 25 |
typedef int (*fptr2)(QDialog *); |
| 26 |
fptr2 A_foo2 = (fptr2)(&QDialog::exec); |
| 27 |
stub.set(A_foo2, calendar_DDialog_Exec_stub); |
| 28 |
} |