Allow building against Qt 5.11 (#3105)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
nilyt
2021-08-07 10:37:02 +00:00
committed by GitHub
parent 5cb1022ccf
commit 961803deba
3 changed files with 6 additions and 1 deletions
+4
View File
@@ -134,14 +134,18 @@ void SplitInput::themeChangedEvent()
QPalette palette, placeholderPalette;
palette.setColor(QPalette::WindowText, this->theme->splits.input.text);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
placeholderPalette.setColor(
QPalette::PlaceholderText,
this->theme->messages.textColors.chatPlaceholder);
#endif
this->updateEmoteButton();
this->ui_.textEditLength->setPalette(palette);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
this->ui_.textEdit->setPalette(placeholderPalette);
#endif
this->ui_.textEdit->setStyleSheet(this->theme->splits.input.styleSheet);
this->ui_.hbox->setMargin(