update translations, fix layout, some edit of formating

prepare to release 2.0.0
(I plan to update all translations with next releases)
This commit is contained in:
arcan1s
2014-09-08 01:52:40 +04:00
parent ce761db924
commit ab966504cc
13 changed files with 546 additions and 572 deletions

View File

@ -33,8 +33,6 @@ void AwesomeWidget::reinit()
if (configuration[QString("background")].toInt() == 0)
setBackgroundHints(NoBackground);
else
setBackgroundHints(DefaultBackground);
if (configuration[QString("popup")].toInt() == 0)
textLabel->setPopupEnabled(false);
else
@ -71,12 +69,11 @@ void AwesomeWidget::updateNetworkDevice()
}
void AwesomeWidget::updateText(bool clear)
void AwesomeWidget::updateText(const bool clear)
{
if (debug) qDebug() << PDEBUG;
QString text = configuration[QString("text")];
text.replace(QString("\n"), QString("<br>"));
if (!clear)
for (int i=0; i<foundKeys.count(); i++)
text.replace(QString("$") + foundKeys[i], values[foundKeys[i]]);
@ -89,8 +86,6 @@ void AwesomeWidget::updateTooltip()
if (debug) qDebug() << PDEBUG;
toolTipView->resize(100.0 * counts[QString("tooltip")], 100.0);
// remove nan
// boundaries
QMap<QString, float> boundaries;
boundaries[QString("cpu")] = 100.0;