[KPhotoAlbum] Stack of new warnings

Robert Krawitz rlk at alum.mit.edu
Mon Dec 18 02:38:15 GMT 2017


/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);
                        ^~~~~~~~~~~~~


-- 
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