mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12: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)
|
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_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::Background);
|
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_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");;
|
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);
|
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
|
// 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
|
// Returns the font of the QLabels with object_name
|
||||||
QFont get_label_font(const QString& object_name);
|
QFont get_label_font(const QString& object_name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue