[KPhotoAlbum] Stack of new warnings

Robert Krawitz rlk at alum.mit.edu
Tue Dec 19 00:01:19 CET 2017


On Mon, 18 Dec 2017 22:41:24 +0100, Johannes Zarl-Zierl wrote:
> Hi Robert,
>
> I take it that this is coming from Qt 5.10?

Yep.

> 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); ^~~~~~~~~~~~~
>
>
> _______________________________________________
> KPhotoAlbum mailing list
> KPhotoAlbum at mail.kdab.com
> https://mail.kdab.com/mailman/listinfo/kphotoalbum


-- 
Robert Krawitz                                     <rlk at alum.mit.edu>

***  MIT Engineers   A Proud Tradition   http://mitathletics.com  ***
Member of the League for Programming Freedom  --  http://ProgFree.org
Project lead for Gutenprint   --    http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton


More information about the KPhotoAlbum mailing list