191 lines
4.5 KiB
Text
191 lines
4.5 KiB
Text
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<ui version="4.0">
|
||
|
<class>Calculator</class>
|
||
|
<widget class="QMainWindow" name="Calculator">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>0</x>
|
||
|
<y>0</y>
|
||
|
<width>358</width>
|
||
|
<height>256</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
<property name="windowTitle">
|
||
|
<string>Calculator</string>
|
||
|
</property>
|
||
|
<widget class="QWidget" name="centralwidget">
|
||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||
|
<item>
|
||
|
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||
|
<item>
|
||
|
<widget class="QLineEdit" name="e_display">
|
||
|
<property name="text">
|
||
|
<string>0</string>
|
||
|
</property>
|
||
|
<property name="readOnly">
|
||
|
<bool>true</bool>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_ce">
|
||
|
<property name="text">
|
||
|
<string>CE</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_ac">
|
||
|
<property name="text">
|
||
|
<string>AC</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</item>
|
||
|
<item>
|
||
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_7">
|
||
|
<property name="text">
|
||
|
<string>7</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_8">
|
||
|
<property name="text">
|
||
|
<string>8</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_9">
|
||
|
<property name="text">
|
||
|
<string>9</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_divide">
|
||
|
<property name="text">
|
||
|
<string>/</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</item>
|
||
|
<item>
|
||
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_4">
|
||
|
<property name="text">
|
||
|
<string>4</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_5">
|
||
|
<property name="text">
|
||
|
<string>5</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_6">
|
||
|
<property name="text">
|
||
|
<string>6</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_multiply">
|
||
|
<property name="text">
|
||
|
<string>*</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</item>
|
||
|
<item>
|
||
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_1">
|
||
|
<property name="text">
|
||
|
<string>1</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_2">
|
||
|
<property name="text">
|
||
|
<string>2</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_3">
|
||
|
<property name="text">
|
||
|
<string>3</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_subtract">
|
||
|
<property name="text">
|
||
|
<string>-</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</item>
|
||
|
<item>
|
||
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_0">
|
||
|
<property name="text">
|
||
|
<string>0</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_dot">
|
||
|
<property name="text">
|
||
|
<string>.</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_equals">
|
||
|
<property name="text">
|
||
|
<string>=</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QPushButton" name="b_add">
|
||
|
<property name="text">
|
||
|
<string>+</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</widget>
|
||
|
<widget class="QMenuBar" name="menubar">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>0</x>
|
||
|
<y>0</y>
|
||
|
<width>358</width>
|
||
|
<height>25</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
</widget>
|
||
|
<widget class="QStatusBar" name="statusbar"/>
|
||
|
</widget>
|
||
|
<resources/>
|
||
|
<connections/>
|
||
|
</ui>
|