fa0b2dc5 | 2014-07-09 22:42:24 | Michele Calgaro |
Fixed layout warning messages at startup. This resolves bug 1892. |
||
M krecipes/src/dialogs/ingredientgroupsdialog.cpp M krecipes/src/dialogs/recipeinputdialog.cpp |
||
diff --git a/krecipes/src/dialogs/ingredientgroupsdialog.cpp b/krecipes/src/dialogs/ingredientgroupsdialog.cpp index 0d31f11..8edb0d6 100644 --- a/krecipes/src/dialogs/ingredientgroupsdialog.cpp +++ b/krecipes/src/dialogs/ingredientgroupsdialog.cpp @@ -30,7 +30,7 @@ headerListView->setSizePolicy( TQSizePolicy( TQSizePolicy::Ignored, TQSizePolicy::MinimumExpanding ) ); layout->addWidget(headerListView); - TQVBoxLayout *buttonLayout = new TQVBoxLayout(this); + TQVBoxLayout *buttonLayout = new TQVBoxLayout(NULL, 0, KDialog::spacingHint()); TQPushButton *addHeaderButton = new TQPushButton( this ); addHeaderButton->setText( "+" ); addHeaderButton->setMinimumSize( TQSize( 30, 30 ) ); diff --git a/krecipes/src/dialogs/recipeinputdialog.cpp b/krecipes/src/dialogs/recipeinputdialog.cpp index 455b75f..05270c4 100644 --- a/krecipes/src/dialogs/recipeinputdialog.cpp +++ b/krecipes/src/dialogs/recipeinputdialog.cpp @@ -357,7 +357,7 @@ ingredientList->setDefaultRenameAction( TQListView::Reject ); ingredientsLayout->addMultiCellWidget( ingredientList, 3, 9, 1, 3 ); - TQHBoxLayout *propertyStatusLayout = new TQHBoxLayout( ingredientGBox, 0, 5 ); + TQHBoxLayout *propertyStatusLayout = new TQHBoxLayout( NULL, 0, 5 ); TQLabel *propertyLabel = new TQLabel( i18n("Property Status:"), ingredientGBox ); propertyStatusLabel = new TQLabel( ingredientGBox ); propertyStatusLed = new ClickableLed( ingredientGBox ); |