Added reporting support- depends on LimeReport.
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
|
||||
#include "context.h"
|
||||
#include "filterui.h"
|
||||
#include "iplugin.h"
|
||||
#include "reporting/reportdialog.h"
|
||||
|
||||
IGridForm::IGridForm(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
@@ -140,3 +142,15 @@ void IGridForm::on_tableView_clicked(const QModelIndex &index)
|
||||
ui->btnDelete->setEnabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
void IGridForm::on_btnPrint_clicked()
|
||||
{
|
||||
/*ReportViewer *viewer = new ReportViewer(this);
|
||||
viewer->setAttribute(Qt::WA_DeleteOnClose);
|
||||
viewer->showMaximized();*/
|
||||
|
||||
ReportDialog *dialog = new ReportDialog(this);
|
||||
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||
dialog->setReports(Context::instance().plugin(pluginId())->reports());
|
||||
dialog->show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user