Fix deprecation warnings
warning C4996: 'QPalette::Foreground': Use QPalette::WindowText instead warning C4996: 'QPalette::Background': Use QPalette::Window instead
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user