Using different window flags on the connection method dialog (#5614)
authorSamuel Alfageme <samuel.alfageme@gmail.com>
Wed, 15 Mar 2017 14:46:51 +0000 (15:46 +0100)
committerMarkus Goetz <markus@woboq.com>
Wed, 15 Mar 2017 14:46:51 +0000 (15:46 +0100)
This is a possible fix for #3850, applying custom window flags (http://doc.qt.io/qt-5.8/qt.html#WindowType-enum) on the connection method dialog. These avoid resizing the dialog and displaying a maximize button on OS X and context help button on Windows.

src/gui/wizard/owncloudconnectionmethoddialog.cpp

index 1acd2203ae1082c26b6af0fadb798ba3f5cdd788..1312da5620e424ce061ecba8add5afd41eb95ef9 100644 (file)
@@ -20,7 +20,7 @@
 namespace OCC {
 
 OwncloudConnectionMethodDialog::OwncloudConnectionMethodDialog(QWidget *parent) :
-    QDialog(parent),
+    QDialog(parent, Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint | Qt::MSWindowsFixedSizeDialogHint),
     ui(new Ui::OwncloudConnectionMethodDialog)
 {
     ui->setupUi(this);