mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-11-30 19:26:56 -05:00
Add resize policy for mainwindow
This commit is contained in:
parent
3a143f3c46
commit
6dac6293e1
2 changed files with 403 additions and 438 deletions
|
@ -18,14 +18,13 @@ class Ui_MainWindow(object):
|
|||
if not MainWindow.objectName():
|
||||
MainWindow.setObjectName(u"MainWindow")
|
||||
MainWindow.setWindowModality(Qt.NonModal)
|
||||
MainWindow.resize(746, 600)
|
||||
sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.MinimumExpanding)
|
||||
MainWindow.resize(746, 574)
|
||||
sizePolicy = QSizePolicy(QSizePolicy.MinimumExpanding, QSizePolicy.MinimumExpanding)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
|
||||
MainWindow.setSizePolicy(sizePolicy)
|
||||
MainWindow.setMinimumSize(QSize(746, 400))
|
||||
MainWindow.setMaximumSize(QSize(746, 600))
|
||||
MainWindow.setAcceptDrops(False)
|
||||
MainWindow.setAutoFillBackground(False)
|
||||
self.actionRead_partition_s = QAction(MainWindow)
|
||||
|
@ -54,106 +53,22 @@ class Ui_MainWindow(object):
|
|||
self.actionGenerate_RPMB_keys.setObjectName(u"actionGenerate_RPMB_keys")
|
||||
self.centralwidget = QWidget(MainWindow)
|
||||
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.setObjectName(u"spinner_pic")
|
||||
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())
|
||||
self.spinner_pic.setSizePolicy(sizePolicy1)
|
||||
self.spinner_pic.setPixmap(QPixmap(u"images/phone_loading.png"))
|
||||
self.spinner_pic.setScaledContents(False)
|
||||
self.spinner_pic.setAlignment(Qt.AlignCenter)
|
||||
self.gridLayout = QGridLayout(self.centralwidget)
|
||||
self.gridLayout.setObjectName(u"gridLayout")
|
||||
self.title = QLabel(self.centralwidget)
|
||||
self.title.setObjectName(u"title")
|
||||
self.title.setEnabled(True)
|
||||
self.title.setGeometry(QRect(14, 10, 231, 24))
|
||||
sizePolicy1.setHeightForWidth(self.title.sizePolicy().hasHeightForWidth())
|
||||
self.title.setSizePolicy(sizePolicy1)
|
||||
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.setWordWrap(False)
|
||||
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.setObjectName(u"status")
|
||||
self.status.setGeometry(QRect(14, 40, 451, 111))
|
||||
sizePolicy3.setHeightForWidth(self.status.sizePolicy().hasHeightForWidth())
|
||||
self.status.setSizePolicy(sizePolicy3)
|
||||
sizePolicy2.setHeightForWidth(self.status.sizePolicy().hasHeightForWidth())
|
||||
self.status.setSizePolicy(sizePolicy2)
|
||||
self.status.setMinimumSize(QSize(400, 0))
|
||||
self.status.setTextFormat(Qt.AutoText)
|
||||
self.status.setScaledContents(False)
|
||||
self.status.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop)
|
||||
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)
|
||||
self.menubar = QMenuBar(MainWindow)
|
||||
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.setObjectName(u"readFlashMenu")
|
||||
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.actionRead_preloader.setText(QCoreApplication.translate("MainWindow", u"Read preloader", 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.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.debugBtn.setText(QCoreApplication.translate("MainWindow", u"Show debug log", None))
|
||||
self.readFlashMenu.setTitle(QCoreApplication.translate("MainWindow", u"&Read Flash", None))
|
||||
self.writeFlashMenu.setTitle(QCoreApplication.translate("MainWindow", u"&Write Flash", None))
|
||||
self.eraseFlashMenu.setTitle(QCoreApplication.translate("MainWindow", u"&Erase Flash", None))
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>746</width>
|
||||
<height>600</height>
|
||||
<height>574</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
|
@ -25,12 +25,6 @@
|
|||
<height>400</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>746</width>
|
||||
<height>600</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="acceptDrops">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
|
@ -41,239 +35,291 @@
|
|||
<bool>false</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<widget class="Line" name="line">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>12</x>
|
||||
<y>160</y>
|
||||
<width>722</width>
|
||||
<height>16</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPlainTextEdit" name="logBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>12</x>
|
||||
<y>401</y>
|
||||
<width>722</width>
|
||||
<height>186</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>722</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>722</width>
|
||||
<height>186</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="hidden" stdset="0">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QWidget" name="layoutWidget2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>12</x>
|
||||
<y>184</y>
|
||||
<width>721</width>
|
||||
<height>141</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<property name="spacing">
|
||||
<number>10</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="logoPic">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>128</width>
|
||||
<height>128</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>128</width>
|
||||
<height>128</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap>images/logo_256.png</pixmap>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="copyrightInfo">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><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></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>12</x>
|
||||
<y>359</y>
|
||||
<width>721</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4" stretch="0,0">
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="sizeConstraint">
|
||||
<enum>QLayout::SetNoConstraint</enum>
|
||||
</property>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</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>
|
||||
</widget>
|
||||
<widget class="QLabel" name="pic">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>644</x>
|
||||
<y>10</y>
|
||||
<width>87</width>
|
||||
<height>128</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>60</width>
|
||||
<height>128</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>87</width>
|
||||
<height>128</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap>images/phone_notfound.png</pixmap>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="phoneInfoTextbox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>433</x>
|
||||
<y>10</y>
|
||||
<width>201</width>
|
||||
<height>91</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>No phone detected.</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="title">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</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>
|
||||
</item>
|
||||
<item row="0" column="3" rowspan="2">
|
||||
<widget class="QLabel" name="pic">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>60</width>
|
||||
<height>128</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>87</width>
|
||||
<height>128</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap>images/phone_notfound.png</pixmap>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QLabel" name="phoneInfoTextbox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>No phone detected.</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="4">
|
||||
<widget class="Line" name="line">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="4">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<property name="spacing">
|
||||
<number>10</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="logoPic">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>128</width>
|
||||
<height>128</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>128</width>
|
||||
<height>128</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap>images/logo_256.png</pixmap>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="copyrightInfo">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><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></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="3">
|
||||
<widget class="QLabel" name="status">
|
||||
<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><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></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>
|
||||
</item>
|
||||
<item row="5" column="0" colspan="4">
|
||||
<widget class="QPlainTextEdit" name="logBox">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>722</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="hidden" stdset="0">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0" colspan="4">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4" stretch="0,0">
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="sizeConstraint">
|
||||
<enum>QLayout::SetNoConstraint</enum>
|
||||
</property>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</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">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
|
@ -302,101 +348,6 @@
|
|||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</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><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></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 class="QMenuBar" name="menubar">
|
||||
<property name="geometry">
|
||||
|
@ -404,7 +355,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>746</width>
|
||||
<height>24</height>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="readFlashMenu">
|
||||
|
|
Loading…
Reference in a new issue