mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-21 01:29:58 +00:00
add workaround for #34 to AW
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user