When I try an application on Fedora 33 QT 5.15.1 I get this error:
../src/model/TransactionHistorySortFilterModel.cpp: In member function ‘virtual bool TransactionHistorySortFilterModel::filterAcceptsRow(int, const QModelIndex&) const’: ../src/model/TransactionHistorySortFilterModel.cpp:207:60: error: ‘QDateTime::QDateTime(const QDate&)’ is deprecated: Use QDate::startOfDay() [-Werror=deprecated-declarations] 207 | QDateTime from = QDateTime(dateFromFilter()); | ^ In file included from /usr/include/qt5/QtCore/QDateTime:1, from ../src/libwalletqt/TransactionInfo.h:34, from ../src/model/TransactionHistorySortFilterModel.h:32, from ../src/model/TransactionHistorySortFilterModel.cpp:29: /usr/include/qt5/QtCore/qdatetime.h:298:57: note: declared here 298 | QT_DEPRECATED_X("Use QDate::startOfDay()") explicit QDateTime(const QDate &); | ^~~~~~~~~
I'm not a cpp programmer and I do not know how to modify the deprecated function whit the proposed solution.
Someone can help me?
Many thanks
On Thu, 5 Nov 2020 at 08:45, Dario Lesca d.lesca@solinos.it wrote:
When I try an application on Fedora 33 QT 5.15.1 I get this error:
Is this application part of Fedora 33 or from 3rd party?
../src/model/TransactionHistorySortFilterModel.cpp: In member function ‘virtual bool TransactionHistorySortFilterModel::filterAcceptsRow(int, const QModelIndex&) const’: ../src/model/TransactionHistorySortFilterModel.cpp:207:60: error: ‘QDateTime::QDateTime(const QDate&)’ is deprecated: Use QDate::startOfDay() [-Werror=deprecated-declarations] 207 | QDateTime from = QDateTime(dateFromFilter()); | ^ In file included from /usr/include/qt5/QtCore/QDateTime:1, from ../src/libwalletqt/TransactionInfo.h:34, from ../src/model/TransactionHistorySortFilterModel.h:32, from ../src/model/TransactionHistorySortFilterModel.cpp:29: /usr/include/qt5/QtCore/qdatetime.h:298:57: note: declared here 298 | QT_DEPRECATED_X("Use QDate::startOfDay()") explicit QDateTime(const QDate &); | ^~~~~~~~~
I'm not a cpp programmer and I do not know how to modify the deprecated function whit the proposed solution.
Someone can help me?
For problems like this it is best to report "upstream" so other users won't be meeting the same issue. For a Fedora application, file a bugzilla report, otherwise, contact the developer. If the application is orphaned you may want to look for another app that satisfies your requirements and has upstream support.
Il giorno gio, 05/11/2020 alle 08.57 -0400, George N. White III ha scritto:
Is this application part of Fedora 33 or from 3rd party?
No, it's a third part application download from git and build from source.
For problems like this it is best to report "upstream" so other users won't be meeting the same issue. For a Fedora application, file a bugzilla report, otherwise, contact the developer. If the application is orphaned you may want to look for another app that satisfies your requirements and has upstream support.
This is not a Fedora application, I have try write here hoping to found a simple suggest how to change the deprecate function with new one method
Now I try to write on git to upstream support.
Many Thanks
On Thu, 2020-11-05 at 14:48 +0100, Dario Lesca wrote:
Il giorno gio, 05/11/2020 alle 08.57 -0400, George N. White III ha scritto:
Is this application part of Fedora 33 or from 3rd party?
No, it's a third part application download from git and build from source.
For problems like this it is best to report "upstream" so other users won't be meeting the same issue. For a Fedora application, file a bugzilla report, otherwise, contact the developer. If the application is orphaned you may want to look for another app that satisfies your requirements and has upstream support.
This is not a Fedora application, I have try write here hoping to found a simple suggest how to change the deprecate function with new one method
Now I try to write on git to upstream support.
Since it's a QT app, you might have better luck asking on the Fedora KDE list.
poc
On Thu, 5 Nov 2020 at 09:49, Dario Lesca d.lesca@solinos.it wrote:
Il giorno gio, 05/11/2020 alle 08.57 -0400, George N. White III ha scritto:
Is this application part of Fedora 33 or from 3rd party?
No, it's a third part application download from git and build from source.
For problems like this it is best to report "upstream" so other users won't be meeting the same issue. For a Fedora application, file a bugzilla report, otherwise, contact the developer. If the application is orphaned you may want to look for another app that satisfies your requirements and has upstream support.
This is not a Fedora application, I have try write here hoping to found a simple suggest how to change the deprecate function with new one method
Now I try to write on git to upstream support.
Look for an "Issues" section near the top of the app's git page. When I go to report issues I often find that someone else has already reported the problem and often a solution will also be provided.