Added responsize resizer.
This commit is contained in:
parent
f792b7d197
commit
bfea4d4aed
@ -46,7 +46,7 @@ void GuiUtilities::applyDialogProperties(QWidget& widget, const QIcon& icon, con
|
||||
|
||||
void GuiUtilities::applyResponsiveDialogResize(QWidget& widget, double factor) {
|
||||
auto desktop_geom = QApplication::desktop()->screenGeometry();
|
||||
auto ratio = double(size().height()) / size().width();
|
||||
auto ratio = double(widget.size().height()) / widget.size().width();
|
||||
int widt = desktop_geom.width() * factor;
|
||||
int heig = widt * ratio;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user