mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-08 04:00:44 +00:00
Fix compilation issues
This commit is contained in:
parent
e16f6fd4d3
commit
dab3d76e3d
@ -178,9 +178,6 @@ void MainWindow::SetupGUI()
|
||||
m_restartRequired = false;
|
||||
// Initialize Status Bar objects
|
||||
|
||||
QTextCharFormat format = ui->statStartDate->calendarWidget()->weekdayTextFormat(Qt::Saturday);
|
||||
format.setForeground(QBrush(Qt::black, Qt::SolidPattern));
|
||||
Qt::DayOfWeek dow=firstDayOfWeekFromLocale();
|
||||
init_reportModeUi() ;
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
@ -2415,6 +2412,9 @@ void MainWindow::on_statisticsButton_clicked()
|
||||
|
||||
void MainWindow::init_reportModeUi()
|
||||
{
|
||||
QTextCharFormat format = ui->statStartDate->calendarWidget()->weekdayTextFormat(Qt::Saturday);
|
||||
format.setForeground(QBrush(Qt::black, Qt::SolidPattern));
|
||||
Qt::DayOfWeek dow=firstDayOfWeekFromLocale();
|
||||
ui->statStartDate->blockSignals(true);
|
||||
ui->statEndDate->blockSignals(true);
|
||||
ui->statStartDate->calendarWidget()->setWeekdayTextFormat(Qt::Saturday, format);
|
||||
|
Loading…
Reference in New Issue
Block a user