mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-04-24 15:37:23 +00:00
fix resize event
This commit is contained in:
parent
eefe196b69
commit
fc2d338450
@ -227,8 +227,12 @@ void Netctl::updateInterface(bool setShown)
|
||||
if (debug) qDebug() << "[PLASMOID]" << "[updateInterface]" << ":" << "State" << setShown;
|
||||
|
||||
textLabel.setHidden(!setShown);
|
||||
layout->setSizeConstraint(QLayout::SetMinimumSize);
|
||||
graphicsWidget->resize(1, 1);
|
||||
if (setShown)
|
||||
layout->addWidget(&textLabel);
|
||||
else
|
||||
layout->removeWidget(&textLabel);
|
||||
graphicsWidget->adjustSize();
|
||||
resize(1, 1);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user