Fix deprecation warnings

warning C4996: 'QPalette::Foreground': Use QPalette::WindowText instead
warning C4996: 'QPalette::Background': Use QPalette::Window instead
This commit is contained in:
msuih 2019-08-31 13:50:28 +03:00 committed by Megamouse
parent 10c81fbdf9
commit 84867b0848
2 changed files with 3 additions and 3 deletions

View File

@ -150,8 +150,8 @@ void debugger_frame::ChangeColors()
{
if (m_debugger_list)
{
m_debugger_list->m_color_bp = m_breakpoint_list->m_color_bp = gui::utils::get_label_color("debugger_frame_breakpoint", QPalette::Background);
m_debugger_list->m_color_pc = gui::utils::get_label_color("debugger_frame_pc", QPalette::Background);
m_debugger_list->m_color_bp = m_breakpoint_list->m_color_bp = gui::utils::get_label_color("debugger_frame_breakpoint", QPalette::Window);
m_debugger_list->m_color_pc = gui::utils::get_label_color("debugger_frame_pc", QPalette::Window);
m_debugger_list->m_text_color_bp = m_breakpoint_list->m_text_color_bp = gui::utils::get_label_color("debugger_frame_breakpoint");;
m_debugger_list->m_text_color_pc = gui::utils::get_label_color("debugger_frame_pc");;
}

View File

@ -31,7 +31,7 @@ namespace gui
QStringList get_dir_entries(const QDir& dir, const QStringList& name_filters);
// Returns the color specified by its color_role for the QLabels with object_name
QColor get_label_color(const QString& object_name, QPalette::ColorRole color_role = QPalette::Foreground);
QColor get_label_color(const QString& object_name, QPalette::ColorRole color_role = QPalette::WindowText);
// Returns the font of the QLabels with object_name
QFont get_label_font(const QString& object_name);