Discussion:
[KPhotoAlbum] Stack of new warnings
Robert Krawitz
2017-12-18 02:38:15 UTC
Permalink
/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 <***@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
Johannes Zarl-Zierl
2017-12-18 21:41:24 UTC
Permalink
Hi Robert,

I take it that this is coming from Qt 5.10?

Cheers,
Johannes
Post by Robert Krawitz
/home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp: In member function ‘QString
/home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:106:67: warning: ‘static
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
/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
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
/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
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
/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
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
/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
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,
/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
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
/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
/home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:342:27: warning: ‘static
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,
/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
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,
/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,
/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,
/usr/include/qt5/QtCore/qdatetime.h:90:24: note: declared here
static QString longMonthName(int month, MonthNameType type =
DateFormat); ^~~~~~~~~~~~~
Robert Krawitz
2017-12-18 23:01:19 UTC
Permalink
Post by Johannes Zarl-Zierl
Hi Robert,
I take it that this is coming from Qt 5.10?
Yep.
Post by Johannes Zarl-Zierl
Post by Robert Krawitz
/home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp: In member function ‘QString
/home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:106:67: warning: ‘static
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
/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
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
/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
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
/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
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
/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
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,
/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
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
/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
/home/rlk/sandbox/kphotoalbum/DB/ImageDate.cpp:342:27: warning: ‘static
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,
/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
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,
/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,
/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,
/usr/include/qt5/QtCore/qdatetime.h:90:24: note: declared here
static QString longMonthName(int month, MonthNameType type > DateFormat); ^~~~~~~~~~~~~
_______________________________________________
KPhotoAlbum mailing list
https://mail.kdab.com/mailman/listinfo/kphotoalbum
--
Robert Krawitz <***@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
Johannes Zarl-Zierl
2017-12-18 23:10:23 UTC
Permalink
Post by Johannes Zarl-Zierl
I take it that this is coming from Qt 5.10?
Yep.
…then I'll take patches or fix the warnings myself once Qt 5.10 hits Debian
unstable.

Cheers,
Johannes

Loading...