commit before tests

This commit is contained in:
arcan1s
2014-09-01 20:58:47 +04:00
parent 3b89b30a98
commit a65f4cb02f
3 changed files with 10 additions and 8 deletions

View File

@ -62,18 +62,20 @@ void AwesomeWidget::reinit()
values[QString("netdev")] = getNetworkDevice();
// thread()->wait(60000);
connectToEngine();
updateText(true);
resize(10, 10);
}
void AwesomeWidget::updateText()
void AwesomeWidget::updateText(bool clear)
{
if (debug) qDebug() << PDEBUG;
QString text = configuration[QString("text")];
for (int i=0; i<foundKeys.count(); i++)
text.replace(QString("$") + foundKeys[i] + QString("$"), values[foundKeys[i]]);
textLabel->setText(text);
if (!clear)
for (int i=0; i<foundKeys.count(); i++)
text.replace(QString("$") + foundKeys[i] + QString("$"), values[foundKeys[i]]);
textLabel->setText(formatLine[0] + text + formatLine[1]);
}