add workaround for #34 to AW

This commit is contained in:
arcan1s
2014-10-27 04:20:13 +03:00
parent 6463ed3bf7
commit 13023a4985
4 changed files with 6 additions and 5 deletions

View File

@ -38,8 +38,6 @@ void AwesomeWidget::reinit()
else
textLabel->setPopupEnabled(true);
updateText(true);
textLabel->adjustSize();
mainLayout->itemAt(0, 0)->setGeometry(textLabel->geometry());
keys = getKeys();
foundKeys = findKeys();
@ -86,7 +84,8 @@ void AwesomeWidget::updateText(const bool clear)
text.replace(QString("$\\$\\"), QString("$$"));
}
textLabel->setText(formatLine[0] + text + formatLine[1]);
update();
mainLayout->itemAt(0, 0)->updateGeometry();
updateGeometry();
}