mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-25 07:57:19 +00:00
upd task, add ability to use $ symbol over $$
This commit is contained in:
parent
7f6afbcb4d
commit
03af5f0e49
@ -79,9 +79,12 @@ void AwesomeWidget::updateText(const bool clear)
|
||||
if (debug) qDebug() << PDEBUG;
|
||||
|
||||
QString text = configuration[QString("text")];
|
||||
if (!clear)
|
||||
if (!clear) {
|
||||
text.replace(QString("$$"), QString("$\\$\\"));
|
||||
for (int i=0; i<foundKeys.count(); i++)
|
||||
text.replace(QString("$") + foundKeys[i], values[foundKeys[i]]);
|
||||
text.replace(QString("$\\$\\"), QString("$$"));
|
||||
}
|
||||
textLabel->setText(formatLine[0] + text + formatLine[1]);
|
||||
update();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user