mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-17 06:39:59 +02:00
also limit size of generalconfig-dialog
This commit is contained in:
@@ -1934,7 +1934,10 @@ void QETApp::configureQET()
|
|||||||
// associe le dialogue a un eventuel widget parent
|
// associe le dialogue a un eventuel widget parent
|
||||||
if (parent_widget) {
|
if (parent_widget) {
|
||||||
cd.setParent(parent_widget, cd.windowFlags());
|
cd.setParent(parent_widget, cd.windowFlags());
|
||||||
cd.setMaximumSize(parent_widget->size());
|
cd.setMaximumWidth(std::min(parent_widget->width(),
|
||||||
|
(int)(0.94 * MachineInfo::instance()->i_max_available_width())));
|
||||||
|
cd.setMaximumHeight(std::min(parent_widget->height(),
|
||||||
|
(int)(0.94 * MachineInfo::instance()->i_max_available_height())));
|
||||||
}
|
}
|
||||||
|
|
||||||
// display the dialog then avoid linking it to any parent widget
|
// display the dialog then avoid linking it to any parent widget
|
||||||
|
|||||||
Reference in New Issue
Block a user