|
@@ -0,0 +1,1008 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<ui version="4.0">
|
|
|
+ <class>MainWindow</class>
|
|
|
+ <widget class="QMainWindow" name="MainWindow">
|
|
|
+ <property name="geometry">
|
|
|
+ <rect>
|
|
|
+ <x>0</x>
|
|
|
+ <y>0</y>
|
|
|
+ <width>400</width>
|
|
|
+ <height>500</height>
|
|
|
+ </rect>
|
|
|
+ </property>
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="minimumSize">
|
|
|
+ <size>
|
|
|
+ <width>400</width>
|
|
|
+ <height>500</height>
|
|
|
+ </size>
|
|
|
+ </property>
|
|
|
+ <property name="maximumSize">
|
|
|
+ <size>
|
|
|
+ <width>400</width>
|
|
|
+ <height>500</height>
|
|
|
+ </size>
|
|
|
+ </property>
|
|
|
+ <property name="windowTitle">
|
|
|
+ <string>Calculator : by Rahul</string>
|
|
|
+ </property>
|
|
|
+ <property name="windowIcon">
|
|
|
+ <iconset resource="../resources/Calculator.qrc">
|
|
|
+ <normaloff>:/images/images/Calculator.png</normaloff>:/images/images/Calculator.png</iconset>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true"/>
|
|
|
+ </property>
|
|
|
+ <widget class="QWidget" name="centralwidget">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">background-color : #336699;</string>
|
|
|
+ </property>
|
|
|
+ <layout class="QVBoxLayout" name="verticalLayout">
|
|
|
+ <item>
|
|
|
+ <layout class="QGridLayout" name="grid" rowstretch="1,4,2,2,2,2,2">
|
|
|
+ <property name="sizeConstraint">
|
|
|
+ <enum>QLayout::SetDefaultConstraint</enum>
|
|
|
+ </property>
|
|
|
+ <property name="spacing">
|
|
|
+ <number>0</number>
|
|
|
+ </property>
|
|
|
+ <item row="5" column="1">
|
|
|
+ <widget class="QPushButton" name="button_2">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : white;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : black;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>2</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="3" column="2">
|
|
|
+ <widget class="QPushButton" name="button_9">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : white;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : black;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>9</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="5" column="2">
|
|
|
+ <widget class="QPushButton" name="button_3">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : white;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : black;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>3</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="4" column="1">
|
|
|
+ <widget class="QPushButton" name="button_5">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : white;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : black;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>5</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="5" column="0">
|
|
|
+ <widget class="QPushButton" name="button_1">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : white;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : black;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>1</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="3" column="0">
|
|
|
+ <widget class="QPushButton" name="button_7">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : white;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : black;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>7</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="3" column="3">
|
|
|
+ <widget class="QPushButton" name="button_mult">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : #e65c00;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>*</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="2" column="2">
|
|
|
+ <widget class="QPushButton" name="button_ans">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="toolTip">
|
|
|
+ <string>Answer</string>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : #009933;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>Ans</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="4" column="3">
|
|
|
+ <widget class="QPushButton" name="button_add">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : #e65c00;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>+</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="4" column="0">
|
|
|
+ <widget class="QPushButton" name="button_4">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : white;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : black;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>4</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="2" column="0">
|
|
|
+ <widget class="QPushButton" name="button_ac">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="toolTip">
|
|
|
+ <string>All Clear</string>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : #bd0f0f;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>AC</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="6" column="2">
|
|
|
+ <widget class="QPushButton" name="button_equal">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : #009933;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>=</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="2" column="3">
|
|
|
+ <widget class="QPushButton" name="button_div">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : #e65c00;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>/</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="6" column="1">
|
|
|
+ <widget class="QPushButton" name="button_0">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : white;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : black;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>0</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="3" column="1">
|
|
|
+ <widget class="QPushButton" name="button_8">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : white;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : black;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>8</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="6" column="0">
|
|
|
+ <widget class="QPushButton" name="button_dot">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : white;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : black;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>.</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="0" column="0" colspan="4">
|
|
|
+ <widget class="QLabel" name="ans_label">
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>15</pointsize>
|
|
|
+ <weight>50</weight>
|
|
|
+ <bold>false</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">background-color : white;
|
|
|
+border : none;
|
|
|
+padding: 7px;
|
|
|
+color : grey;</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string/>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="5" column="3">
|
|
|
+ <widget class="QPushButton" name="button_sub">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : #e65c00;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>-</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="2" column="1">
|
|
|
+ <widget class="QPushButton" name="button_del">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="toolTip">
|
|
|
+ <string>Backspace</string>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : #bd0f0f;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>Del</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="6" column="3">
|
|
|
+ <widget class="QPushButton" name="button_exp">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : #e65c00;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>^</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="4" column="2">
|
|
|
+ <widget class="QPushButton" name="button_6">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>18</pointsize>
|
|
|
+ <weight>75</weight>
|
|
|
+ <bold>true</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">QPushButton
|
|
|
+{
|
|
|
+ background-color : #336699;
|
|
|
+ border : none;
|
|
|
+ color : white;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+QPushButton:hover
|
|
|
+{
|
|
|
+ background-color : white;
|
|
|
+ border : none;
|
|
|
+ border-radius : 7px;
|
|
|
+ color : black;
|
|
|
+ margin: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>6</string>
|
|
|
+ </property>
|
|
|
+ <property name="flat">
|
|
|
+ <bool>true</bool>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ <item row="1" column="0" colspan="4">
|
|
|
+ <widget class="QLabel" name="display">
|
|
|
+ <property name="sizePolicy">
|
|
|
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
+ <horstretch>0</horstretch>
|
|
|
+ <verstretch>0</verstretch>
|
|
|
+ </sizepolicy>
|
|
|
+ </property>
|
|
|
+ <property name="font">
|
|
|
+ <font>
|
|
|
+ <family>Arial</family>
|
|
|
+ <pointsize>30</pointsize>
|
|
|
+ <weight>50</weight>
|
|
|
+ <bold>false</bold>
|
|
|
+ </font>
|
|
|
+ </property>
|
|
|
+ <property name="styleSheet">
|
|
|
+ <string notr="true">background-color: white;
|
|
|
+color : black;
|
|
|
+padding : 10px;</string>
|
|
|
+ </property>
|
|
|
+ <property name="text">
|
|
|
+ <string>0</string>
|
|
|
+ </property>
|
|
|
+ <property name="alignment">
|
|
|
+ <set>Qt::AlignBottom|Qt::AlignRight|Qt::AlignTrailing</set>
|
|
|
+ </property>
|
|
|
+ </widget>
|
|
|
+ </item>
|
|
|
+ </layout>
|
|
|
+ </item>
|
|
|
+ </layout>
|
|
|
+ </widget>
|
|
|
+ </widget>
|
|
|
+ <resources>
|
|
|
+ <include location="../resources/Calculator.qrc"/>
|
|
|
+ </resources>
|
|
|
+ <connections/>
|
|
|
+</ui>
|