mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-25 08:28:06 +03:00
plugin finished
This commit is contained in:
@@ -3,29 +3,15 @@
|
||||
#include <QRect>
|
||||
#include "lrreportdesignwindow.h"
|
||||
|
||||
DesignerFactoryPlugin::~DesignerFactoryPlugin() {
|
||||
ReportDesignerFactoryPlugin::~ReportDesignerFactoryPlugin() {
|
||||
}
|
||||
|
||||
QString DesignerFactoryPlugin::getString() const {
|
||||
return "Hello, Plugin!";
|
||||
}
|
||||
|
||||
QVariant DesignerFactoryPlugin::getVar() const {
|
||||
return QRect( 10, 10, 500, 500 );
|
||||
}
|
||||
|
||||
QMainWindow* DesignerFactoryPlugin::getDesignerWindow(LimeReport::ReportEnginePrivateInterface* report, QWidget* parent, QSettings* settings)
|
||||
LimeReport::ReportDesignWindowInterface* ReportDesignerFactoryPlugin::getDesignerWindow(LimeReport::ReportEnginePrivateInterface* report, QWidget* parent, QSettings* settings)
|
||||
{
|
||||
LimeReport::ReportDesignWindow* designerWindow = new LimeReport::ReportDesignWindow(report, parent, settings);
|
||||
|
||||
settings->beginGroup("DesignerWindow");
|
||||
designerWindow->setAttribute(Qt::WA_DeleteOnClose,true);
|
||||
designerWindow->setWindowIcon(QIcon(":report/images/logo32"));
|
||||
designerWindow->setShowProgressDialog(settings->value("showProgressDialog").toBool());
|
||||
settings->endGroup();
|
||||
|
||||
return designerWindow;
|
||||
return new LimeReport::ReportDesignWindow(report, parent, settings);
|
||||
}
|
||||
|
||||
//Q_EXPORT_PLUGIN2( LimeReportPluginInterface, DesignerFactoryPlugin )
|
||||
#if QT_VERSION < 0x050000
|
||||
Q_EXPORT_PLUGIN2( LimeReportPluginInterface, DesignerFactoryPlugin )
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user