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

Added the ability to change the background color of the preview page

This commit is contained in:
Arin Alexander
2019-02-18 15:16:55 +03:00
parent 4e91701387
commit b8900b1e96
10 changed files with 60 additions and 9 deletions

View File

@@ -29,6 +29,8 @@ public:
ScaleType scaleType() const;
int scalePercent() const;
void setScaleType(const ScaleType &scaleType, int percent = 0);
void setPreviewPageBackgroundColor(QColor color);
QColor previewPageBackgroundColor();
public slots:
void refreshPages();
void zoomIn();
@@ -67,7 +69,8 @@ private:
PreviewReportWidgetPrivate* d_ptr;
ScaleType m_scaleType;
int m_scalePercent;
QTimer m_resizeTimer;
QTimer m_resizeTimer;
QColor m_previewPageBackgroundColor;
};
} // namespace LimeReport

View File

@@ -107,6 +107,7 @@ public:
PreviewReportWidget *createPreviewWidget(QWidget *parent = 0);
void setPreviewWindowTitle(const QString& title);
void setPreviewWindowIcon(const QIcon& icon);
void setPreviewPageBackgroundColor(QColor color);
void setResultEditable(bool value);
bool resultIsEditable();
bool isBusy();