mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
Device GUIs: Constain window size via minimumSize/maximumSize, rather than handling resizeEvent. Add maximum button. Hide size buttons when window size is fixed
This commit is contained in:
@@ -444,6 +444,14 @@ void Workspace::stackSubWindows()
|
||||
// Spacing between windows
|
||||
const int spacing = 2;
|
||||
|
||||
// Shrink devices to minimum size, in case they have been maximized
|
||||
for (auto window : devices)
|
||||
{
|
||||
QSize size = window->minimumSizeHint();
|
||||
size.expandedTo(window->minimumSize());
|
||||
window->resize(size);
|
||||
}
|
||||
|
||||
// Calculate width and height needed for devices
|
||||
int deviceMinWidth = 0;
|
||||
int deviceTotalMinHeight = 0;
|
||||
|
||||
Reference in New Issue
Block a user