Skip to content

Commit

Permalink
Merge pull request #138 from Josh-Voyles/default-values
Browse files Browse the repository at this point in the history
Fixed #136, text boxes have limited entry via regex, placeholders, an…
  • Loading branch information
randy-shreeves authored Jul 3, 2024
2 parents 9504e6b + dcf52f8 commit 47c757d
Show file tree
Hide file tree
Showing 4 changed files with 255 additions and 170 deletions.
137 changes: 103 additions & 34 deletions home-choice-pro/resources/main_window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ QPushButton:hover {
<item>
<widget class="QLabel" name="homeAffordabilityLabel">
<property name="text">
<string>Home Affordability:</string>
<string>Your Max House Price:</string>
</property>
</widget>
</item>
Expand Down Expand Up @@ -458,7 +458,7 @@ QPushButton:hover {
</property>
<property name="sizeHint" stdset="0">
<size>
<width>100</width>
<width>80</width>
<height>20</height>
</size>
</property>
Expand Down Expand Up @@ -521,7 +521,7 @@ QPushButton:hover {
</property>
<property name="sizeHint" stdset="0">
<size>
<width>120</width>
<width>100</width>
<height>20</height>
</size>
</property>
Expand Down Expand Up @@ -684,7 +684,7 @@ QPushButton:hover {
<property name="geometry">
<rect>
<x>0</x>
<y>-54</y>
<y>0</y>
<width>645</width>
<height>600</height>
</rect>
Expand Down Expand Up @@ -765,7 +765,7 @@ QPushButton:hover {
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<width>30</width>
<height>20</height>
</size>
</property>
Expand All @@ -775,7 +775,7 @@ QPushButton:hover {
<widget class="QLabel" name="monthlyPaymentLabel">
<property name="minimumSize">
<size>
<width>200</width>
<width>225</width>
<height>0</height>
</size>
</property>
Expand All @@ -786,7 +786,7 @@ QPushButton:hover {
<string notr="true"/>
</property>
<property name="text">
<string>Monthly Budget:</string>
<string>Desired Monthly Payment:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
Expand Down Expand Up @@ -832,12 +832,36 @@ QPushButton:hover {
<height>16777215</height>
</size>
</property>
<property name="inputMask">
<string/>
</property>
<property name="text">
<string>0</string>
<string/>
</property>
<property name="maxLength">
<number>32767</number>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="echoMode">
<enum>QLineEdit::Normal</enum>
</property>
<property name="cursorPosition">
<number>0</number>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="placeholderText">
<string>3000</string>
</property>
<property name="cursorMoveStyle">
<enum>Qt::LogicalMoveStyle</enum>
</property>
<property name="clearButtonEnabled">
<bool>false</bool>
</property>
</widget>
</item>
<item>
Expand Down Expand Up @@ -905,7 +929,7 @@ QPushButton:hover {
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<width>30</width>
<height>20</height>
</size>
</property>
Expand All @@ -915,7 +939,7 @@ QPushButton:hover {
<widget class="QLabel" name="downPaymentLabel">
<property name="minimumSize">
<size>
<width>200</width>
<width>225</width>
<height>0</height>
</size>
</property>
Expand Down Expand Up @@ -966,12 +990,21 @@ QPushButton:hover {
<height>16777215</height>
</size>
</property>
<property name="inputMask">
<string/>
</property>
<property name="text">
<string>0</string>
<string/>
</property>
<property name="maxLength">
<number>32767</number>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="placeholderText">
<string>80000</string>
</property>
</widget>
</item>
<item>
Expand Down Expand Up @@ -1030,7 +1063,7 @@ QPushButton:hover {
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<width>30</width>
<height>20</height>
</size>
</property>
Expand All @@ -1040,7 +1073,7 @@ QPushButton:hover {
<widget class="QLabel" name="interestRateLabel">
<property name="minimumSize">
<size>
<width>200</width>
<width>225</width>
<height>0</height>
</size>
</property>
Expand Down Expand Up @@ -1094,18 +1127,27 @@ QPushButton:hover {
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string>0</string>
<property name="inputMask">
<string/>
</property>
<property name="maxLength">
<number>32767</number>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="cursorPosition">
<number>1</number>
<number>0</number>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="placeholderText">
<string>6.125</string>
</property>
<property name="cursorMoveStyle">
<enum>Qt::LogicalMoveStyle</enum>
</property>
</widget>
</item>
<item>
Expand Down Expand Up @@ -1161,7 +1203,7 @@ QPushButton:hover {
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<width>30</width>
<height>20</height>
</size>
</property>
Expand All @@ -1180,7 +1222,7 @@ QPushButton:hover {
</property>
<property name="minimumSize">
<size>
<width>200</width>
<width>225</width>
<height>0</height>
</size>
</property>
Expand Down Expand Up @@ -1299,7 +1341,7 @@ QPushButton:hover {
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<width>30</width>
<height>20</height>
</size>
</property>
Expand All @@ -1309,7 +1351,7 @@ QPushButton:hover {
<widget class="QLabel" name="HOALabel">
<property name="minimumSize">
<size>
<width>200</width>
<width>225</width>
<height>0</height>
</size>
</property>
Expand Down Expand Up @@ -1367,11 +1409,17 @@ QPushButton:hover {
</size>
</property>
<property name="text">
<string>0</string>
<string/>
</property>
<property name="maxLength">
<number>9</number>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="placeholderText">
<string>350</string>
</property>
</widget>
</item>
<item>
Expand Down Expand Up @@ -1427,7 +1475,7 @@ QPushButton:hover {
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<width>30</width>
<height>20</height>
</size>
</property>
Expand All @@ -1437,7 +1485,7 @@ QPushButton:hover {
<widget class="QLabel" name="propertyTaxLabel">
<property name="minimumSize">
<size>
<width>200</width>
<width>225</width>
<height>0</height>
</size>
</property>
Expand Down Expand Up @@ -1495,11 +1543,17 @@ QPushButton:hover {
</size>
</property>
<property name="text">
<string>0</string>
<string/>
</property>
<property name="maxLength">
<number>6</number>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="placeholderText">
<string>0.74</string>
</property>
</widget>
</item>
<item>
Expand Down Expand Up @@ -1555,7 +1609,7 @@ QPushButton:hover {
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<width>30</width>
<height>20</height>
</size>
</property>
Expand All @@ -1565,15 +1619,15 @@ QPushButton:hover {
<widget class="QLabel" name="PMILabel">
<property name="minimumSize">
<size>
<width>200</width>
<width>225</width>
<height>0</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>PMI:</string>
<string>Private Mortgage Insurance:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
Expand Down Expand Up @@ -1623,11 +1677,17 @@ QPushButton:hover {
</size>
</property>
<property name="text">
<string>0</string>
<string/>
</property>
<property name="maxLength">
<number>6</number>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="placeholderText">
<string>1.01</string>
</property>
</widget>
</item>
<item>
Expand Down Expand Up @@ -1683,7 +1743,7 @@ QPushButton:hover {
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<width>30</width>
<height>20</height>
</size>
</property>
Expand All @@ -1693,15 +1753,15 @@ QPushButton:hover {
<widget class="QLabel" name="insuranceLabel">
<property name="minimumSize">
<size>
<width>200</width>
<width>225</width>
<height>0</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>Insurance:</string>
<string>Homeowner's Insurance</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
Expand Down Expand Up @@ -1751,11 +1811,20 @@ QPushButton:hover {
</size>
</property>
<property name="text">
<string>0</string>
<string/>
</property>
<property name="maxLength">
<number>6</number>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="placeholderText">
<string>0.74</string>
</property>
<property name="cursorMoveStyle">
<enum>Qt::LogicalMoveStyle</enum>
</property>
</widget>
</item>
<item>
Expand Down Expand Up @@ -2035,8 +2104,8 @@ QPushButton:pressed {
<rect>
<x>0</x>
<y>0</y>
<width>660</width>
<height>546</height>
<width>83</width>
<height>53</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
Expand Down
Loading

0 comments on commit 47c757d

Please sign in to comment.