From fa0b2dc58315acb594a5725438e9fd436e510cc8 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 10 Jul 2014 12:42:24 +0900 Subject: [PATCH] Fixed layout warning messages at startup. This resolves bug 1892. --- krecipes/src/dialogs/ingredientgroupsdialog.cpp | 2 +- krecipes/src/dialogs/recipeinputdialog.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 @@ IngredientGroupsDialog::IngredientGroupsDialog( RecipeDB *db, TQWidget *parent, 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 @@ RecipeInputDialog::RecipeInputDialog( TQWidget* parent, RecipeDB *db ) : TQVBox( 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 );