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

Need to fix warnings #104

Open
nonlin-lin-chaos-order-etc-etal opened this issue Nov 20, 2024 · 0 comments
Open

Need to fix warnings #104

nonlin-lin-chaos-order-etc-etal opened this issue Nov 20, 2024 · 0 comments

Comments

@nonlin-lin-chaos-order-etc-etal
Copy link
Member

src/mainwindow.cpp: In constructor ‘MainWindow::MainWindow(std::shared_ptr<std::basic_iostream<char> >, QWidget*)’:
src/mainwindow.cpp:121:28: warning: ‘QPalette::Background’ is deprecated: Use QPalette::Window instead [-Wdeprecated-declarations]
  121 |     pal.setColor(QPalette::Background, Qt::red);
      |                            ^~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:48,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMainWindow:1,
                 from src/mainwindow.h:7,
                 from src/mainwindow.cpp:1:
/usr/include/x86_64-linux-gnu/qt5/QtGui/qpalette.h:101:22: note: declared here
  101 |                      Background Q_DECL_ENUMERATOR_DEPRECATED_X("Use QPalette::Window instead") = Window
      |                      ^~~~~~~~~~
src/mainwindow.cpp:121:28: warning: ‘QPalette::Background’ is deprecated: Use QPalette::Window instead [-Wdeprecated-declarations]
  121 |     pal.setColor(QPalette::Background, Qt::red);
      |                            ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtGui/qpalette.h:101:22: note: declared here
  101 |                      Background Q_DECL_ENUMERATOR_DEPRECATED_X("Use QPalette::Window instead") = Window
      |                      ^~~~~~~~~~
src/mainwindow.cpp: In member function ‘void MainWindow::iconActivated(QSystemTrayIcon::ActivationReason)’:
src/mainwindow.cpp:604:82: warning: ‘QTextStream& QTextStreamFunctions::endl(QTextStream&)’ is deprecated: Use Qt::endl [-Wdeprecated-declarations]
  604 |         qDebug() << "MainWindow::iconActivated(): unknown reason: " << reason << endl;
      |                                                                                  ^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:49,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDebug:1,
                 from src/mainwindow.h:52:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qtextstream.h:293:75: note: declared here
  293 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl") QTextStream &endl(QTextStream &s);
      |                                                                  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant