Skip to content

‘QPalette::Background’ is deprecated #48

@thebigG

Description

@thebigG
[ 44%] Building CXX object Tasker/CMakeFiles/Tasker.dir/Ui/CommitmentSnaphot.cpp.o
/home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnaphot.cpp: In constructor ‘CommitmentSnaphot::CommitmentSnaphot()’:
/home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnaphot.cpp:50:37: warning: ‘QPalette::Background’ is deprecated: Use QPalette::Window instead [-Wdeprecated-declarations]
   50 |     p.setColor(QPalette::ColorRole::Background, Qt::white);
      |                                     ^~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicswidget.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsWidget:1,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/qlegend.h:34,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QLegend:1,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/qchart.h:34,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QChart:1,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnapshot.h:11,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnaphot.cpp:3:
/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
      |                      ^~~~~~~~~~
/home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnaphot.cpp:50:37: warning: ‘QPalette::Background’ is deprecated: Use QPalette::Window instead [-Wdeprecated-declarations]
   50 |     p.setColor(QPalette::ColorRole::Background, Qt::white);
      |                                     ^~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicswidget.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsWidget:1,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/qlegend.h:34,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QLegend:1,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/qchart.h:34,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QChart:1,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnapshot.h:11,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnaphot.cpp:3:
/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
      |                      ^~~~~~~~~~
/home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnaphot.cpp:54:48: warning: ‘QPalette::Foreground’ is deprecated: Use QPalette::WindowText instead [-Wdeprecated-declarations]
   54 |     labelPalette.setColor(QPalette::ColorRole::Foreground, productiveBarSet.color());
      |                                                ^~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicswidget.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsWidget:1,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/qlegend.h:34,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QLegend:1,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/qchart.h:34,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QChart:1,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnapshot.h:11,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnaphot.cpp:3:
/usr/include/x86_64-linux-gnu/qt5/QtGui/qpalette.h:100:22: note: declared here
  100 |                      Foreground Q_DECL_ENUMERATOR_DEPRECATED_X("Use QPalette::WindowText instead") = WindowText,
      |                      ^~~~~~~~~~
/home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnaphot.cpp:54:48: warning: ‘QPalette::Foreground’ is deprecated: Use QPalette::WindowText instead [-Wdeprecated-declarations]
   54 |     labelPalette.setColor(QPalette::ColorRole::Foreground, productiveBarSet.color());
      |                                                ^~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicswidget.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsWidget:1,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/qlegend.h:34,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QLegend:1,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/qchart.h:34,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QChart:1,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnapshot.h:11,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnaphot.cpp:3:
/usr/include/x86_64-linux-gnu/qt5/QtGui/qpalette.h:100:22: note: declared here
  100 |                      Foreground Q_DECL_ENUMERATOR_DEPRECATED_X("Use QPalette::WindowText instead") = WindowText,
      |                      ^~~~~~~~~~
/home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnaphot.cpp:60:48: warning: ‘QPalette::Foreground’ is deprecated: Use QPalette::WindowText instead [-Wdeprecated-declarations]
   60 |     labelPalette.setColor(QPalette::ColorRole::Foreground, unproductiveBarSet.color());
      |                                                ^~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicswidget.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsWidget:1,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/qlegend.h:34,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QLegend:1,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/qchart.h:34,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QChart:1,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnapshot.h:11,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnaphot.cpp:3:
/usr/include/x86_64-linux-gnu/qt5/QtGui/qpalette.h:100:22: note: declared here
  100 |                      Foreground Q_DECL_ENUMERATOR_DEPRECATED_X("Use QPalette::WindowText instead") = WindowText,
      |                      ^~~~~~~~~~
/home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnaphot.cpp:60:48: warning: ‘QPalette::Foreground’ is deprecated: Use QPalette::WindowText instead [-Wdeprecated-declarations]
   60 |     labelPalette.setColor(QPalette::ColorRole::Foreground, unproductiveBarSet.color());
      |                                                ^~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicswidget.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsWidget:1,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/qlegend.h:34,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QLegend:1,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/qchart.h:34,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QChart:1,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnapshot.h:11,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnaphot.cpp:3:
/usr/include/x86_64-linux-gnu/qt5/QtGui/qpalette.h:100:22: note: declared here
  100 |                      Foreground Q_DECL_ENUMERATOR_DEPRECATED_X("Use QPalette::WindowText instead") = WindowText,
      |                      ^~~~~~~~~~
[ 47%] Building CXX object Tasker/CMakeFiles/Tasker.dir/Ui/CommStatsQWidget.cpp.o
/home/lorenzogomez/Tasker/Tasker/Ui/CommStatsQWidget.cpp: In constructor ‘CommStatsQWidget::CommStatsQWidget(QWidget*)’:
/home/lorenzogomez/Tasker/Tasker/Ui/CommStatsQWidget.cpp:71:62: warning: ‘QPalette::Background’ is deprecated: Use QPalette::Window instead [-Wdeprecated-declarations]
   71 |                snapshot.palette().color(QPalette::ColorRole::Background));
      |                                                              ^~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicswidget.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsWidget:1,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/qlegend.h:34,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QLegend:1,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/qchart.h:34,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QChart:1,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnapshot.h:11,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommStatsQWidget.h:12,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommStatsQWidget.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
      |                      ^~~~~~~~~~
/home/lorenzogomez/Tasker/Tasker/Ui/CommStatsQWidget.cpp:71:62: warning: ‘QPalette::Background’ is deprecated: Use QPalette::Window instead [-Wdeprecated-declarations]
   71 |                snapshot.palette().color(QPalette::ColorRole::Background));
      |                                                              ^~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicswidget.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsWidget:1,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/qlegend.h:34,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QLegend:1,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/qchart.h:34,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCharts/QChart:1,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommitmentSnapshot.h:11,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommStatsQWidget.h:12,
                 from /home/lorenzogomez/Tasker/Tasker/Ui/CommStatsQWidget.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions