[KPhotoAlbum] Stack of new warnings

Johannes Zarl-Zierl johannes at zarl-zierl.at
Mon Dec 18 21:41:24 GMT 2017


Hi Robert,

I take it that this is coming from Qt 5.10?

Cheers,
  Johannes


On Sonntag, 17. Dezember 2017 21:38:15 CET Robert Krawitz wrote:
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp: In member function ‘QString
> DB::ImageDate::toString(bool) const’:
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:106:67: warning: ‘static
> QString QDate::shortMonthName(int, QDate::MonthNameType)’ is deprecated:
> Use QLocale::monthName or QLocale::standaloneMonthName
> [-Wdeprecated-declarations] return QString::fromLatin1( "%1 %2" ).arg(
> QDate::shortMonthName(m_start.date().month()) ).arg(m_start.date().year()
> ); ^~~~~~~~~~~~~~ In file included from
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.h:22:0, from
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:19:
> /usr/include/qt5/QtCore/qdatetime.h:86:24: note: declared here
>          static QString shortMonthName(int month, MonthNameType type =
> DateFormat); ^~~~~~~~~~~~~~
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:106:104: warning: ‘static
> QString QDate::shortMonthName(int, QDate::MonthNameType)’ is deprecated:
> Use QLocale::monthName or QLocale::standaloneMonthName
> [-Wdeprecated-declarations] return QString::fromLatin1( "%1 %2" ).arg(
> QDate::shortMonthName(m_start.date().month()) ).arg(m_start.date().year()
> ); ^ In file included from
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.h:22:0, from
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:19:
> /usr/include/qt5/QtCore/qdatetime.h:86:24: note: declared here
>          static QString shortMonthName(int month, MonthNameType type =
> DateFormat); ^~~~~~~~~~~~~~
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:110:75: warning: ‘static
> QString QDate::shortMonthName(int, QDate::MonthNameType)’ is deprecated:
> Use QLocale::monthName or QLocale::standaloneMonthName
> [-Wdeprecated-declarations] return QString::fromLatin1( "%1 %2 - %3 %4"
> ).arg( QDate::shortMonthName(m_start.date().month())
> ).arg(m_start.date().year() ) ^~~~~~~~~~~~~~ In file included from
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.h:22:0, from
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:19:
> /usr/include/qt5/QtCore/qdatetime.h:86:24: note: declared here
>          static QString shortMonthName(int month, MonthNameType type =
> DateFormat); ^~~~~~~~~~~~~~
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:110:112: warning: ‘static
> QString QDate::shortMonthName(int, QDate::MonthNameType)’ is deprecated:
> Use QLocale::monthName or QLocale::standaloneMonthName
> [-Wdeprecated-declarations] return QString::fromLatin1( "%1 %2 - %3 %4"
> ).arg( QDate::shortMonthName(m_start.date().month())
> ).arg(m_start.date().year() ) ^ In file included from
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.h:22:0, from
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:19:
> /usr/include/qt5/QtCore/qdatetime.h:86:24: note: declared here
>          static QString shortMonthName(int month, MonthNameType type =
> DateFormat); ^~~~~~~~~~~~~~
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:111:34: warning: ‘static
> QString QDate::shortMonthName(int, QDate::MonthNameType)’ is deprecated:
> Use QLocale::monthName or QLocale::standaloneMonthName
> [-Wdeprecated-declarations] .arg( QDate::shortMonthName(
> m_end.date().month() ) ).arg( m_end.date().year() ); ^~~~~~~~~~~~~~
> In file included from /home/rlk/sandbox/kphotoalbum/DB/ImageDate.h:22:0,
>                  from /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:19:
> /usr/include/qt5/QtCore/qdatetime.h:86:24: note: declared here
>          static QString shortMonthName(int month, MonthNameType type =
> DateFormat); ^~~~~~~~~~~~~~
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:111:71: warning: ‘static
> QString QDate::shortMonthName(int, QDate::MonthNameType)’ is deprecated:
> Use QLocale::monthName or QLocale::standaloneMonthName
> [-Wdeprecated-declarations] .arg( QDate::shortMonthName(
> m_end.date().month() ) ).arg( m_end.date().year() ); ^ In file included
> from /home/rlk/sandbox/kphotoalbum/DB/ImageDate.h:22:0, from
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:19:
> /usr/include/qt5/QtCore/qdatetime.h:86:24: note: declared here
>          static QString shortMonthName(int month, MonthNameType type =
> DateFormat); ^~~~~~~~~~~~~~
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp: In static member function
> ‘static QStringList DB::ImageDate::monthNames()’:
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:342:27: warning: ‘static
> QString QDate::shortMonthName(int, QDate::MonthNameType)’ is deprecated:
> Use QLocale::monthName or QLocale::standaloneMonthName
> [-Wdeprecated-declarations] res << QDate::shortMonthName( i );
>                            ^~~~~~~~~~~~~~
> In file included from /home/rlk/sandbox/kphotoalbum/DB/ImageDate.h:22:0,
>                  from /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:19:
> /usr/include/qt5/QtCore/qdatetime.h:86:24: note: declared here
>          static QString shortMonthName(int month, MonthNameType type =
> DateFormat); ^~~~~~~~~~~~~~
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:342:45: warning: ‘static
> QString QDate::shortMonthName(int, QDate::MonthNameType)’ is deprecated:
> Use QLocale::monthName or QLocale::standaloneMonthName
> [-Wdeprecated-declarations] res << QDate::shortMonthName( i );
>                                              ^
> In file included from /home/rlk/sandbox/kphotoalbum/DB/ImageDate.h:22:0,
>                  from /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:19:
> /usr/include/qt5/QtCore/qdatetime.h:86:24: note: declared here
>          static QString shortMonthName(int month, MonthNameType type =
> DateFormat); ^~~~~~~~~~~~~~
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:345:27: warning: ‘static
> QString QDate::longMonthName(int, QDate::MonthNameType)’ is deprecated: Use
> QLocale::monthName or QLocale::standaloneMonthName
> [-Wdeprecated-declarations] res << QDate::longMonthName( i );
>                            ^~~~~~~~~~~~~
> In file included from /home/rlk/sandbox/kphotoalbum/DB/ImageDate.h:22:0,
>                  from /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:19:
> /usr/include/qt5/QtCore/qdatetime.h:90:24: note: declared here
>          static QString longMonthName(int month, MonthNameType type =
> DateFormat); ^~~~~~~~~~~~~
> /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:345:44: warning: ‘static
> QString QDate::longMonthName(int, QDate::MonthNameType)’ is deprecated: Use
> QLocale::monthName or QLocale::standaloneMonthName
> [-Wdeprecated-declarations] res << QDate::longMonthName( i );
>                                             ^
> In file included from /home/rlk/sandbox/kphotoalbum/DB/ImageDate.h:22:0,
>                  from /home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:19:
> /usr/include/qt5/QtCore/qdatetime.h:90:24: note: declared here
>          static QString longMonthName(int month, MonthNameType type =
> DateFormat); ^~~~~~~~~~~~~





More information about the Kphotoalbum mailing list