Commit 4c77e589 authored by Luigi Toscano's avatar Luigi Toscano

Fix call to QStringLiteral, pass the proper path

The function was using also other strings in addition to the intended
one, leading to an incorrect stylesheet and bigger text.

Discovered thanks to the warning printed on the command line:
"Could not parse stylesheet of object 0x..."

(Side note: the text size should not be pixel-based, but this is
a bigger change).
parent b3547159
......@@ -75,11 +75,11 @@ AppMenuWidget::AppMenuWidget()
"QPushButton#m_Learning:hover {"
"border: none;"
"image: url(") +
QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("kbruch/pics/icon_learning.png") +
QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("kbruch/pics/icon_learning.png")) +
QStringLiteral(");"
"}"
"QLabel#labelInfo, QLabel#labelFreestyle, QLabel#labelLearning"
"{ font: bold 20px; }"));
"{ font: bold 20px; }");
setStyleSheet(css);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment