Add resize policy for mainwindow

This commit is contained in:
Bjoern Kerler 2021-12-29 14:09:14 +01:00
parent 3a143f3c46
commit 6dac6293e1
2 changed files with 403 additions and 438 deletions

View file

@ -18,14 +18,13 @@ class Ui_MainWindow(object):
if not MainWindow.objectName(): if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow") MainWindow.setObjectName(u"MainWindow")
MainWindow.setWindowModality(Qt.NonModal) MainWindow.setWindowModality(Qt.NonModal)
MainWindow.resize(746, 600) MainWindow.resize(746, 574)
sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.MinimumExpanding) sizePolicy = QSizePolicy(QSizePolicy.MinimumExpanding, QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0) sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0) sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth()) sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy) MainWindow.setSizePolicy(sizePolicy)
MainWindow.setMinimumSize(QSize(746, 400)) MainWindow.setMinimumSize(QSize(746, 400))
MainWindow.setMaximumSize(QSize(746, 600))
MainWindow.setAcceptDrops(False) MainWindow.setAcceptDrops(False)
MainWindow.setAutoFillBackground(False) MainWindow.setAutoFillBackground(False)
self.actionRead_partition_s = QAction(MainWindow) self.actionRead_partition_s = QAction(MainWindow)
@ -54,106 +53,22 @@ class Ui_MainWindow(object):
self.actionGenerate_RPMB_keys.setObjectName(u"actionGenerate_RPMB_keys") self.actionGenerate_RPMB_keys.setObjectName(u"actionGenerate_RPMB_keys")
self.centralwidget = QWidget(MainWindow) self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget") self.centralwidget.setObjectName(u"centralwidget")
self.line = QFrame(self.centralwidget)
self.line.setObjectName(u"line")
self.line.setGeometry(QRect(12, 160, 722, 16))
self.line.setFrameShape(QFrame.HLine)
self.line.setFrameShadow(QFrame.Sunken)
self.logBox = QPlainTextEdit(self.centralwidget)
self.logBox.setObjectName(u"logBox")
self.logBox.setGeometry(QRect(12, 401, 722, 186))
self.logBox.setMinimumSize(QSize(722, 0))
self.logBox.setMaximumSize(QSize(722, 186))
self.logBox.setStyleSheet(u"")
self.logBox.setReadOnly(True)
self.logBox.setProperty("hidden", False)
self.layoutWidget2 = QWidget(self.centralwidget)
self.layoutWidget2.setObjectName(u"layoutWidget2")
self.layoutWidget2.setGeometry(QRect(12, 184, 721, 141))
self.horizontalLayout_2 = QHBoxLayout(self.layoutWidget2)
self.horizontalLayout_2.setSpacing(10)
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.logoPic = QLabel(self.layoutWidget2)
self.logoPic.setObjectName(u"logoPic")
sizePolicy1 = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.logoPic.sizePolicy().hasHeightForWidth())
self.logoPic.setSizePolicy(sizePolicy1)
self.logoPic.setMinimumSize(QSize(128, 128))
self.logoPic.setMaximumSize(QSize(128, 128))
self.logoPic.setPixmap(QPixmap(u"images/logo_256.png"))
self.logoPic.setScaledContents(True)
self.logoPic.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop)
self.horizontalLayout_2.addWidget(self.logoPic)
self.copyrightInfo = QLabel(self.layoutWidget2)
self.copyrightInfo.setObjectName(u"copyrightInfo")
sizePolicy2 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed)
sizePolicy2.setHorizontalStretch(0)
sizePolicy2.setVerticalStretch(0)
sizePolicy2.setHeightForWidth(self.copyrightInfo.sizePolicy().hasHeightForWidth())
self.copyrightInfo.setSizePolicy(sizePolicy2)
self.horizontalLayout_2.addWidget(self.copyrightInfo)
self.layoutWidget = QWidget(self.centralwidget)
self.layoutWidget.setObjectName(u"layoutWidget")
self.layoutWidget.setGeometry(QRect(12, 359, 721, 32))
self.horizontalLayout_4 = QHBoxLayout(self.layoutWidget)
self.horizontalLayout_4.setSpacing(0)
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
self.horizontalLayout_4.setSizeConstraint(QLayout.SetNoConstraint)
self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(self.horizontalSpacer)
self.debugBtn = QPushButton(self.layoutWidget)
self.debugBtn.setObjectName(u"debugBtn")
sizePolicy1.setHeightForWidth(self.debugBtn.sizePolicy().hasHeightForWidth())
self.debugBtn.setSizePolicy(sizePolicy1)
self.debugBtn.setMinimumSize(QSize(110, 0))
self.debugBtn.setAutoDefault(False)
self.debugBtn.setFlat(False)
self.horizontalLayout_4.addWidget(self.debugBtn)
self.pic = QLabel(self.centralwidget)
self.pic.setObjectName(u"pic")
self.pic.setGeometry(QRect(644, 10, 87, 128))
sizePolicy1.setHeightForWidth(self.pic.sizePolicy().hasHeightForWidth())
self.pic.setSizePolicy(sizePolicy1)
self.pic.setMinimumSize(QSize(60, 128))
self.pic.setMaximumSize(QSize(87, 128))
self.pic.setPixmap(QPixmap(u"images/phone_notfound.png"))
self.pic.setScaledContents(True)
self.pic.setAlignment(Qt.AlignCenter)
self.pic.setWordWrap(False)
self.phoneInfoTextbox = QLabel(self.centralwidget)
self.phoneInfoTextbox.setObjectName(u"phoneInfoTextbox")
self.phoneInfoTextbox.setGeometry(QRect(433, 10, 201, 91))
sizePolicy3 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
sizePolicy3.setHorizontalStretch(0)
sizePolicy3.setVerticalStretch(0)
sizePolicy3.setHeightForWidth(self.phoneInfoTextbox.sizePolicy().hasHeightForWidth())
self.phoneInfoTextbox.setSizePolicy(sizePolicy3)
self.phoneInfoTextbox.setAlignment(Qt.AlignRight|Qt.AlignTop|Qt.AlignTrailing)
self.phoneInfoTextbox.setWordWrap(True)
self.spinner_pic = QLabel(self.centralwidget) self.spinner_pic = QLabel(self.centralwidget)
self.spinner_pic.setObjectName(u"spinner_pic") self.spinner_pic.setObjectName(u"spinner_pic")
self.spinner_pic.setGeometry(QRect(655, 42, 64, 64)) self.spinner_pic.setGeometry(QRect(655, 42, 64, 64))
sizePolicy1 = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.spinner_pic.sizePolicy().hasHeightForWidth()) sizePolicy1.setHeightForWidth(self.spinner_pic.sizePolicy().hasHeightForWidth())
self.spinner_pic.setSizePolicy(sizePolicy1) self.spinner_pic.setSizePolicy(sizePolicy1)
self.spinner_pic.setPixmap(QPixmap(u"images/phone_loading.png")) self.spinner_pic.setPixmap(QPixmap(u"images/phone_loading.png"))
self.spinner_pic.setScaledContents(False) self.spinner_pic.setScaledContents(False)
self.spinner_pic.setAlignment(Qt.AlignCenter) self.spinner_pic.setAlignment(Qt.AlignCenter)
self.gridLayout = QGridLayout(self.centralwidget)
self.gridLayout.setObjectName(u"gridLayout")
self.title = QLabel(self.centralwidget) self.title = QLabel(self.centralwidget)
self.title.setObjectName(u"title") self.title.setObjectName(u"title")
self.title.setEnabled(True) self.title.setEnabled(True)
self.title.setGeometry(QRect(14, 10, 231, 24))
sizePolicy1.setHeightForWidth(self.title.sizePolicy().hasHeightForWidth()) sizePolicy1.setHeightForWidth(self.title.sizePolicy().hasHeightForWidth())
self.title.setSizePolicy(sizePolicy1) self.title.setSizePolicy(sizePolicy1)
self.title.setMinimumSize(QSize(0, 24)) self.title.setMinimumSize(QSize(0, 24))
@ -168,20 +83,119 @@ class Ui_MainWindow(object):
self.title.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop) self.title.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop)
self.title.setWordWrap(False) self.title.setWordWrap(False)
self.title.setIndent(0) self.title.setIndent(0)
self.gridLayout.addWidget(self.title, 0, 0, 1, 1)
self.pic = QLabel(self.centralwidget)
self.pic.setObjectName(u"pic")
sizePolicy1.setHeightForWidth(self.pic.sizePolicy().hasHeightForWidth())
self.pic.setSizePolicy(sizePolicy1)
self.pic.setMinimumSize(QSize(60, 128))
self.pic.setMaximumSize(QSize(87, 128))
self.pic.setPixmap(QPixmap(u"images/phone_notfound.png"))
self.pic.setScaledContents(True)
self.pic.setAlignment(Qt.AlignCenter)
self.pic.setWordWrap(False)
self.gridLayout.addWidget(self.pic, 0, 3, 2, 1)
self.phoneInfoTextbox = QLabel(self.centralwidget)
self.phoneInfoTextbox.setObjectName(u"phoneInfoTextbox")
sizePolicy2 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
sizePolicy2.setHorizontalStretch(0)
sizePolicy2.setVerticalStretch(0)
sizePolicy2.setHeightForWidth(self.phoneInfoTextbox.sizePolicy().hasHeightForWidth())
self.phoneInfoTextbox.setSizePolicy(sizePolicy2)
self.phoneInfoTextbox.setAlignment(Qt.AlignRight|Qt.AlignTop|Qt.AlignTrailing)
self.phoneInfoTextbox.setWordWrap(True)
self.gridLayout.addWidget(self.phoneInfoTextbox, 0, 2, 1, 1)
self.line = QFrame(self.centralwidget)
self.line.setObjectName(u"line")
self.line.setFrameShape(QFrame.HLine)
self.line.setFrameShadow(QFrame.Sunken)
self.gridLayout.addWidget(self.line, 2, 0, 1, 4)
self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setSpacing(10)
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.logoPic = QLabel(self.centralwidget)
self.logoPic.setObjectName(u"logoPic")
sizePolicy1.setHeightForWidth(self.logoPic.sizePolicy().hasHeightForWidth())
self.logoPic.setSizePolicy(sizePolicy1)
self.logoPic.setMinimumSize(QSize(128, 128))
self.logoPic.setMaximumSize(QSize(128, 128))
self.logoPic.setPixmap(QPixmap(u"images/logo_256.png"))
self.logoPic.setScaledContents(True)
self.logoPic.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop)
self.horizontalLayout_2.addWidget(self.logoPic)
self.copyrightInfo = QLabel(self.centralwidget)
self.copyrightInfo.setObjectName(u"copyrightInfo")
sizePolicy3 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed)
sizePolicy3.setHorizontalStretch(0)
sizePolicy3.setVerticalStretch(0)
sizePolicy3.setHeightForWidth(self.copyrightInfo.sizePolicy().hasHeightForWidth())
self.copyrightInfo.setSizePolicy(sizePolicy3)
self.horizontalLayout_2.addWidget(self.copyrightInfo)
self.gridLayout.addLayout(self.horizontalLayout_2, 3, 0, 1, 4)
self.status = QLabel(self.centralwidget) self.status = QLabel(self.centralwidget)
self.status.setObjectName(u"status") self.status.setObjectName(u"status")
self.status.setGeometry(QRect(14, 40, 451, 111)) sizePolicy2.setHeightForWidth(self.status.sizePolicy().hasHeightForWidth())
sizePolicy3.setHeightForWidth(self.status.sizePolicy().hasHeightForWidth()) self.status.setSizePolicy(sizePolicy2)
self.status.setSizePolicy(sizePolicy3)
self.status.setMinimumSize(QSize(400, 0)) self.status.setMinimumSize(QSize(400, 0))
self.status.setTextFormat(Qt.AutoText) self.status.setTextFormat(Qt.AutoText)
self.status.setScaledContents(False) self.status.setScaledContents(False)
self.status.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop) self.status.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop)
self.status.setWordWrap(False) self.status.setWordWrap(False)
self.gridLayout.addWidget(self.status, 1, 0, 1, 3)
self.logBox = QPlainTextEdit(self.centralwidget)
self.logBox.setObjectName(u"logBox")
self.logBox.setMinimumSize(QSize(722, 0))
self.logBox.setStyleSheet(u"")
self.logBox.setReadOnly(True)
self.logBox.setProperty("hidden", False)
self.gridLayout.addWidget(self.logBox, 5, 0, 1, 4)
self.horizontalLayout_4 = QHBoxLayout()
self.horizontalLayout_4.setSpacing(0)
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
self.horizontalLayout_4.setSizeConstraint(QLayout.SetNoConstraint)
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(self.horizontalSpacer)
self.debugBtn = QPushButton(self.centralwidget)
self.debugBtn.setObjectName(u"debugBtn")
sizePolicy1.setHeightForWidth(self.debugBtn.sizePolicy().hasHeightForWidth())
self.debugBtn.setSizePolicy(sizePolicy1)
self.debugBtn.setMinimumSize(QSize(110, 0))
self.debugBtn.setAutoDefault(False)
self.debugBtn.setFlat(False)
self.horizontalLayout_4.addWidget(self.debugBtn)
self.gridLayout.addLayout(self.horizontalLayout_4, 4, 0, 1, 4)
self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.gridLayout.addItem(self.horizontalSpacer_2, 0, 1, 1, 1)
MainWindow.setCentralWidget(self.centralwidget) MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QMenuBar(MainWindow) self.menubar = QMenuBar(MainWindow)
self.menubar.setObjectName(u"menubar") self.menubar.setObjectName(u"menubar")
self.menubar.setGeometry(QRect(0, 0, 746, 24)) self.menubar.setGeometry(QRect(0, 0, 746, 22))
self.readFlashMenu = QMenu(self.menubar) self.readFlashMenu = QMenu(self.menubar)
self.readFlashMenu.setObjectName(u"readFlashMenu") self.readFlashMenu.setObjectName(u"readFlashMenu")
self.writeFlashMenu = QMenu(self.menubar) self.writeFlashMenu = QMenu(self.menubar)
@ -231,14 +245,14 @@ class Ui_MainWindow(object):
self.actionWrite_RPMB.setText(QCoreApplication.translate("MainWindow", u"Write RPMB", None)) self.actionWrite_RPMB.setText(QCoreApplication.translate("MainWindow", u"Write RPMB", None))
self.actionRead_preloader.setText(QCoreApplication.translate("MainWindow", u"Read preloader", None)) self.actionRead_preloader.setText(QCoreApplication.translate("MainWindow", u"Read preloader", None))
self.actionGenerate_RPMB_keys.setText(QCoreApplication.translate("MainWindow", u"Generate RPMB keys", None)) self.actionGenerate_RPMB_keys.setText(QCoreApplication.translate("MainWindow", u"Generate RPMB keys", None))
self.logoPic.setText("")
self.copyrightInfo.setText(QCoreApplication.translate("MainWindow", u"<b>Made by:</b> Bjoern Kerler<br/><b>Gui by:</b> Geert-Jan Kreileman<br/><br/><b>Credits:</b><br/>kamakiri [xyzz]<br/>linecode exploit [chimera]<br/>Chaosmaster<br/>and all contributers</p>", None))
self.debugBtn.setText(QCoreApplication.translate("MainWindow", u"Show debug log", None))
self.pic.setText("")
self.phoneInfoTextbox.setText(QCoreApplication.translate("MainWindow", u"No phone detected.", None))
self.spinner_pic.setText("") self.spinner_pic.setText("")
self.title.setText(QCoreApplication.translate("MainWindow", u"MTKClient v2.0", None)) self.title.setText(QCoreApplication.translate("MainWindow", u"MTKClient v2.0", None))
self.pic.setText("")
self.phoneInfoTextbox.setText(QCoreApplication.translate("MainWindow", u"No phone detected.", None))
self.logoPic.setText("")
self.copyrightInfo.setText(QCoreApplication.translate("MainWindow", u"<b>Made by:</b> Bjoern Kerler<br/><b>Gui by:</b> Geert-Jan Kreileman<br/><br/><b>Credits:</b><br/>kamakiri [xyzz]<br/>linecode exploit [chimera]<br/>Chaosmaster<br/>and all contributers</p>", None))
self.status.setText(QCoreApplication.translate("MainWindow", u"<html><head/><body><p>Please connect a Mediatek phone to continue.<br/><br/><span style=\" font-weight:600;\">Hint:</span> Power off the phone before connecting.<br/><span style=\" font-style:italic; color:#393939;\">For brom mode:</span><span style=\" color:#393939;\"><br/>Press and hold vol up, vol dwn, or all hw buttons and connect usb.<br/></span><span style=\" font-style:italic; color:#393939;\">For preloader mode:</span><span style=\" color:#393939;\"><br/>Don't press any hw button and connect usb.</span></p></body></html>", None)) self.status.setText(QCoreApplication.translate("MainWindow", u"<html><head/><body><p>Please connect a Mediatek phone to continue.<br/><br/><span style=\" font-weight:600;\">Hint:</span> Power off the phone before connecting.<br/><span style=\" font-style:italic; color:#393939;\">For brom mode:</span><span style=\" color:#393939;\"><br/>Press and hold vol up, vol dwn, or all hw buttons and connect usb.<br/></span><span style=\" font-style:italic; color:#393939;\">For preloader mode:</span><span style=\" color:#393939;\"><br/>Don't press any hw button and connect usb.</span></p></body></html>", None))
self.debugBtn.setText(QCoreApplication.translate("MainWindow", u"Show debug log", None))
self.readFlashMenu.setTitle(QCoreApplication.translate("MainWindow", u"&Read Flash", None)) self.readFlashMenu.setTitle(QCoreApplication.translate("MainWindow", u"&Read Flash", None))
self.writeFlashMenu.setTitle(QCoreApplication.translate("MainWindow", u"&Write Flash", None)) self.writeFlashMenu.setTitle(QCoreApplication.translate("MainWindow", u"&Write Flash", None))
self.eraseFlashMenu.setTitle(QCoreApplication.translate("MainWindow", u"&Erase Flash", None)) self.eraseFlashMenu.setTitle(QCoreApplication.translate("MainWindow", u"&Erase Flash", None))

View file

@ -10,11 +10,11 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>746</width> <width>746</width>
<height>600</height> <height>574</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -25,12 +25,6 @@
<height>400</height> <height>400</height>
</size> </size>
</property> </property>
<property name="maximumSize">
<size>
<width>746</width>
<height>600</height>
</size>
</property>
<property name="acceptDrops"> <property name="acceptDrops">
<bool>false</bool> <bool>false</bool>
</property> </property>
@ -41,239 +35,291 @@
<bool>false</bool> <bool>false</bool>
</property> </property>
<widget class="QWidget" name="centralwidget"> <widget class="QWidget" name="centralwidget">
<widget class="Line" name="line"> <layout class="QGridLayout" name="gridLayout">
<property name="geometry"> <item row="0" column="0">
<rect> <widget class="QLabel" name="title">
<x>12</x> <property name="enabled">
<y>160</y> <bool>true</bool>
<width>722</width> </property>
<height>16</height> <property name="sizePolicy">
</rect> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
</property> <horstretch>0</horstretch>
<property name="orientation"> <verstretch>0</verstretch>
<enum>Qt::Horizontal</enum> </sizepolicy>
</property> </property>
</widget> <property name="minimumSize">
<widget class="QPlainTextEdit" name="logBox"> <size>
<property name="geometry"> <width>0</width>
<rect> <height>24</height>
<x>12</x> </size>
<y>401</y> </property>
<width>722</width> <property name="maximumSize">
<height>186</height> <size>
</rect> <width>16777215</width>
</property> <height>20</height>
<property name="minimumSize"> </size>
<size> </property>
<width>722</width> <property name="font">
<height>0</height> <font>
</size> <family>Arial</family>
</property> <pointsize>18</pointsize>
<property name="maximumSize"> </font>
<size> </property>
<width>722</width> <property name="lineWidth">
<height>186</height> <number>0</number>
</size> </property>
</property> <property name="text">
<property name="styleSheet"> <string>MTKClient v2.0</string>
<string notr="true"/> </property>
</property> <property name="textFormat">
<property name="readOnly"> <enum>Qt::AutoText</enum>
<bool>true</bool> </property>
</property> <property name="scaledContents">
<property name="hidden" stdset="0"> <bool>false</bool>
<bool>false</bool> </property>
</property> <property name="alignment">
</widget> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
<widget class="QWidget" name="layoutWidget2"> </property>
<property name="geometry"> <property name="wordWrap">
<rect> <bool>false</bool>
<x>12</x> </property>
<y>184</y> <property name="indent">
<width>721</width> <number>0</number>
<height>141</height> </property>
</rect> </widget>
</property> </item>
<layout class="QHBoxLayout" name="horizontalLayout_2"> <item row="0" column="3" rowspan="2">
<property name="spacing"> <widget class="QLabel" name="pic">
<number>10</number> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<item> <horstretch>0</horstretch>
<widget class="QLabel" name="logoPic"> <verstretch>0</verstretch>
<property name="sizePolicy"> </sizepolicy>
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> </property>
<horstretch>0</horstretch> <property name="minimumSize">
<verstretch>0</verstretch> <size>
</sizepolicy> <width>60</width>
</property> <height>128</height>
<property name="minimumSize"> </size>
<size> </property>
<width>128</width> <property name="maximumSize">
<height>128</height> <size>
</size> <width>87</width>
</property> <height>128</height>
<property name="maximumSize"> </size>
<size> </property>
<width>128</width> <property name="text">
<height>128</height> <string/>
</size> </property>
</property> <property name="pixmap">
<property name="text"> <pixmap>images/phone_notfound.png</pixmap>
<string/> </property>
</property> <property name="scaledContents">
<property name="pixmap"> <bool>true</bool>
<pixmap>images/logo_256.png</pixmap> </property>
</property> <property name="alignment">
<property name="scaledContents"> <set>Qt::AlignCenter</set>
<bool>true</bool> </property>
</property> <property name="wordWrap">
<property name="alignment"> <bool>false</bool>
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> </property>
</property> </widget>
</widget> </item>
</item> <item row="0" column="2">
<item> <widget class="QLabel" name="phoneInfoTextbox">
<widget class="QLabel" name="copyrightInfo"> <property name="sizePolicy">
<property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch>
<horstretch>0</horstretch> <verstretch>0</verstretch>
<verstretch>0</verstretch> </sizepolicy>
</sizepolicy> </property>
</property> <property name="text">
<property name="text"> <string>No phone detected.</string>
<string>&lt;b&gt;Made by:&lt;/b&gt; Bjoern Kerler&lt;br/&gt;&lt;b&gt;Gui by:&lt;/b&gt; Geert-Jan Kreileman&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Credits:&lt;/b&gt;&lt;br/&gt;kamakiri [xyzz]&lt;br/&gt;linecode exploit [chimera]&lt;br/&gt;Chaosmaster&lt;br/&gt;and all contributers&lt;/p&gt;</string> </property>
</property> <property name="alignment">
</widget> <set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set>
</item> </property>
</layout> <property name="wordWrap">
</widget> <bool>true</bool>
<widget class="QWidget" name="layoutWidget"> </property>
<property name="geometry"> </widget>
<rect> </item>
<x>12</x> <item row="2" column="0" colspan="4">
<y>359</y> <widget class="Line" name="line">
<width>721</width> <property name="orientation">
<height>32</height> <enum>Qt::Horizontal</enum>
</rect> </property>
</property> </widget>
<layout class="QHBoxLayout" name="horizontalLayout_4" stretch="0,0"> </item>
<property name="spacing"> <item row="3" column="0" colspan="4">
<number>0</number> <layout class="QHBoxLayout" name="horizontalLayout_2">
</property> <property name="spacing">
<property name="sizeConstraint"> <number>10</number>
<enum>QLayout::SetNoConstraint</enum> </property>
</property> <item>
<item> <widget class="QLabel" name="logoPic">
<spacer name="horizontalSpacer"> <property name="sizePolicy">
<property name="orientation"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<enum>Qt::Horizontal</enum> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
<property name="sizeHint" stdset="0"> </sizepolicy>
<size> </property>
<width>40</width> <property name="minimumSize">
<height>20</height> <size>
</size> <width>128</width>
</property> <height>128</height>
</spacer> </size>
</item> </property>
<item> <property name="maximumSize">
<widget class="QPushButton" name="debugBtn"> <size>
<property name="sizePolicy"> <width>128</width>
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <height>128</height>
<horstretch>0</horstretch> </size>
<verstretch>0</verstretch> </property>
</sizepolicy> <property name="text">
</property> <string/>
<property name="minimumSize"> </property>
<size> <property name="pixmap">
<width>110</width> <pixmap>images/logo_256.png</pixmap>
<height>0</height> </property>
</size> <property name="scaledContents">
</property> <bool>true</bool>
<property name="text"> </property>
<string>Show debug log</string> <property name="alignment">
</property> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
<property name="autoDefault"> </property>
<bool>false</bool> </widget>
</property> </item>
<property name="default"> <item>
<bool>false</bool> <widget class="QLabel" name="copyrightInfo">
</property> <property name="sizePolicy">
<property name="flat"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<bool>false</bool> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
</widget> </sizepolicy>
</item> </property>
</layout> <property name="text">
</widget> <string>&lt;b&gt;Made by:&lt;/b&gt; Bjoern Kerler&lt;br/&gt;&lt;b&gt;Gui by:&lt;/b&gt; Geert-Jan Kreileman&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Credits:&lt;/b&gt;&lt;br/&gt;kamakiri [xyzz]&lt;br/&gt;linecode exploit [chimera]&lt;br/&gt;Chaosmaster&lt;br/&gt;and all contributers&lt;/p&gt;</string>
<widget class="QLabel" name="pic"> </property>
<property name="geometry"> </widget>
<rect> </item>
<x>644</x> </layout>
<y>10</y> </item>
<width>87</width> <item row="1" column="0" colspan="3">
<height>128</height> <widget class="QLabel" name="status">
</rect> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<property name="sizePolicy"> <horstretch>0</horstretch>
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <verstretch>0</verstretch>
<horstretch>0</horstretch> </sizepolicy>
<verstretch>0</verstretch> </property>
</sizepolicy> <property name="minimumSize">
</property> <size>
<property name="minimumSize"> <width>400</width>
<size> <height>0</height>
<width>60</width> </size>
<height>128</height> </property>
</size> <property name="text">
</property> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Please connect a Mediatek phone to continue.&lt;br/&gt;&lt;br/&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Hint:&lt;/span&gt; Power off the phone before connecting.&lt;br/&gt;&lt;span style=&quot; font-style:italic; color:#393939;&quot;&gt;For brom mode:&lt;/span&gt;&lt;span style=&quot; color:#393939;&quot;&gt;&lt;br/&gt;Press and hold vol up, vol dwn, or all hw buttons and connect usb.&lt;br/&gt;&lt;/span&gt;&lt;span style=&quot; font-style:italic; color:#393939;&quot;&gt;For preloader mode:&lt;/span&gt;&lt;span style=&quot; color:#393939;&quot;&gt;&lt;br/&gt;Don't press any hw button and connect usb.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<property name="maximumSize"> </property>
<size> <property name="textFormat">
<width>87</width> <enum>Qt::AutoText</enum>
<height>128</height> </property>
</size> <property name="scaledContents">
</property> <bool>false</bool>
<property name="text"> </property>
<string/> <property name="alignment">
</property> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
<property name="pixmap"> </property>
<pixmap>images/phone_notfound.png</pixmap> <property name="wordWrap">
</property> <bool>false</bool>
<property name="scaledContents"> </property>
<bool>true</bool> </widget>
</property> </item>
<property name="alignment"> <item row="5" column="0" colspan="4">
<set>Qt::AlignCenter</set> <widget class="QPlainTextEdit" name="logBox">
</property> <property name="minimumSize">
<property name="wordWrap"> <size>
<bool>false</bool> <width>722</width>
</property> <height>0</height>
</widget> </size>
<widget class="QLabel" name="phoneInfoTextbox"> </property>
<property name="geometry"> <property name="styleSheet">
<rect> <string notr="true"/>
<x>433</x> </property>
<y>10</y> <property name="readOnly">
<width>201</width> <bool>true</bool>
<height>91</height> </property>
</rect> <property name="hidden" stdset="0">
</property> <bool>false</bool>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> </widget>
<horstretch>0</horstretch> </item>
<verstretch>0</verstretch> <item row="4" column="0" colspan="4">
</sizepolicy> <layout class="QHBoxLayout" name="horizontalLayout_4" stretch="0,0">
</property> <property name="spacing">
<property name="text"> <number>0</number>
<string>No phone detected.</string> </property>
</property> <property name="sizeConstraint">
<property name="alignment"> <enum>QLayout::SetNoConstraint</enum>
<set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set> </property>
</property> <item>
<property name="wordWrap"> <spacer name="horizontalSpacer">
<bool>true</bool> <property name="orientation">
</property> <enum>Qt::Horizontal</enum>
</widget> </property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="debugBtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>110</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Show debug log</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
<property name="default">
<bool>false</bool>
</property>
<property name="flat">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="1">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
<widget class="QLabel" name="spinner_pic"> <widget class="QLabel" name="spinner_pic">
<property name="geometry"> <property name="geometry">
<rect> <rect>
@ -302,101 +348,6 @@
<set>Qt::AlignCenter</set> <set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="title">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>14</x>
<y>10</y>
<width>231</width>
<height>24</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>24</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>20</height>
</size>
</property>
<property name="font">
<font>
<family>Arial</family>
<pointsize>18</pointsize>
</font>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string>MTKClient v2.0</string>
</property>
<property name="textFormat">
<enum>Qt::AutoText</enum>
</property>
<property name="scaledContents">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="indent">
<number>0</number>
</property>
</widget>
<widget class="QLabel" name="status">
<property name="geometry">
<rect>
<x>14</x>
<y>40</y>
<width>451</width>
<height>111</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>400</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Please connect a Mediatek phone to continue.&lt;br/&gt;&lt;br/&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Hint:&lt;/span&gt; Power off the phone before connecting.&lt;br/&gt;&lt;span style=&quot; font-style:italic; color:#393939;&quot;&gt;For brom mode:&lt;/span&gt;&lt;span style=&quot; color:#393939;&quot;&gt;&lt;br/&gt;Press and hold vol up, vol dwn, or all hw buttons and connect usb.&lt;br/&gt;&lt;/span&gt;&lt;span style=&quot; font-style:italic; color:#393939;&quot;&gt;For preloader mode:&lt;/span&gt;&lt;span style=&quot; color:#393939;&quot;&gt;&lt;br/&gt;Don't press any hw button and connect usb.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::AutoText</enum>
</property>
<property name="scaledContents">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</widget> </widget>
<widget class="QMenuBar" name="menubar"> <widget class="QMenuBar" name="menubar">
<property name="geometry"> <property name="geometry">
@ -404,7 +355,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>746</width> <width>746</width>
<height>24</height> <height>22</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="readFlashMenu"> <widget class="QMenu" name="readFlashMenu">