Fixed deprecated method QPalette::{Fore,Back}ground (#2510)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -886,12 +886,12 @@ void SplitHeader::themeChangedEvent()
|
||||
|
||||
if (this->split_->hasFocus())
|
||||
{
|
||||
palette.setColor(QPalette::Foreground,
|
||||
palette.setColor(QPalette::WindowText,
|
||||
this->theme->splits.header.focusedText);
|
||||
}
|
||||
else
|
||||
{
|
||||
palette.setColor(QPalette::Foreground, this->theme->splits.header.text);
|
||||
palette.setColor(QPalette::WindowText, this->theme->splits.header.text);
|
||||
}
|
||||
this->titleLabel_->setPalette(palette);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user