[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [krecipes] src/dialogs/recipeinput: Use KreAllHeadersModels in IngredientNameDelegate.
From: José_Manuel_SantamarÃa_Lema <panfaust () gmail ! com>
Date: 2016-07-12 7:26:43
Message-ID: E1bMs5b-0000Ay-Jl () code ! kde ! org
[Download RAW message or body]
Git commit 1584adb4b8b1b8244a3367d53079caa35cf44f9b by Jos=C3=A9 Manuel San=
tamar=C3=ADa Lema.
Committed on 12/07/2016 at 07:23.
Pushed by joselema into branch 'master'.
Use KreAllHeadersModels in IngredientNameDelegate.
M +4 -1 src/dialogs/recipeinput/ingredientnamedelegate.cpp
http://commits.kde.org/krecipes/1584adb4b8b1b8244a3367d53079caa35cf44f9b
diff --git a/src/dialogs/recipeinput/ingredientnamedelegate.cpp b/src/dialo=
gs/recipeinput/ingredientnamedelegate.cpp
index d4934b3..8e93eed 100644
--- a/src/dialogs/recipeinput/ingredientnamedelegate.cpp
+++ b/src/dialogs/recipeinput/ingredientnamedelegate.cpp
@@ -12,6 +12,7 @@
#include "dialogs/recipeinput/ingredientseditor.h"
#include "backends/recipedb.h"
#include "models/kreallingredientsmodels.h"
+#include "models/kreallingheadersmodels.h"
#include "models/kresinglecolumnproxymodel.h"
#include "datablocks/unit.h"
=
@@ -108,7 +109,9 @@ QWidget * IngredientNameDelegate::createEditor(QWidget =
*parent, const QStyleOpti
editor->setCompletionObject(
m_database->allIngredientsModels()->ingredientNameCompletion() );
} else {
- //TODO: set models and completion for headers
+ editor->setModel( m_database->allIngHeadersModels()->ingHeaderNameModel(=
) );
+ editor->setCompletionObject(
+ m_database->allIngHeadersModels()->ingHeaderNameCompletion() );
}
=
return editor;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic