0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-09-23 08:29:07 +03:00

Multi printers print process has been added

This commit is contained in:
Arin Alexander
2019-02-06 23:48:52 +03:00
parent d85b8bbd87
commit 362c7217f3
7 changed files with 167 additions and 79 deletions

View File

@@ -37,6 +37,7 @@
#include <LRCallbackDS>
#include <QDebug>
#include <QStringListModel>
#include <QPrinter>
#ifdef BUILD_WITH_EASY_PROFILER
#include "easy/profiler.h"
@@ -148,6 +149,13 @@ void MainWindow::on_pushButton_2_clicked()
#ifdef BUILD_WITH_EASY_PROFILER
profiler::dumpBlocksToFile("test.prof");
#endif
// QPrinter* printer = new QPrinter;
// QPrintDialog dialog(printer);
// if (dialog.exec()){
// QMap<QString, QPrinter*> printers;
// printers.insert("default",printer);
// report->printReport(printers);
// }
report->previewReport();
}
}