Improve/redesign ingredients #13

Merged
andrewlalis merged 13 commits from improve/redesignIngredients into development 2018-05-22 21:29:25 +00:00
3 changed files with 10 additions and 1 deletions
Showing only changes of commit 29a4ed0ad2 - Show all commits

View File

@ -149,3 +149,7 @@ void NewRecipeDialog::on_removeTagButton_clicked(){
this->populateTagsBox(); this->populateTagsBox();
} }
} }
void NewRecipeDialog::on_ingredientLineEdit_returnPressed(){
this->on_addIngredientButton_clicked();
}

View File

@ -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;

View File

@ -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>