mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-25 00:18:06 +03:00
Merge branch 'master' into 1.4
Conflicts: limereport/lrpreviewreportwindow.cpp limereport/lrpreviewreportwindow.h limereport/report.qrc
This commit is contained in:
@@ -83,6 +83,7 @@ PreviewReportWindow::PreviewReportWindow(ReportEnginePrivate *report,QWidget *pa
|
||||
connect(m_previewReportWidget, SIGNAL(scalePercentChanged(int)), this, SLOT(slotScalePercentChanged(int)));
|
||||
connect(m_scalePercent, SIGNAL(currentIndexChanged(QString)), this, SLOT(scaleComboboxChanged(QString)));
|
||||
restoreSetting();
|
||||
selectStateIcon();
|
||||
}
|
||||
|
||||
void PreviewReportWindow::writeSetting()
|
||||
@@ -151,7 +152,8 @@ void PreviewReportWindow::setErrorMessages(const QStringList &value){
|
||||
|
||||
void PreviewReportWindow::setToolBarVisible(bool value)
|
||||
{
|
||||
ui->toolBar->setVisible(value);
|
||||
ui->toolBar->setHidden(value);
|
||||
selectStateIcon();
|
||||
}
|
||||
|
||||
void PreviewReportWindow::setStatusBarVisible(bool value)
|
||||
@@ -242,6 +244,14 @@ void PreviewReportWindow::showEvent(QShowEvent *)
|
||||
m_fontEditor->setVisible(ui->actionEdit_Mode->isChecked());
|
||||
m_textAlignmentEditor->setVisible(ui->actionEdit_Mode->isChecked());
|
||||
}
|
||||
void PreviewReportWindow::selectStateIcon()
|
||||
{
|
||||
if (ui->toolBar->isHidden()){
|
||||
ui->actionShow_Toolbar->setIcon(QIcon(":/report/images/not_checked.png"));
|
||||
} else {
|
||||
ui->actionShow_Toolbar->setIcon(QIcon(":/report/images/checked.png"));
|
||||
}
|
||||
}
|
||||
|
||||
void PreviewReportWindow::slotPrint()
|
||||
{
|
||||
@@ -368,4 +378,13 @@ void PreviewReportWindow::on_actionShowMessages_toggled(bool value)
|
||||
m_previewReportWidget->setErrorsMesagesVisible(value);
|
||||
}
|
||||
|
||||
void PreviewReportWindow::on_actionShow_Toolbar_triggered()
|
||||
{
|
||||
setToolBarVisible(!ui->toolBar->isHidden());
|
||||
writeSetting();
|
||||
}
|
||||
|
||||
}// namespace LimeReport
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user