blob: 06c998e1c154b62ff49265248f91ab8b601fb967 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef PDFAPPLICATION_H
#define PDFAPPLICATION_H
#include <QGuiApplication>
#include <QObject>
class PdfApplication : public QGuiApplication
{
public:
PdfApplication(int &argc, char **argv);
void setFileOpener(QObject *opener) {
m_fileOpener = opener;
}
protected:
bool event(QEvent *e) override;
QObject *m_fileOpener;
};
#endif // PDFAPPLICATION_H
|