home/dshil/dev/tagberry-qt/src/widgets/CalendarCell.cpp:77:41: error: ‘static QString QDate::shortMonthName(int, QDate::MonthNameType)’ is deprecated: Use QLocale::monthName or QLocale::standaloneMonthName [-Werror=deprecated-declarations]
77 | m_month.setText(month >= 1 ? QDate::shortMonthName(month) : "");
| ^~~~~~~~~~~~~~
In file included from /usr/include/qt/QtCore/QDate:1,
from /home/dshil/dev/tagberry-qt/src/widgets/CalendarCell.cpp:13:
/usr/include/qt/QtCore/qdatetime.h:86:24: note: declared here
86 | static QString shortMonthName(int month, MonthNameType type = DateFormat);
| ^~~~~~~~~~~~~~
/home/dshil/dev/tagberry-qt/src/widgets/CalendarCell.cpp:77:61: error: ‘static QString QDate::shortMonthName(int, QDate::MonthNameType)’ is deprecated: Use QLocale::monthName or QLocale::standaloneMonthName [-Werror=deprecated-declarations]
77 | m_month.setText(month >= 1 ? QDate::shortMonthName(month) : "");
| ^
In file included from /usr/include/qt/QtCore/QDate:1,
from /home/dshil/dev/tagberry-qt/src/widgets/CalendarCell.cpp:13:
/usr/include/qt/QtCore/qdatetime.h:86:24: note: declared here
86 | static QString shortMonthName(int month, MonthNameType type = DateFormat);
| ^~~~~~~~~~~~~~
/home/dshil/dev/tagberry-qt/src/widgets/CalendarCell.cpp:77:61: error: ‘static QString QDate::shortMonthName(int, QDate::MonthNameType)’ is deprecated: Use QLocale::monthName or QLocale::standaloneMonthName [-Werror=deprecated-declarations]
77 | m_month.setText(month >= 1 ? QDate::shortMonthName(month) : "");
| ^
In file included from /usr/include/qt/QtCore/QDate:1,
from /home/dshil/dev/tagberry-qt/src/widgets/CalendarCell.cpp:13:
/usr/include/qt/QtCore/qdatetime.h:86:24: note: declared here
86 | static QString shortMonthName(int month, MonthNameType type = DateFormat);
| ^~~~~~~~~~~~~~
/home/dshil/dev/tagberry-qt/src/widgets/CalendarSwitch.cpp: In function ‘int tagberry::widgets::{anonymous}::editWidth(int)’:
/home/dshil/dev/tagberry-qt/src/widgets/CalendarSwitch.cpp:30:27: error: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Werror=deprecated-declarations]
30 | return metrics.width(s);
| ^
In file included from /usr/include/qt/QtWidgets/qwidget.h:50,
from /usr/include/qt/QtWidgets/qframe.h:44,
from /usr/include/qt/QtWidgets/qlineedit.h:44,
from /usr/include/qt/QtWidgets/QLineEdit:1,
from /home/dshil/dev/tagberry-qt/src/widgets/CalendarSwitch.hpp:13,
from /home/dshil/dev/tagberry-qt/src/widgets/CalendarSwitch.cpp:10:
/usr/include/qt/QtGui/qfontmetrics.h:108:9: note: declared here
108 | int width(const QString &, int len = -1) const;
| ^~~~~
/home/dshil/dev/tagberry-qt/src/widgets/CalendarSwitch.cpp: In function ‘QStringList tagberry::widgets::{anonymous}::monthNames()’:
/home/dshil/dev/tagberry-qt/src/widgets/CalendarSwitch.cpp:52:27: error: ‘static QString QDate::longMonthName(int, QDate::MonthNameType)’ is deprecated: Use QLocale::monthName or QLocale::standaloneMonthName [-Werror=deprecated-declarations]
52 | ret.append(QDate::longMonthName(month));
| ^~~~~~~~~~~~~
In file included from /usr/include/qt/QtCore/QDate:1,
from /home/dshil/dev/tagberry-qt/src/widgets/CalendarSwitch.cpp:13:
/usr/include/qt/QtCore/qdatetime.h:90:24: note: declared here
90 | static QString longMonthName(int month, MonthNameType type = DateFormat);
| ^~~~~~~~~~~~~
/home/dshil/dev/tagberry-qt/src/widgets/CalendarSwitch.cpp:52:46: error: ‘static QString QDate::longMonthName(int, QDate::MonthNameType)’ is deprecated: Use QLocale::monthName or QLocale::standaloneMonthName [-Werror=deprecated-declarations]
52 | ret.append(QDate::longMonthName(month));
| ^
In file included from /usr/include/qt/QtCore/QDate:1,
from /home/dshil/dev/tagberry-qt/src/widgets/CalendarSwitch.cpp:13:
/usr/include/qt/QtCore/qdatetime.h:90:24: note: declared here
90 | static QString longMonthName(int month, MonthNameType type = DateFormat);
| ^~~~~~~~~~~~~
/home/dshil/dev/tagberry-qt/src/widgets/CalendarSwitch.cpp:52:46: error: ‘static QString QDate::longMonthName(int, QDate::MonthNameType)’ is deprecated: Use QLocale::monthName or QLocale::standaloneMonthName [-Werror=deprecated-declarations]
52 | ret.append(QDate::longMonthName(month));
| ^
In file included from /usr/include/qt/QtCore/QDate:1,
from /home/dshil/dev/tagberry-qt/src/widgets/CalendarSwitch.cpp:13:
/usr/include/qt/QtCore/qdatetime.h:90:24: note: declared here
90 | static QString longMonthName(int month, MonthNameType type = DateFormat);
| ^~~~~~~~~~~~~
/home/dshil/dev/tagberry-qt/src/widgets/Calendar.cpp: In member function ‘void tagberry::widgets::Calendar::setWeekStart(Qt::DayOfWeek)’:
/home/dshil/dev/tagberry-qt/src/widgets/Calendar.cpp:95:37: error: ‘static QString QDate::shortDayName(int, QDate::MonthNameType)’ is deprecated: Use QLocale::dayName or QLocale::standaloneDayName [-Werror=deprecated-declarations]
95 | m_days[col]->setText(QDate::shortDayName((day + col - 1) % NumDays + 1));
| ^~~~~~~~~~~~
In file included from /usr/include/qt/QtCore/QDate:1,
from /home/dshil/dev/tagberry-qt/src/widgets/Calendar.hpp:16,
from /home/dshil/dev/tagberry-qt/src/widgets/Calendar.cpp:10:
/usr/include/qt/QtCore/qdatetime.h:88:24: note: declared here
88 | static QString shortDayName(int weekday, MonthNameType type = DateFormat);
| ^~~~~~~~~~~~
/home/dshil/dev/tagberry-qt/src/widgets/Calendar.cpp:95:79: error: ‘static QString QDate::shortDayName(int, QDate::MonthNameType)’ is deprecated: Use QLocale::dayName or QLocale::standaloneDayName [-Werror=deprecated-declarations]
95 | m_days[col]->setText(QDate::shortDayName((day + col - 1) % NumDays + 1));
| ^
In file included from /usr/include/qt/QtCore/QDate:1,
from /home/dshil/dev/tagberry-qt/src/widgets/Calendar.hpp:16,
from /home/dshil/dev/tagberry-qt/src/widgets/Calendar.cpp:10:
/usr/include/qt/QtCore/qdatetime.h:88:24: note: declared here
88 | static QString shortDayName(int weekday, MonthNameType type = DateFormat);
| ^~~~~~~~~~~~
/home/dshil/dev/tagberry-qt/src/widgets/Calendar.cpp:95:79: error: ‘static QString QDate::shortDayName(int, QDate::MonthNameType)’ is deprecated: Use QLocale::dayName or QLocale::standaloneDayName [-Werror=deprecated-declarations]
95 | m_days[col]->setText(QDate::shortDayName((day + col - 1) % NumDays + 1));
| ^
In file included from /usr/include/qt/QtCore/QDate:1,
from /home/dshil/dev/tagberry-qt/src/widgets/Calendar.hpp:16,
from /home/dshil/dev/tagberry-qt/src/widgets/Calendar.cpp:10:
/usr/include/qt/QtCore/qdatetime.h:88:24: note: declared here
88 | static QString shortDayName(int weekday, MonthNameType type = DateFormat);
| ^~~~~~~~~~~~
/home/dshil/dev/tagberry-qt/src/widgets/TagLabel.cpp: In member function ‘void tagberry::widgets::TagLabel::updateSizes()’:
/home/dshil/dev/tagberry-qt/src/widgets/TagLabel.cpp:174:39: error: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Werror=deprecated-declarations]
174 | m_indicatorWidth = metrics.width(s);
| ^
In file included from /usr/include/qt/QtWidgets/qwidget.h:50,
from /usr/include/qt/QtWidgets/qframe.h:44,
from /usr/include/qt/QtWidgets/qlineedit.h:44,
from /usr/include/qt/QtWidgets/QLineEdit:1,
from /home/dshil/dev/tagberry-qt/src/widgets/TagLabel.hpp:14,
from /home/dshil/dev/tagberry-qt/src/widgets/TagLabel.cpp:10:
/usr/include/qt/QtGui/qfontmetrics.h:108:9: note: declared here
108 | int width(const QString &, int len = -1) const;
| ^~~~~
/home/dshil/dev/tagberry-qt/src/widgets/TagLabel.cpp:176:40: error: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Werror=deprecated-declarations]
176 | const int lw = metrics.width(m_text) + 2 * m_hPad + m_hMargin + m_cursorWidth;