Fixed holidays not showing up #44
This commit is contained in:
@@ -108,7 +108,7 @@ void ReportsWidget::finished()
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
static QRegularExpression regex(QStringLiteral("Urlaubsanspruch +([0-9]+\\.[0-9]+\\-?) +([0-9]+\\.[0-9]+\\-?)"));
|
static QRegularExpression regex(QStringLiteral("Urlaubsanspruch +(\\-?[0-9]+\\.[0-9]+) +(\\-?[0-9]+\\.[0-9]+)"));
|
||||||
auto match = regex.match(content);
|
auto match = regex.match(content);
|
||||||
if(match.hasMatch())
|
if(match.hasMatch())
|
||||||
m_labelHolidays->setText(tr("%0: %1").arg(tr("Holidays")).arg(match.captured(2)));
|
m_labelHolidays->setText(tr("%0: %1").arg(tr("Holidays")).arg(match.captured(2)));
|
||||||
|
Reference in New Issue
Block a user