diff --git a/hecl-gui/CMakeLists.txt b/hecl-gui/CMakeLists.txt index 9db2c9c40..f19122902 100644 --- a/hecl-gui/CMakeLists.txt +++ b/hecl-gui/CMakeLists.txt @@ -34,6 +34,7 @@ file(GLOB QUAZIP_SRCS quazip/quazip/*.c quazip/quazip/*.cpp quazip/quazip/*.h) list(REMOVE_ITEM QUAZIP_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/quazip/quazip/quagzipfile.cpp ${CMAKE_CURRENT_SOURCE_DIR}/quazip/quazip/quagzipfile.h) +set_source_files_properties(${QUAZIP_SRCS} PROPERTIES COMPILE_OPTIONS -Wno-deprecated-declarations) add_executable(hecl-gui WIN32 MACOSX_BUNDLE ArgumentEditor.ui ArgumentEditor.cpp ArgumentEditor.hpp diff --git a/hecl-gui/SysReqTableView.cpp b/hecl-gui/SysReqTableView.cpp index c45159be4..bb3278197 100644 --- a/hecl-gui/SysReqTableView.cpp +++ b/hecl-gui/SysReqTableView.cpp @@ -258,9 +258,9 @@ void SysReqTableView::paintEvent(QPaintEvent* e) { QPalette pal = palette(); if (m_model.data(m_model.index(i, 0), Qt::UserRole).toBool()) - pal.setColor(QPalette::Background, QColor::fromRgbF(0.f, 1.f, 0.f, 0.2f)); + pal.setColor(QPalette::Window, QColor::fromRgbF(0.f, 1.f, 0.f, 0.2f)); else - pal.setColor(QPalette::Background, QColor::fromRgbF(1.f, 0.f, 0.f, 0.2f)); + pal.setColor(QPalette::Window, QColor::fromRgbF(1.f, 0.f, 0.f, 0.2f)); w->setPalette(pal); QSequentialAnimationGroup* animation = std::get<1>(m_backgroundWidgets[i]); @@ -297,9 +297,9 @@ SysReqTableView::SysReqTableView(QWidget* parent) : QTableView(parent), m_vector QPalette pal = palette(); if (m_model.data(m_model.index(i, 0), Qt::UserRole).toBool()) - pal.setColor(QPalette::Background, QColor::fromRgbF(0.f, 1.f, 0.f, 0.2f)); + pal.setColor(QPalette::Window, QColor::fromRgbF(0.f, 1.f, 0.f, 0.2f)); else - pal.setColor(QPalette::Background, QColor::fromRgbF(1.f, 0.f, 0.f, 0.2f)); + pal.setColor(QPalette::Window, QColor::fromRgbF(1.f, 0.f, 0.f, 0.2f)); w->setAutoFillBackground(true); w->setPalette(pal); diff --git a/hecl-gui/VectorISATableView.cpp b/hecl-gui/VectorISATableView.cpp index 94b009217..98c6427e2 100644 --- a/hecl-gui/VectorISATableView.cpp +++ b/hecl-gui/VectorISATableView.cpp @@ -64,9 +64,9 @@ VectorISATableView::VectorISATableView(QWidget* parent) : QTableView(parent) { QPalette pal = palette(); if (i == 0) - pal.setColor(QPalette::Background, QColor::fromRgbF(0.f, 1.f, 0.f, 0.2f)); + pal.setColor(QPalette::Window, QColor::fromRgbF(0.f, 1.f, 0.f, 0.2f)); else - pal.setColor(QPalette::Background, QColor::fromRgbF(1.f, 0.f, 0.f, 0.2f)); + pal.setColor(QPalette::Window, QColor::fromRgbF(1.f, 0.f, 0.f, 0.2f)); w->setAutoFillBackground(true); w->setPalette(pal);