Wed, 30 Mar 2022 17:21:43 +0200
The RangedSlider plugin works for now and appears in de QT-designer interface. Installed for test in the recipe editor.
CMakeLists.txt | file | annotate | diff | comparison | revisions | |
ui/EditRecipe.ui | file | annotate | diff | comparison | revisions |
--- a/CMakeLists.txt Wed Mar 30 15:31:57 2022 +0200 +++ b/CMakeLists.txt Wed Mar 30 17:21:43 2022 +0200 @@ -115,7 +115,7 @@ set( SRC_FILES ${SRCDIR}/RangedSlider.cpp - ${SRCDIR}/nulldateedit.cpp + # ${SRCDIR}/nulldateedit.cpp ) # By default only QtCore and QtGui are enabled @@ -123,15 +123,15 @@ set( MOC_FILES ${SRCDIR}/RangedSlider.h - ${SRCDIR}/nulldateedit.h + # ${SRCDIR}/nulldateedit.h ) set( PLUGIN_MOCS - # designer/*.h + designer/RangedSliderPlugin.h ) set( PLUGIN_SRCS - # designer/*.cpp + designer/RangedSliderPlugin.cpp ) add_library( bmsapp_plugins SHARED @@ -179,6 +179,7 @@ ${SRCDIR}/PrinterDialog.cpp ${SRCDIR}/MainWindow.cpp ${SRCDIR}/database/database.cpp + ${SRCDIR}/RangedSlider.cpp ${SRCDIR}/nulldateedit.cpp ) @@ -213,6 +214,7 @@ ${SRCDIR}/PrinterDialog.h ${SRCDIR}/MainWindow.h ${SRCDIR}/database/database.h + ${SRCDIR}/RangedSlider.h ${SRCDIR}/nulldateedit.h )
--- a/ui/EditRecipe.ui Wed Mar 30 15:31:57 2022 +0200 +++ b/ui/EditRecipe.ui Wed Mar 30 17:21:43 2022 +0200 @@ -391,6 +391,38 @@ <double>0.500000000000000</double> </property> </widget> + <widget class="RangedSlider" name="est_ogShow"> + <property name="geometry"> + <rect> + <x>140</x> + <y>200</y> + <width>148</width> + <height>37</height> + </rect> + </property> + <property name="toolTip"> + <string>The ranged slider</string> + </property> + <property name="whatsThis"> + <string>Slider that shows if a value is in range.</string> + </property> + </widget> + <widget class="QLabel" name="est_ogLabel"> + <property name="geometry"> + <rect> + <x>0</x> + <y>200</y> + <width>131</width> + <height>20</height> + </rect> + </property> + <property name="text"> + <string>Estimated OG:</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + </widget> </widget> <widget class="QWidget" name="fermentables"> <attribute name="icon"> @@ -485,6 +517,13 @@ </item> </layout> </widget> + <customwidgets> + <customwidget> + <class>RangedSlider</class> + <extends>QWidget</extends> + <header>RangedSlider.h</header> + </customwidget> + </customwidgets> <tabstops> <tabstop>quitButton</tabstop> <tabstop>deleteButton</tabstop>