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();
|
||||
}
|
||||
}
|
||||
|
||||
void NewRecipeDialog::on_ingredientLineEdit_returnPressed(){
|
||||
this->on_addIngredientButton_clicked();
|
||||
}
|
||||
|
|
|
@ -55,6 +55,8 @@ class NewRecipeDialog : public QDialog
|
|||
|
||||
void on_removeTagButton_clicked();
|
||||
|
||||
void on_ingredientLineEdit_returnPressed();
|
||||
|
||||
private:
|
||||
Ui::NewRecipeDialog *ui;
|
||||
RecipeDatabase *recipeDB;
|
||||
|
|
|
@ -640,11 +640,14 @@ QPushButton#removeIngredientButton:pressed{
|
|||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
<property name="selectionMode">
|
||||
<enum>QAbstractItemView::MultiSelection</enum>
|
||||
<enum>QAbstractItemView::SingleSelection</enum>
|
||||
</property>
|
||||
<property name="verticalScrollMode">
|
||||
<enum>QAbstractItemView::ScrollPerPixel</enum>
|
||||
</property>
|
||||
<property name="horizontalScrollMode">
|
||||
<enum>QAbstractItemView::ScrollPerPixel</enum>
|
||||
</property>
|
||||
<property name="batchSize">
|
||||
<number>100</number>
|
||||
</property>
|
||||
|
|
Loading…
Reference in New Issue