mirror of
https://github.com/status-im/snorenotify.git
synced 2025-02-18 03:16:30 +00:00
Fix msvc build
This commit is contained in:
parent
30da52eea7
commit
9a8752ad09
@ -20,13 +20,13 @@ public:
|
|||||||
instance.setSettingsValue(QStringLiteral("Timeout"), 1, LOCAL_SETTING);
|
instance.setSettingsValue(QStringLiteral("Timeout"), 1, LOCAL_SETTING);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString htmlTestString = QStringLiteral("<i>Italic A</i><br>"
|
QString htmlTestString = QLatin1String("<i>Italic A</i><br>"
|
||||||
"<i>Italic B</i><br>"
|
"<i>Italic B</i><br>"
|
||||||
"<b>Bold</b><br>"
|
"<b>Bold</b><br>"
|
||||||
"<u>Underline</u><br>"
|
"<u>Underline</u><br>"
|
||||||
"<font color=\"blue\">Font</font><br>"
|
"<font color=\"blue\">Font</font><br>"
|
||||||
"<&><br>"
|
"<&><br>"
|
||||||
"<a href=\"https://github.com/Snorenotify/Snorenotify\">Website</a><br>");
|
"<a href=\"https://github.com/Snorenotify/Snorenotify\">Website</a><br>");
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void benchmarkUtilsToHtml();
|
void benchmarkUtilsToHtml();
|
||||||
@ -85,7 +85,7 @@ void SnoreBenchmark::benchmarkNotifications()
|
|||||||
});
|
});
|
||||||
|
|
||||||
Application app = SnoreCorePrivate::instance()->defaultApplication();
|
Application app = SnoreCorePrivate::instance()->defaultApplication();
|
||||||
// QBENCHMARK_ONCE{
|
// QBENCHMARK_ONCE{
|
||||||
for (int i = 0; i < 100; ++i) {
|
for (int i = 0; i < 100; ++i) {
|
||||||
QString number = QString::number(i);
|
QString number = QString::number(i);
|
||||||
Notification n(app, app.defaultAlert(), QLatin1String("Test ") + number, QLatin1String("Message ") + number, app.icon());
|
Notification n(app, app.defaultAlert(), QLatin1String("Test ") + number, QLatin1String("Message ") + number, app.icon());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user