feat: add build option for freestanding text in about page (#6766)
Example usage: ``` cmake -DCHATTERINO_EXTRA_BUILD_STRING="hi im <a href=\"https://forsen.tv\">forsen</a>" .. ```
This commit is contained in:
@@ -56,10 +56,17 @@ AboutPage::AboutPage()
|
||||
auto versionInfo = layout.emplace<QGroupBox>("Version");
|
||||
{
|
||||
auto vbox = versionInfo.emplace<QVBoxLayout>();
|
||||
auto version = Version::instance();
|
||||
const auto &version = Version::instance();
|
||||
|
||||
auto label = vbox.emplace<QLabel>(version.buildString() + "<br>" +
|
||||
version.runningString());
|
||||
QString string =
|
||||
version.buildString() % "<br>" % version.runningString();
|
||||
|
||||
if (!version.extraString().isEmpty())
|
||||
{
|
||||
string += "<br>" % version.extraString();
|
||||
}
|
||||
|
||||
auto label = vbox.emplace<QLabel>(string);
|
||||
label->setWordWrap(true);
|
||||
label->setOpenExternalLinks(true);
|
||||
label->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||
|
||||
Reference in New Issue
Block a user