Fix Qt warnings about QLayout (Fixes #127)
authorWuzzy <almikes@aol.com>
Thu, 17 Nov 2016 15:29:16 +0100
changeset 11915 245163aa3674
parent 11914 1d2e89be3eb6
child 11916 6145efcff302
Fix Qt warnings about QLayout (Fixes #127)
QTfrontend/ui/widget/mapContainer.cpp
--- a/QTfrontend/ui/widget/mapContainer.cpp	Thu Nov 17 14:59:20 2016 +0100
+++ b/QTfrontend/ui/widget/mapContainer.cpp	Thu Nov 17 15:29:16 2016 +0100
@@ -253,7 +253,7 @@
     bottomLeftLayout->addStretch(1);
 
     /* Theme chooser */
-    QHBoxLayout * themeHBox = new QHBoxLayout(this);
+    QHBoxLayout * themeHBox = new QHBoxLayout();
 
     btnRandTheme = new QPushButton();
     btnRandTheme->setWhatsThis(tr("Randomize the theme"));