Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/reconciliationreport/kreconciliationreportdlg.h
Show All 15 Lines | |||||
16 | * * | 16 | * * | ||
17 | * You should have received a copy of the GNU General Public License * | 17 | * You should have received a copy of the GNU General Public License * | ||
18 | * along with this program. If not, see <http://www.gnu.org/licenses/> * | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/> * | ||
19 | ***************************************************************************/ | 19 | ***************************************************************************/ | ||
20 | 20 | | |||
21 | #ifndef KRECONCILIATIONREPORTDLG_H | 21 | #ifndef KRECONCILIATIONREPORTDLG_H | ||
22 | #define KRECONCILIATIONREPORTDLG_H | 22 | #define KRECONCILIATIONREPORTDLG_H | ||
23 | 23 | | |||
24 | #include <QtWebEngineWidgets/QWebEngineView> | ||||
25 | #include "config-kmymoney.h" | ||||
26 | | ||||
24 | #include "ui_kreconciliationreportdlgdecl.h" | 27 | #include "ui_kreconciliationreportdlgdecl.h" | ||
25 | 28 | | |||
26 | class KHTMLPart; | 29 | class KHTMLPart; | ||
27 | 30 | | |||
28 | class KReportDlg : public QDialog, public Ui::KReconciliationReportDlgDecl | 31 | class KReportDlg : public QDialog, public Ui::KReconciliationReportDlgDecl | ||
29 | { | 32 | { | ||
30 | Q_OBJECT | 33 | Q_OBJECT | ||
31 | 34 | | |||
32 | public: | 35 | public: | ||
33 | KReportDlg(QWidget* parent, const QString& summaryReportHTML, const QString& detailsReportHTML); | 36 | KReportDlg(QWidget* parent, const QString& summaryReportHTML, const QString& detailsReportHTML); | ||
34 | ~KReportDlg(); | 37 | ~KReportDlg(); | ||
35 | 38 | | |||
36 | protected slots: | 39 | protected slots: | ||
37 | void print(); | 40 | void print(); | ||
41 | #ifdef KF5KHtml_FOUND | ||||
42 | void handleHTML(const QString &sHTML); | ||||
43 | #endif | ||||
38 | 44 | | |||
39 | private: | 45 | private: | ||
40 | KHTMLPart* m_summaryHTMLPart; | 46 | QWebEngineView *m_summaryHTMLPart; | ||
41 | KHTMLPart* m_detailsHTMLPart; | 47 | QWebEngineView *m_detailsHTMLPart; | ||
48 | QPrinter *m_currentPrinter; | ||||
49 | signals: | ||||
50 | #ifdef KF5KHtml_FOUND | ||||
51 | void getHTML(QString sHTML); | ||||
52 | #endif | ||||
42 | }; | 53 | }; | ||
43 | 54 | | |||
44 | #endif | 55 | #endif |