Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deprecated QTisms #207

Open
leto opened this issue Oct 6, 2020 · 0 comments
Open

Update deprecated QTisms #207

leto opened this issue Oct 6, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@leto
Copy link
Member

leto commented Oct 6, 2020

src/rpc.cpp:483:45: warning: 'toList' is deprecated: Use values() instead. [-Wdeprecated-declarations]
            conn->doBatchRPC<QString>(txids.toList(),
                                            ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qset.h:264:5: note: 'toList' has been explicitly marked deprecated here
    QT_DEPRECATED_X("Use values() instead.")
    ^
../../qt/include/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#    define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
                                                      ^
src/settings.cpp:382:24: warning: 'endl' is deprecated: Use Qt::endl [-Wdeprecated-declarations]
        out << line << endl;
                       ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qtextstream.h:293:15: note: 'endl' has been explicitly marked deprecated here
Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
              ^
../../qt/include/QtCore/qglobal.h:382:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X'
#define QT_DEPRECATED_VERSION_X(major, minor, text) QT_DEPRECATED_VERSION_X_##major(minor, text)
                                                    ^
<scratch space>:160:1: note: expanded from here
QT_DEPRECATED_VERSION_X_5
^
../../qt/include/QtCore/qglobal.h:381:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5'
#define QT_DEPRECATED_VERSION_X_5(minor, text)      QT_DEPRECATED_VERSION_X_5_##minor(text)
                                                    ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../../qt/include/QtCore/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
# define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
                                            ^
../../qt/include/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#    define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
                                                      ^
src/txtablemodel.cpp:57:12: warning: 'endl' is deprecated: Use Qt::endl [-Wdeprecated-declarations]
    out << endl;
           ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qtextstream.h:293:15: note: 'endl' has been explicitly marked deprecated here
Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
              ^
../../qt/include/QtCore/qglobal.h:382:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X'
#define QT_DEPRECATED_VERSION_X(major, minor, text) QT_DEPRECATED_VERSION_X_##major(minor, text)
                                                    ^
<scratch space>:160:1: note: expanded from here
QT_DEPRECATED_VERSION_X_5
^
../../qt/include/QtCore/qglobal.h:381:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5'
#define QT_DEPRECATED_VERSION_X_5(minor, text)      QT_DEPRECATED_VERSION_X_5_##minor(text)
                                                    ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../../qt/include/QtCore/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
# define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
                                            ^
../../qt/include/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#    define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
                                                      ^
src/txtablemodel.cpp:66:16: warning: 'endl' is deprecated: Use Qt::endl [-Wdeprecated-declarations]
        out << endl;
               ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qtextstream.h:293:15: note: 'endl' has been explicitly marked deprecated here
Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
              ^
../../qt/include/QtCore/qglobal.h:382:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X'
#define QT_DEPRECATED_VERSION_X(major, minor, text) QT_DEPRECATED_VERSION_X_##major(minor, text)
                                                    ^
<scratch space>:160:1: note: expanded from here
QT_DEPRECATED_VERSION_X_5
^
../../qt/include/QtCore/qglobal.h:381:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5'
#define QT_DEPRECATED_VERSION_X_5(minor, text)      QT_DEPRECATED_VERSION_X_5_##minor(text)
                                                    ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../../qt/include/QtCore/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
# define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
                                            ^
../../qt/include/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#    define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
                                                      ^
1 warning generated.
src/connection.cpp:291:18: warning: 'start' is deprecated: Use QElapsedTimer instead [-Wdeprecated-declarations]
    downloadTime.start();
                 ^
../../qt/include/QtCore/qdatetime.h:235:5: note: 'start' has been explicitly marked deprecated here
    QT_DEPRECATED_X("Use QElapsedTimer instead") void start();
    ^
../../qt/include/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#    define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
                                                      ^
src/connection.cpp:296:53: warning: 'elapsed' is deprecated: Use QElapsedTimer instead [-Wdeprecated-declarations]
        double speed = done * 1000.0 / downloadTime.elapsed();
                                                    ^
../../qt/include/QtCore/qdatetime.h:237:5: note: 'elapsed' has been explicitly marked deprecated here
    QT_DEPRECATED_X("Use QElapsedTimer instead") int elapsed() const;
    ^
../../qt/include/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#    define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
                                                      ^
2 warnings generated.
src/logger.cpp:24:24: warning: 'endl' is deprecated: Use Qt::endl [-Wdeprecated-declarations]
        out << text << endl;
                       ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qtextstream.h:293:15: note: 'endl' has been explicitly marked deprecated here
Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
              ^
../../qt/include/QtCore/qglobal.h:382:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X'
#define QT_DEPRECATED_VERSION_X(major, minor, text) QT_DEPRECATED_VERSION_X_##major(minor, text)
                                                    ^
<scratch space>:160:1: note: expanded from here
QT_DEPRECATED_VERSION_X_5
^
../../qt/include/QtCore/qglobal.h:381:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5'
#define QT_DEPRECATED_VERSION_X_5(minor, text)      QT_DEPRECATED_VERSION_X_5_##minor(text)
                                                    ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
../../qt/include/QtCore/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
# define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
                                            ^
../../qt/include/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#    define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
                                                      ^
src/connection.cpp:296:53: warning: 'elapsed' is deprecated: Use QElapsedTimer instead [-Wdeprecated-declarations]
        double speed = done * 1000.0 / downloadTime.elapsed();
                                                    ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qobjectdefs_impl.h:359:69: note: in instantiation of function template specialization 'ConnectionLoader::doNextDownload(std::function<void ()>)::(anonymous
      class)::operator()<long long, long long>' requested here
        template <typename F> static auto test(F f) -> decltype(((f.operator()((dummy<ArgList>())...)), int()));
                                                                    ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qobjectdefs_impl.h:362:25: note: while substituting deduced template arguments into function template 'test' [with F = (lambda at src/connection.cpp:294:73)]
            Ok = sizeof(test(dummy<Functor>())) == sizeof(int),
                        ^
../../qt/include/QtCore/qobject.h:326:53: note: in instantiation of template class 'QtPrivate::ComputeFunctorArgumentCount<(lambda at src/connection.cpp:294:73), QtPrivate::List<long long, long long> >'
      requested here
        const int FunctorArgumentCount = QtPrivate::ComputeFunctorArgumentCount<Func2 , typename SignalType::Arguments>::Value;
                                                    ^
../../qt/include/QtCore/qobject.h:316:16: note: in instantiation of function template specialization 'QObject::connect<void (QNetworkReply::*)(long long, long long), (lambda at src/connection.cpp:294:73)>'
      requested here
        return connect(sender, signal, sender, std::move(slot), Qt::DirectConnection);
               ^
src/connection.cpp:294:14: note: in instantiation of function template specialization 'QObject::connect<void (QNetworkReply::*)(long long, long long), (lambda at src/connection.cpp:294:73)>' requested here
    QObject::connect(currentDownload, &QNetworkReply::downloadProgress, [=] (auto done, auto total) {
             ^
../../qt/include/QtCore/qdatetime.h:237:5: note: 'elapsed' has been explicitly marked deprecated here
    QT_DEPRECATED_X("Use QElapsedTimer instead") int elapsed() const;
    ^
../../qt/include/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#    define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
                                                      ^
1 warning generated.
3 warnings generated.
singleapplication/singleapplication.cpp:79:10: warning: 'start' is deprecated: Use QElapsedTimer instead [-Wdeprecated-declarations]
    time.start();
         ^
../../qt/include/QtCore/qdatetime.h:235:5: note: 'start' has been explicitly marked deprecated here
    QT_DEPRECATED_X("Use QElapsedTimer instead") void start();
    ^
../../qt/include/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#    define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
                                                      ^
singleapplication/singleapplication.cpp:87:18: warning: 'elapsed' is deprecated: Use QElapsedTimer instead [-Wdeprecated-declarations]
        if( time.elapsed() > 5000 ) {
                 ^
../../qt/include/QtCore/qdatetime.h:237:5: note: 'elapsed' has been explicitly marked deprecated here
    QT_DEPRECATED_X("Use QElapsedTimer instead") int elapsed() const;
    ^
../../qt/include/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#    define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
                                                      ^
singleapplication/singleapplication.cpp:95:9: warning: 'qsrand' is deprecated: use QRandomGenerator instead [-Wdeprecated-declarations]
        qsrand( QDateTime::currentMSecsSinceEpoch() % std::numeric_limits<uint>::max() );
        ^
../../qt/include/QtCore/qglobal.h:1278:15: note: 'qsrand' has been explicitly marked deprecated here
Q_CORE_EXPORT QT_DEPRECATED_VERSION_X_5_15("use QRandomGenerator instead") void qsrand(uint seed);
              ^
../../qt/include/QtCore/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
# define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
                                            ^
../../qt/include/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#    define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
                                                      ^
singleapplication/singleapplication.cpp:96:79: warning: 'qrand' is deprecated: use QRandomGenerator instead [-Wdeprecated-declarations]
        QThread::sleep( 8 + static_cast <unsigned long>( static_cast <float>( qrand() ) / RAND_MAX * 10 ) );
                                                                              ^
../../qt/include/QtCore/qglobal.h:1279:15: note: 'qrand' has been explicitly marked deprecated here
Q_CORE_EXPORT QT_DEPRECATED_VERSION_X_5_15("use QRandomGenerator instead") int qrand();
              ^
../../qt/include/QtCore/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
# define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
                                            ^
../../qt/include/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/home/duke/git/silentdragon/../../qt/include/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#    define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
                                                      ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant