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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user