mirror of https://github.com/AxioDL/metaforce.git
Change deprecated Qt references
This commit is contained in:
parent
483d4746dc
commit
79b0b6c2a9
|
@ -34,6 +34,7 @@ file(GLOB QUAZIP_SRCS quazip/quazip/*.c quazip/quazip/*.cpp quazip/quazip/*.h)
|
||||||
list(REMOVE_ITEM QUAZIP_SRCS
|
list(REMOVE_ITEM QUAZIP_SRCS
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/quazip/quazip/quagzipfile.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/quazip/quazip/quagzipfile.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/quazip/quazip/quagzipfile.h)
|
${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
|
add_executable(hecl-gui WIN32 MACOSX_BUNDLE
|
||||||
ArgumentEditor.ui ArgumentEditor.cpp ArgumentEditor.hpp
|
ArgumentEditor.ui ArgumentEditor.cpp ArgumentEditor.hpp
|
||||||
|
|
|
@ -258,9 +258,9 @@ void SysReqTableView::paintEvent(QPaintEvent* e) {
|
||||||
|
|
||||||
QPalette pal = palette();
|
QPalette pal = palette();
|
||||||
if (m_model.data(m_model.index(i, 0), Qt::UserRole).toBool())
|
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
|
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);
|
w->setPalette(pal);
|
||||||
|
|
||||||
QSequentialAnimationGroup* animation = std::get<1>(m_backgroundWidgets[i]);
|
QSequentialAnimationGroup* animation = std::get<1>(m_backgroundWidgets[i]);
|
||||||
|
@ -297,9 +297,9 @@ SysReqTableView::SysReqTableView(QWidget* parent) : QTableView(parent), m_vector
|
||||||
|
|
||||||
QPalette pal = palette();
|
QPalette pal = palette();
|
||||||
if (m_model.data(m_model.index(i, 0), Qt::UserRole).toBool())
|
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
|
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->setAutoFillBackground(true);
|
||||||
w->setPalette(pal);
|
w->setPalette(pal);
|
||||||
|
|
|
@ -64,9 +64,9 @@ VectorISATableView::VectorISATableView(QWidget* parent) : QTableView(parent) {
|
||||||
|
|
||||||
QPalette pal = palette();
|
QPalette pal = palette();
|
||||||
if (i == 0)
|
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
|
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->setAutoFillBackground(true);
|
||||||
w->setPalette(pal);
|
w->setPalette(pal);
|
||||||
|
|
Loading…
Reference in New Issue