mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
Fix deprecation warnings
warning C4996: 'QPalette::Foreground': Use QPalette::WindowText instead warning C4996: 'QPalette::Background': Use QPalette::Window instead
This commit is contained in:
parent
10c81fbdf9
commit
84867b0848
2 changed files with 3 additions and 3 deletions
|
@ -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");;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue