0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 00:18:06 +03:00

Fix #46 Allow to customize the Preview dialog

hints (ShowAllPreviewBars, HidePreviewToolBar, HidePreviewMenuBar, HidePreviewStatusBar, HideAllPreviewBar) have been added to preview method
This commit is contained in:
Arin Alex
2016-08-02 22:33:33 +03:00
parent c52a0240c6
commit 7ce974090e
8 changed files with 46 additions and 9 deletions

View File

@@ -136,6 +136,21 @@ void PreviewReportWindow::setErrorMessages(const QStringList &value){
m_previewReportWidget->setErrorMessages(value);
}
void PreviewReportWindow::setToolBarVisible(bool value)
{
ui->toolBar->setVisible(value);
}
void PreviewReportWindow::setStatusBarVisible(bool value)
{
ui->statusbar->setVisible(value);
}
void PreviewReportWindow::setMenuVisible(bool value)
{
ui->menubar->setVisible(value);
}
QSettings*PreviewReportWindow::settings()
{
if (m_settings){
@@ -312,4 +327,4 @@ void PreviewReportWindow::on_actionShowMessages_toggled(bool value)
m_previewReportWidget->setErrorsMesagesVisible(value);
}
}// namespace LimeReport
}// namespace LimeReport