Release 1.0 Ready! #11

Merged
andrewlalis merged 6 commits from development into master 2018-04-01 07:31:09 +00:00
14 changed files with 45 additions and 137 deletions
Showing only changes of commit 4b51029d70 - Show all commits

View File

@ -79,6 +79,4 @@ DISTFILES += \
.gitignore .gitignore
RESOURCES += \ RESOURCES += \
res.qrc \ res.qrc
images.qrc \
images.qrc

View File

@ -26,7 +26,7 @@
<string>RecipeDB</string> <string>RecipeDB</string>
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset resource="../images.qrc"> <iconset resource="../res.qrc">
<normaloff>:/images/images/icon.png</normaloff>:/images/images/icon.png</iconset> <normaloff>:/images/images/icon.png</normaloff>:/images/images/icon.png</iconset>
</property> </property>
<property name="windowOpacity"> <property name="windowOpacity">
@ -111,13 +111,6 @@
<height>80</height> <height>80</height>
</size> </size>
</property> </property>
<property name="font">
<font>
<family>Noto Sans CJK KR Light</family>
<pointsize>20</pointsize>
<stylestrategy>PreferAntialias</stylestrategy>
</font>
</property>
<property name="autoFillBackground"> <property name="autoFillBackground">
<bool>false</bool> <bool>false</bool>
</property> </property>
@ -155,13 +148,6 @@ QPushButton#newButton:pressed{
<height>80</height> <height>80</height>
</size> </size>
</property> </property>
<property name="font">
<font>
<family>Noto Sans CJK KR Light</family>
<pointsize>20</pointsize>
<stylestrategy>PreferAntialias</stylestrategy>
</font>
</property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">QPushButton#openButton { <string notr="true">QPushButton#openButton {
background-color: rgb(222, 226, 255); background-color: rgb(222, 226, 255);
@ -190,13 +176,6 @@ QPushButton#openButton:pressed{
<height>80</height> <height>80</height>
</size> </size>
</property> </property>
<property name="font">
<font>
<family>Noto Sans CJK KR Light</family>
<pointsize>20</pointsize>
<stylestrategy>PreferAntialias</stylestrategy>
</font>
</property>
<property name="autoFillBackground"> <property name="autoFillBackground">
<bool>false</bool> <bool>false</bool>
</property> </property>
@ -234,13 +213,6 @@ QPushButton#editButton:pressed{
<height>80</height> <height>80</height>
</size> </size>
</property> </property>
<property name="font">
<font>
<family>Noto Sans CJK KR Light</family>
<pointsize>20</pointsize>
<stylestrategy>PreferAntialias</stylestrategy>
</font>
</property>
<property name="autoFillBackground"> <property name="autoFillBackground">
<bool>false</bool> <bool>false</bool>
</property> </property>
@ -372,13 +344,6 @@ font: &quot;Noto Sans CJK KR&quot;;</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="font">
<font>
<family>Noto Sans CJK KR Light</family>
<pointsize>14</pointsize>
<stylestrategy>PreferAntialias</stylestrategy>
</font>
</property>
<property name="text"> <property name="text">
<string>By Unknown Author</string> <string>By Unknown Author</string>
</property> </property>
@ -440,12 +405,6 @@ font: &quot;Noto Sans CJK KR&quot;;</string>
</property> </property>
<item> <item>
<widget class="QLabel" name="prepTimeLabel"> <widget class="QLabel" name="prepTimeLabel">
<property name="font">
<font>
<family>Noto Sans CJK KR Light</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="text"> <property name="text">
<string>Prep Time:</string> <string>Prep Time:</string>
</property> </property>
@ -459,12 +418,6 @@ font: &quot;Noto Sans CJK KR&quot;;</string>
<property name="enabled"> <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="font">
<font>
<family>Noto Sans CJK KR Light</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="text"> <property name="text">
<string>Cook Time:</string> <string>Cook Time:</string>
</property> </property>
@ -475,12 +428,6 @@ font: &quot;Noto Sans CJK KR&quot;;</string>
</item> </item>
<item> <item>
<widget class="QLabel" name="servingsLabel"> <widget class="QLabel" name="servingsLabel">
<property name="font">
<font>
<family>Noto Sans CJK KR Light</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="text"> <property name="text">
<string>Servings:</string> <string>Servings:</string>
</property> </property>
@ -560,12 +507,6 @@ font: &quot;Noto Sans CJK KR&quot;;</string>
<height>40</height> <height>40</height>
</size> </size>
</property> </property>
<property name="font">
<font>
<family>Noto Sans CJK KR Thin</family>
<pointsize>18</pointsize>
</font>
</property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">background-color: rgb(194, 196, 233);</string> <string notr="true">background-color: rgb(194, 196, 233);</string>
</property> </property>
@ -585,13 +526,6 @@ font: &quot;Noto Sans CJK KR&quot;;</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="font">
<font>
<family>Noto Sans CJK KR Light</family>
<pointsize>12</pointsize>
<stylestrategy>PreferAntialias</stylestrategy>
</font>
</property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">background-color: rgb(232, 232, 232);</string> <string notr="true">background-color: rgb(232, 232, 232);</string>
</property> </property>
@ -671,12 +605,6 @@ font: &quot;Noto Sans CJK KR&quot;;</string>
<height>40</height> <height>40</height>
</size> </size>
</property> </property>
<property name="font">
<font>
<family>Noto Sans CJK KR Thin</family>
<pointsize>18</pointsize>
</font>
</property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">background-color: rgb(218, 219, 234);</string> <string notr="true">background-color: rgb(218, 219, 234);</string>
</property> </property>
@ -690,12 +618,6 @@ font: &quot;Noto Sans CJK KR&quot;;</string>
</item> </item>
<item> <item>
<widget class="QTextEdit" name="instructionsTextEdit"> <widget class="QTextEdit" name="instructionsTextEdit">
<property name="font">
<font>
<family>Noto Sans CJK KR Medium</family>
<stylestrategy>PreferAntialias</stylestrategy>
</font>
</property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">background-color: rgb(244, 244, 244);</string> <string notr="true">background-color: rgb(244, 244, 244);</string>
</property> </property>
@ -727,7 +649,7 @@ font: &quot;Noto Sans CJK KR&quot;;</string>
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; } p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Noto Sans CJK KR Medium'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt; &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Liberation Serif Bold'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; color:#00ff40;&quot;&gt;This is some &lt;/span&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:16pt; color:#a33c3e;&quot;&gt;colored text and &lt;/span&gt;&lt;a href=&quot;https://www.google.com&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:8pt; text-decoration: underline; color:#0000ff;&quot;&gt;link&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:8.25pt; color:#00ff40;&quot;&gt;This is some &lt;/span&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:16pt; color:#a33c3e;&quot;&gt;colored text and &lt;/span&gt;&lt;a href=&quot;https://www.google.com&quot;&gt;&lt;span style=&quot; font-family:'MS Shell Dlg 2'; font-size:8pt; text-decoration: underline; color:#0000ff;&quot;&gt;link&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="textInteractionFlags"> <property name="textInteractionFlags">
@ -810,7 +732,7 @@ p, li { white-space: pre-wrap; }
</size> </size>
</property> </property>
<property name="pixmap"> <property name="pixmap">
<pixmap resource="../images.qrc">:/images/images/no_image.png</pixmap> <pixmap resource="../res.qrc">:/images/images/no_image.png</pixmap>
</property> </property>
<property name="scaledContents"> <property name="scaledContents">
<bool>false</bool> <bool>false</bool>
@ -849,13 +771,6 @@ p, li { white-space: pre-wrap; }
</property> </property>
<item> <item>
<widget class="QLabel" name="tagsLabel"> <widget class="QLabel" name="tagsLabel">
<property name="font">
<font>
<family>Noto Sans CJK KR Light</family>
<pointsize>16</pointsize>
<stylestrategy>PreferAntialias</stylestrategy>
</font>
</property>
<property name="text"> <property name="text">
<string>Tags</string> <string>Tags</string>
</property> </property>
@ -866,13 +781,6 @@ p, li { white-space: pre-wrap; }
</item> </item>
<item> <item>
<widget class="QListView" name="tagsListView"> <widget class="QListView" name="tagsListView">
<property name="font">
<font>
<family>Noto Sans CJK KR Light</family>
<pointsize>12</pointsize>
<stylestrategy>PreferAntialias</stylestrategy>
</font>
</property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 255);</string> <string notr="true">background-color: rgb(255, 255, 255);</string>
</property> </property>
@ -908,7 +816,7 @@ p, li { white-space: pre-wrap; }
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<resources> <resources>
<include location="../images.qrc"/> <include location="../res.qrc"/>
</resources> </resources>
<connections/> <connections/>
</ui> </ui>

View File

@ -19,7 +19,7 @@
<string>New Food Group</string> <string>New Food Group</string>
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset resource="../../images.qrc"> <iconset resource="../../res.qrc">
<normaloff>:/images/images/icon.png</normaloff>:/images/images/icon.png</iconset> <normaloff>:/images/images/icon.png</normaloff>:/images/images/icon.png</iconset>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
@ -62,7 +62,7 @@
</layout> </layout>
</widget> </widget>
<resources> <resources>
<include location="../../images.qrc"/> <include location="../../res.qrc"/>
</resources> </resources>
<connections> <connections>
<connection> <connection>

View File

@ -14,7 +14,7 @@
<string>New Ingredient</string> <string>New Ingredient</string>
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset resource="../../images.qrc"> <iconset resource="../../res.qrc">
<normaloff>:/images/images/icon.png</normaloff>:/images/images/icon.png</iconset> <normaloff>:/images/images/icon.png</normaloff>:/images/images/icon.png</iconset>
</property> </property>
<property name="modal"> <property name="modal">
@ -81,7 +81,7 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../images.qrc"> <iconset resource="../../res.qrc">
<normaloff>:/images/images/plus_icon.png</normaloff>:/images/images/plus_icon.png</iconset> <normaloff>:/images/images/plus_icon.png</normaloff>:/images/images/plus_icon.png</iconset>
</property> </property>
</widget> </widget>
@ -92,7 +92,7 @@
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../images.qrc"> <iconset resource="../../res.qrc">
<normaloff>:/images/images/minus_icon.png</normaloff>:/images/images/minus_icon.png</iconset> <normaloff>:/images/images/minus_icon.png</normaloff>:/images/images/minus_icon.png</iconset>
</property> </property>
</widget> </widget>
@ -119,7 +119,7 @@
</layout> </layout>
</widget> </widget>
<resources> <resources>
<include location="../../images.qrc"/> <include location="../../res.qrc"/>
</resources> </resources>
<connections> <connections>
<connection> <connection>

View File

@ -14,7 +14,7 @@
<string>New Tag</string> <string>New Tag</string>
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset resource="../../images.qrc"> <iconset resource="../../res.qrc">
<normaloff>:/images/images/icon.png</normaloff>:/images/images/icon.png</iconset> <normaloff>:/images/images/icon.png</normaloff>:/images/images/icon.png</iconset>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
@ -31,7 +31,6 @@
<widget class="QLabel" name="tagLabel"> <widget class="QLabel" name="tagLabel">
<property name="font"> <property name="font">
<font> <font>
<pointsize>13</pointsize>
<weight>3</weight> <weight>3</weight>
<italic>false</italic> <italic>false</italic>
<bold>false</bold> <bold>false</bold>
@ -49,7 +48,6 @@
<widget class="QLineEdit" name="tagEdit"> <widget class="QLineEdit" name="tagEdit">
<property name="font"> <property name="font">
<font> <font>
<pointsize>12</pointsize>
<weight>3</weight> <weight>3</weight>
<italic>false</italic> <italic>false</italic>
<bold>false</bold> <bold>false</bold>
@ -73,7 +71,7 @@
</layout> </layout>
</widget> </widget>
<resources> <resources>
<include location="../../images.qrc"/> <include location="../../res.qrc"/>
</resources> </resources>
<connections> <connections>
<connection> <connection>

View File

@ -14,7 +14,7 @@
<string>New Unit</string> <string>New Unit</string>
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset resource="../../images.qrc"> <iconset resource="../../res.qrc">
<normaloff>:/images/images/icon.png</normaloff>:/images/images/icon.png</iconset> <normaloff>:/images/images/icon.png</normaloff>:/images/images/icon.png</iconset>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
@ -31,7 +31,6 @@
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="font"> <property name="font">
<font> <font>
<pointsize>12</pointsize>
<weight>3</weight> <weight>3</weight>
<italic>false</italic> <italic>false</italic>
<bold>false</bold> <bold>false</bold>
@ -52,7 +51,6 @@
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="label_2">
<property name="font"> <property name="font">
<font> <font>
<pointsize>12</pointsize>
<weight>3</weight> <weight>3</weight>
<italic>false</italic> <italic>false</italic>
<bold>false</bold> <bold>false</bold>
@ -73,7 +71,6 @@
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_3">
<property name="font"> <property name="font">
<font> <font>
<pointsize>12</pointsize>
<weight>3</weight> <weight>3</weight>
<italic>false</italic> <italic>false</italic>
<bold>false</bold> <bold>false</bold>
@ -115,7 +112,6 @@
</property> </property>
<property name="font"> <property name="font">
<font> <font>
<pointsize>12</pointsize>
<weight>3</weight> <weight>3</weight>
<italic>false</italic> <italic>false</italic>
<bold>false</bold> <bold>false</bold>
@ -146,7 +142,6 @@
<widget class="QLabel" name="label_5"> <widget class="QLabel" name="label_5">
<property name="font"> <property name="font">
<font> <font>
<pointsize>12</pointsize>
<weight>3</weight> <weight>3</weight>
<italic>false</italic> <italic>false</italic>
<bold>false</bold> <bold>false</bold>
@ -189,7 +184,7 @@
</layout> </layout>
</widget> </widget>
<resources> <resources>
<include location="../../images.qrc"/> <include location="../../res.qrc"/>
</resources> </resources>
<connections> <connections>
<connection> <connection>

View File

@ -23,7 +23,7 @@
<string>New Recipe</string> <string>New Recipe</string>
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset resource="../images.qrc"> <iconset resource="../res.qrc">
<normaloff>:/images/images/icon.png</normaloff>:/images/images/icon.png</iconset> <normaloff>:/images/images/icon.png</normaloff>:/images/images/icon.png</iconset>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
@ -103,7 +103,6 @@
<widget class="QLineEdit" name="recipeNameEdit"> <widget class="QLineEdit" name="recipeNameEdit">
<property name="font"> <property name="font">
<font> <font>
<pointsize>14</pointsize>
<weight>3</weight> <weight>3</weight>
<italic>false</italic> <italic>false</italic>
<bold>false</bold> <bold>false</bold>
@ -127,7 +126,6 @@
<widget class="QLineEdit" name="authorNameEdit"> <widget class="QLineEdit" name="authorNameEdit">
<property name="font"> <property name="font">
<font> <font>
<pointsize>12</pointsize>
<weight>3</weight> <weight>3</weight>
<italic>false</italic> <italic>false</italic>
<bold>false</bold> <bold>false</bold>
@ -175,7 +173,7 @@
<second>0</second> <second>0</second>
<year>1999</year> <year>1999</year>
<month>12</month> <month>12</month>
<day>22</day> <day>21</day>
</datetime> </datetime>
</property> </property>
<property name="currentSection"> <property name="currentSection">
@ -326,7 +324,7 @@
<string notr="true">background-color: rgb(255, 255, 255);</string> <string notr="true">background-color: rgb(255, 255, 255);</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../images.qrc"> <iconset resource="../res.qrc">
<normaloff>:/images/images/plus_icon.png</normaloff>:/images/images/plus_icon.png</iconset> <normaloff>:/images/images/plus_icon.png</normaloff>:/images/images/plus_icon.png</iconset>
</property> </property>
</widget> </widget>
@ -340,7 +338,7 @@
<string notr="true">background-color: rgb(255, 255, 255);</string> <string notr="true">background-color: rgb(255, 255, 255);</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../images.qrc"> <iconset resource="../res.qrc">
<normaloff>:/images/images/minus_icon.png</normaloff>:/images/images/minus_icon.png</iconset> <normaloff>:/images/images/minus_icon.png</normaloff>:/images/images/minus_icon.png</iconset>
</property> </property>
</widget> </widget>
@ -578,7 +576,7 @@ QPushButton#deleteTagButton:pressed{
<string>Create a new ingredient</string> <string>Create a new ingredient</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../images.qrc"> <iconset resource="../res.qrc">
<normaloff>:/images/images/plus_icon.png</normaloff>:/images/images/plus_icon.png</iconset> <normaloff>:/images/images/plus_icon.png</normaloff>:/images/images/plus_icon.png</iconset>
</property> </property>
</widget> </widget>
@ -592,7 +590,7 @@ QPushButton#deleteTagButton:pressed{
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../images.qrc"> <iconset resource="../res.qrc">
<normaloff>:/images/images/minus_icon.png</normaloff>:/images/images/minus_icon.png</iconset> <normaloff>:/images/images/minus_icon.png</normaloff>:/images/images/minus_icon.png</iconset>
</property> </property>
</widget> </widget>
@ -676,7 +674,7 @@ QPushButton#deleteTagButton:pressed{
<string>Create a new unit of measure</string> <string>Create a new unit of measure</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../images.qrc"> <iconset resource="../res.qrc">
<normaloff>:/images/images/plus_icon.png</normaloff>:/images/images/plus_icon.png</iconset> <normaloff>:/images/images/plus_icon.png</normaloff>:/images/images/plus_icon.png</iconset>
</property> </property>
</widget> </widget>
@ -690,7 +688,7 @@ QPushButton#deleteTagButton:pressed{
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../images.qrc"> <iconset resource="../res.qrc">
<normaloff>:/images/images/minus_icon.png</normaloff>:/images/images/minus_icon.png</iconset> <normaloff>:/images/images/minus_icon.png</normaloff>:/images/images/minus_icon.png</iconset>
</property> </property>
</widget> </widget>
@ -864,7 +862,7 @@ QPushButton#removeIngredientButton:pressed{
<string/> <string/>
</property> </property>
<property name="pixmap"> <property name="pixmap">
<pixmap resource="../images.qrc">:/images/images/no_image.png</pixmap> <pixmap resource="../res.qrc">:/images/images/no_image.png</pixmap>
</property> </property>
<property name="scaledContents"> <property name="scaledContents">
<bool>false</bool> <bool>false</bool>
@ -990,7 +988,7 @@ QPushButton#removeIngredientButton:pressed{
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<resources> <resources>
<include location="../images.qrc"/> <include location="../res.qrc"/>
</resources> </resources>
<connections/> <connections/>
</ui> </ui>

View File

@ -14,7 +14,7 @@
<string>Open Recipe</string> <string>Open Recipe</string>
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset resource="../images.qrc"> <iconset resource="../res.qrc">
<normaloff>:/images/images/icon.png</normaloff>:/images/images/icon.png</iconset> <normaloff>:/images/images/icon.png</normaloff>:/images/images/icon.png</iconset>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
@ -67,7 +67,7 @@
</property> </property>
<widget class="QWidget" name="Tags"> <widget class="QWidget" name="Tags">
<attribute name="icon"> <attribute name="icon">
<iconset resource="../images.qrc"> <iconset resource="../res.qrc">
<normaloff>:/images/images/tag.png</normaloff>:/images/images/tag.png</iconset> <normaloff>:/images/images/tag.png</normaloff>:/images/images/tag.png</iconset>
</attribute> </attribute>
<attribute name="title"> <attribute name="title">
@ -121,7 +121,7 @@
</widget> </widget>
<widget class="QWidget" name="ingredientsTab"> <widget class="QWidget" name="ingredientsTab">
<attribute name="icon"> <attribute name="icon">
<iconset resource="../images.qrc"> <iconset resource="../res.qrc">
<normaloff>:/images/images/ingredients.png</normaloff>:/images/images/ingredients.png</iconset> <normaloff>:/images/images/ingredients.png</normaloff>:/images/images/ingredients.png</iconset>
</attribute> </attribute>
<attribute name="title"> <attribute name="title">
@ -175,7 +175,7 @@
</widget> </widget>
<widget class="QWidget" name="foodGroups"> <widget class="QWidget" name="foodGroups">
<attribute name="icon"> <attribute name="icon">
<iconset resource="../images.qrc"> <iconset resource="../res.qrc">
<normaloff>:/images/images/foodPyramid.png</normaloff>:/images/images/foodPyramid.png</iconset> <normaloff>:/images/images/foodPyramid.png</normaloff>:/images/images/foodPyramid.png</iconset>
</attribute> </attribute>
<attribute name="title"> <attribute name="title">
@ -237,7 +237,6 @@
<widget class="QLineEdit" name="nameEdit"> <widget class="QLineEdit" name="nameEdit">
<property name="font"> <property name="font">
<font> <font>
<pointsize>12</pointsize>
<weight>3</weight> <weight>3</weight>
<italic>false</italic> <italic>false</italic>
<bold>false</bold> <bold>false</bold>
@ -315,7 +314,7 @@ QPushButton#deleteRecipeButton:pressed{
<string/> <string/>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../images.qrc"> <iconset resource="../res.qrc">
<normaloff>:/images/images/trash.png</normaloff>:/images/images/trash.png</iconset> <normaloff>:/images/images/trash.png</normaloff>:/images/images/trash.png</iconset>
</property> </property>
</widget> </widget>
@ -370,7 +369,6 @@ QPushButton#exitButton:pressed{
<widget class="QTableView" name="recipeTableView"> <widget class="QTableView" name="recipeTableView">
<property name="font"> <property name="font">
<font> <font>
<pointsize>14</pointsize>
<weight>3</weight> <weight>3</weight>
<italic>false</italic> <italic>false</italic>
<bold>false</bold> <bold>false</bold>
@ -411,7 +409,7 @@ QPushButton#exitButton:pressed{
</layout> </layout>
</widget> </widget>
<resources> <resources>
<include location="../images.qrc"/> <include location="../res.qrc"/>
</resources> </resources>
<connections/> <connections/>
</ui> </ui>

View File

@ -41,7 +41,9 @@ Recipe checkForFirstRun(RecipeDatabase *recipeDB){
} }
void loadAndSetFonts(){ void loadAndSetFonts(){
QFontDatabase:: int id = QFontDatabase::addApplicationFont(":/fonts/NotoSans-Light.ttf");
QString family = QFontDatabase::applicationFontFamilies(id).at(0);
printf("%s\n", family.toStdString().c_str());
} }
int main(int argc, char *argv[]) int main(int argc, char *argv[])
@ -49,6 +51,9 @@ int main(int argc, char *argv[])
RecipeDatabase recipeDB(QString(FileUtils::appDataPath+"recipes.db").toStdString()); RecipeDatabase recipeDB(QString(FileUtils::appDataPath+"recipes.db").toStdString());
QApplication a(argc, argv); QApplication a(argc, argv);
loadAndSetFonts();
MainWindow w(&recipeDB); MainWindow w(&recipeDB);
w.loadFromRecipe(checkForFirstRun(&recipeDB)); w.loadFromRecipe(checkForFirstRun(&recipeDB));
w.show(); w.show();

View File

@ -5,6 +5,7 @@ IngredientListModel::IngredientListModel(){
} }
int IngredientListModel::rowCount(const QModelIndex &parent) const{ int IngredientListModel::rowCount(const QModelIndex &parent) const{
Q_UNUSED(parent);
return this->ingredients.size(); return this->ingredients.size();
} }

View File

@ -5,6 +5,7 @@ RecipeIngredientListModel::RecipeIngredientListModel(){
} }
int RecipeIngredientListModel::rowCount(const QModelIndex &parent) const{ int RecipeIngredientListModel::rowCount(const QModelIndex &parent) const{
Q_UNUSED(parent);
return this->ingredients.size(); return this->ingredients.size();
} }

View File

@ -5,6 +5,7 @@ TagListModel::TagListModel(){
} }
int TagListModel::rowCount(const QModelIndex &parent) const{ int TagListModel::rowCount(const QModelIndex &parent) const{
Q_UNUSED(parent);
return this->tags.size(); return this->tags.size();
} }

View File

@ -10,4 +10,8 @@
<file>images/foodPyramid.png</file> <file>images/foodPyramid.png</file>
<file>images/ingredients.png</file> <file>images/ingredients.png</file>
</qresource> </qresource>
<qresource prefix="/fonts">
<file>fonts/NotoSans-Light.ttf</file>
<file>fonts/NotoSans-LightItalic.ttf</file>
</qresource>
</RCC> </RCC>

View File

@ -31,6 +31,7 @@ QPixmap AspectRatioPixmapLabel::scaledPixmap() const
void AspectRatioPixmapLabel::resizeEvent(QResizeEvent * e) void AspectRatioPixmapLabel::resizeEvent(QResizeEvent * e)
{ {
Q_UNUSED(e);
if(!pix.isNull()) if(!pix.isNull())
QLabel::setPixmap(scaledPixmap()); QLabel::setPixmap(scaledPixmap());
} }