Added reporting support- depends on LimeReport.
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
#ifndef REPORTVIEWER_H
|
||||
#define REPORTVIEWER_H
|
||||
|
||||
#include <QDialog>
|
||||
#include "report.h"
|
||||
|
||||
namespace Ui {
|
||||
class ReportViewer;
|
||||
}
|
||||
|
||||
namespace LimeReport {
|
||||
class PreviewReportWidget;
|
||||
class ReportEngine;
|
||||
}
|
||||
|
||||
class ReportViewer : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ReportViewer(QWidget *parent = 0);
|
||||
~ReportViewer();
|
||||
void setReport(ReportPtr report);
|
||||
void openPreview();
|
||||
|
||||
private slots:
|
||||
void on_btnClose_clicked();
|
||||
|
||||
void on_btnEdit_clicked();
|
||||
|
||||
void slotPageSet(int page);
|
||||
|
||||
private:
|
||||
Ui::ReportViewer *ui;
|
||||
|
||||
LimeReport::PreviewReportWidget *m_prevWidget;
|
||||
LimeReport::ReportEngine *m_report;
|
||||
};
|
||||
|
||||
#endif // REPORTVIEWER_H
|
||||
Reference in New Issue
Block a user