mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-18 19:50:46 +00:00
Fix compilation issues
This commit is contained in:
parent
e16f6fd4d3
commit
dab3d76e3d
@ -178,9 +178,6 @@ void MainWindow::SetupGUI()
|
|||||||
m_restartRequired = false;
|
m_restartRequired = false;
|
||||||
// Initialize Status Bar objects
|
// 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() ;
|
init_reportModeUi() ;
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
@ -2415,6 +2412,9 @@ void MainWindow::on_statisticsButton_clicked()
|
|||||||
|
|
||||||
void MainWindow::init_reportModeUi()
|
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->statStartDate->blockSignals(true);
|
||||||
ui->statEndDate->blockSignals(true);
|
ui->statEndDate->blockSignals(true);
|
||||||
ui->statStartDate->calendarWidget()->setWeekdayTextFormat(Qt::Saturday, format);
|
ui->statStartDate->calendarWidget()->setWeekdayTextFormat(Qt::Saturday, format);
|
||||||
|
Loading…
Reference in New Issue
Block a user