fixed < in emote names breaking the <br> and tooltips on mac

This commit is contained in:
nuuls
2018-01-07 23:47:08 +01:00
parent 92cc1f354b
commit 1eb256bd4e
2 changed files with 9 additions and 4 deletions
+2
View File
@@ -19,6 +19,7 @@ TooltipWidget::TooltipWidget(BaseWidget *parent)
palette.setColor(QPalette::WindowText, white);
palette.setColor(QPalette::Background, black);
this->setPalette(palette);
this->displayText->setStyleSheet("color: #ffffff");
this->setWindowOpacity(0.8);
this->setFont(singletons::FontManager::getInstance().getFont(singletons::FontManager::Type::MediumSmall,
this->getDpiMultiplier()));
@@ -27,6 +28,7 @@ TooltipWidget::TooltipWidget(BaseWidget *parent)
this->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
displayText->setAlignment(Qt::AlignHCenter);
displayText->setText("lmao xD");
auto layout = new QVBoxLayout();
layout->setContentsMargins(10, 5, 10, 5);
layout->addWidget(displayText);