Skip to content
Permalink
Browse files

fixes 0003848: Preferences dialog not fully visible

  • Loading branch information
wwmayer committed Feb 23, 2019
1 parent bd89326 commit 4765b7e2fe6d3609e9fbf3e3eb6648d7af1dd526
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Gui/DlgPreferencesImp.cpp
@@ -298,7 +298,7 @@ void DlgPreferencesImp::applyChanges()

void DlgPreferencesImp::showEvent(QShowEvent* ev)
{
canEmbedScrollArea = false;
//canEmbedScrollArea = false;
QDialog::showEvent(ev);
}

@@ -308,7 +308,7 @@ void DlgPreferencesImp::resizeEvent(QResizeEvent* ev)
// embed the widget stack into a scroll area if the size is
// bigger than the available desktop
QRect rect = QApplication::desktop()->availableGeometry();
int maxHeight = rect.height();
int maxHeight = rect.height() - 60;
int maxWidth = rect.width();
if (height() > maxHeight || width() > maxWidth) {
canEmbedScrollArea = false;
@@ -325,7 +325,7 @@ void DlgPreferencesImp::resizeEvent(QResizeEvent* ev)
if (bar) {
int newWidth = width() + bar->width();
newWidth = std::min<int>(newWidth, maxWidth);
int newHeight = std::min<int>(height(), maxHeight-30);
int newHeight = std::min<int>(height(), maxHeight);
QMetaObject::invokeMethod(this, "resizeWindow",
Qt::QueuedConnection,
QGenericReturnArgument(),

0 comments on commit 4765b7e

Please sign in to comment.
You can’t perform that action at this time.