Added slot for return in add ingredients input field.
This commit is contained in:
parent
4554fdcd1e
commit
29a4ed0ad2
|
@ -149,3 +149,7 @@ void NewRecipeDialog::on_removeTagButton_clicked(){
|
||||||
this->populateTagsBox();
|
this->populateTagsBox();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void NewRecipeDialog::on_ingredientLineEdit_returnPressed(){
|
||||||
|
this->on_addIngredientButton_clicked();
|
||||||
|
}
|
||||||
|
|
|
@ -55,6 +55,8 @@ class NewRecipeDialog : public QDialog
|
||||||
|
|
||||||
void on_removeTagButton_clicked();
|
void on_removeTagButton_clicked();
|
||||||
|
|
||||||
|
void on_ingredientLineEdit_returnPressed();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::NewRecipeDialog *ui;
|
Ui::NewRecipeDialog *ui;
|
||||||
RecipeDatabase *recipeDB;
|
RecipeDatabase *recipeDB;
|
||||||
|
|
|
@ -640,11 +640,14 @@ QPushButton#removeIngredientButton:pressed{
|
||||||
<enum>QFrame::NoFrame</enum>
|
<enum>QFrame::NoFrame</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="selectionMode">
|
<property name="selectionMode">
|
||||||
<enum>QAbstractItemView::MultiSelection</enum>
|
<enum>QAbstractItemView::SingleSelection</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="verticalScrollMode">
|
<property name="verticalScrollMode">
|
||||||
<enum>QAbstractItemView::ScrollPerPixel</enum>
|
<enum>QAbstractItemView::ScrollPerPixel</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="horizontalScrollMode">
|
||||||
|
<enum>QAbstractItemView::ScrollPerPixel</enum>
|
||||||
|
</property>
|
||||||
<property name="batchSize">
|
<property name="batchSize">
|
||||||
<number>100</number>
|
<number>100</number>
|
||||||
</property>
|
</property>
|
||||||
|
|
Loading…
Reference in New Issue