mirror of
https://github.com/lubuntu-team/lubuntu-about.git
synced 2025-07-09 22:11:34 +00:00
Change to using QDialog and add logic for screen.
This commit is contained in:
parent
1ed8aba050
commit
93294a3ae8
65
src/main.py
65
src/main.py
@ -18,17 +18,76 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import math
|
||||||
|
import cpuinfo
|
||||||
|
import threading
|
||||||
|
from time import sleep
|
||||||
|
from socket import gethostname
|
||||||
|
from subprocess import run, PIPE
|
||||||
|
from psutil import virtual_memory
|
||||||
|
from platform import system, uname
|
||||||
|
from lsb_release import get_distro_information
|
||||||
from PyQt5.QtWidgets import QWidget, QApplication, QMainWindow
|
from PyQt5.QtWidgets import QWidget, QApplication, QMainWindow
|
||||||
from aboutlubuntu_auto import Ui_MainWindow
|
|
||||||
|
|
||||||
class LubuntuAbout(QMainWindow, Ui_MainWindow):
|
from aboutlubuntu_auto import Ui_Dialog
|
||||||
|
|
||||||
|
class LubuntuAbout(QMainWindow, Ui_Dialog):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.ui = Ui_MainWindow()
|
self.ui = Ui_Dialog()
|
||||||
self.ui.setupUi(self)
|
self.ui.setupUi(self)
|
||||||
|
self.ui.versiondetails.setText("Lubuntu %s" % version)
|
||||||
|
self.ui.smalldetails.setText("%s %s, %s" % (os, kernel, arch))
|
||||||
|
self.ui.hostnamedetails.setText(hostname)
|
||||||
|
self.ui.cpudetails.setText("%s" % cpu)
|
||||||
|
self.ui.graphicsdetails.setText("%s" % graphics)
|
||||||
|
self.ui.memorydetails.setText("%s / %s used" % (freemem, totalmem))
|
||||||
|
self.infupdate()
|
||||||
|
|
||||||
|
|
||||||
|
def memcalc(mem):
|
||||||
|
# FIXME: I bet there's a native Python interface to grab the highest unit
|
||||||
|
mem = round(mem / math.pow(1024, int(math.floor(math.log(mem, 1024)))), 2)
|
||||||
|
if mem <= 1:
|
||||||
|
return str(round(mem * 1024))+" MB"
|
||||||
|
else:
|
||||||
|
return str(mem)+" GB"
|
||||||
|
|
||||||
|
def setvariables():
|
||||||
|
global os
|
||||||
|
global kernel
|
||||||
|
global arch
|
||||||
|
global hostname
|
||||||
|
global version
|
||||||
|
global cpu
|
||||||
|
global graphics
|
||||||
|
global freemem
|
||||||
|
global totalmem
|
||||||
|
|
||||||
|
os = system()
|
||||||
|
kernel = uname()[2]
|
||||||
|
arch = uname()[5]
|
||||||
|
hostname = gethostname()
|
||||||
|
|
||||||
|
if "development branch" in get_distro_information()["DESCRIPTION"]:
|
||||||
|
version = get_distro_information()["DESCRIPTION"]
|
||||||
|
version = version.replace(" (development branch)", "")
|
||||||
|
version = version.replace("Ubuntu ", "").title()
|
||||||
|
else:
|
||||||
|
version = get_distro_information()["RELEASE"].title()
|
||||||
|
|
||||||
|
cpu = cpuinfo.get_cpu_info()["brand"]
|
||||||
|
|
||||||
|
# FIXME: Please, someone simplify this...
|
||||||
|
graphics = (run(["lspci", "-mm"], stdout=PIPE).stdout.decode('utf-8').split("\n")[2].replace("\"", "").split("VGA compatible controller ")[1].split("Controller")[0])+"Controller"
|
||||||
|
|
||||||
|
freemem = memcalc(virtual_memory().free)
|
||||||
|
totalmem = memcalc(virtual_memory().total)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
setvariables()
|
||||||
about = QApplication(sys.argv)
|
about = QApplication(sys.argv)
|
||||||
aboutwindow = LubuntuAbout()
|
aboutwindow = LubuntuAbout()
|
||||||
aboutwindow.show()
|
aboutwindow.show()
|
||||||
|
498
src/main.ui
498
src/main.ui
@ -1,25 +1,25 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>MainWindow</class>
|
<class>Dialog</class>
|
||||||
<widget class="QMainWindow" name="MainWindow">
|
<widget class="QDialog" name="Dialog">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>600</width>
|
<width>612</width>
|
||||||
<height>400</height>
|
<height>412</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>600</width>
|
<width>612</width>
|
||||||
<height>400</height>
|
<height>412</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>600</width>
|
<width>612</width>
|
||||||
<height>400</height>
|
<height>412</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -29,234 +29,22 @@
|
|||||||
<iconset resource="main.qrc">
|
<iconset resource="main.qrc">
|
||||||
<normaloff>:/images/Lubuntu.png</normaloff>:/images/Lubuntu.png</iconset>
|
<normaloff>:/images/Lubuntu.png</normaloff>:/images/Lubuntu.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="mainform">
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
|
||||||
<item row="6" column="0">
|
|
||||||
<layout class="QVBoxLayout" name="specs">
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="graphics">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="graphicsicon">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>32</width>
|
|
||||||
<height>32</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>32</width>
|
|
||||||
<height>32</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string><img src=":/images/graphics.png" height="32" width="32" /></string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="graphicsdetails">
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<family>Oxygen-Sans</family>
|
|
||||||
<pointsize>12</pointsize>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>graphics</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="graphicsspacer">
|
|
||||||
<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>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="memory">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="memoryicon">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>32</width>
|
|
||||||
<height>32</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>32</width>
|
|
||||||
<height>32</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string><img src=":/images/memory.png" height="32" width="32" /></string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="memorydetails">
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<family>Oxygen-Sans</family>
|
|
||||||
<pointsize>12</pointsize>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>memory</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="memoryspacer">
|
|
||||||
<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>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="cpu">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="cpuicon">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>32</width>
|
|
||||||
<height>32</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>32</width>
|
|
||||||
<height>32</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string><img src=":/images/cpu.png" height="32" width="32" /></string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="cpudetails">
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<family>Oxygen-Sans</family>
|
|
||||||
<pointsize>12</pointsize>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>cpu</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="cpuspecspacer">
|
|
||||||
<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>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="storage">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="storageicon">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>32</width>
|
|
||||||
<height>32</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>32</width>
|
|
||||||
<height>32</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string><img src=":/images/storage.png" height="32" width="32" /></string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="storagedetails">
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<family>Oxygen-Sans</family>
|
|
||||||
<pointsize>12</pointsize>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>storage</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="storagespacer">
|
|
||||||
<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>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<spacer name="verticalSpacer2">
|
<widget class="QWidget" name="mainform" native="true">
|
||||||
<property name="orientation">
|
<property name="minimumSize">
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
<size>
|
||||||
<width>20</width>
|
<width>600</width>
|
||||||
<height>40</height>
|
<height>400</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
<property name="maximumSize">
|
||||||
</item>
|
|
||||||
<item row="5" column="0">
|
|
||||||
<spacer name="verticalSpacer3">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
<size>
|
||||||
<width>20</width>
|
<width>600</width>
|
||||||
<height>40</height>
|
<height>400</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
</item>
|
|
||||||
<item row="1" column="0" rowspan="4" colspan="4">
|
<item row="1" column="0" rowspan="4" colspan="4">
|
||||||
<layout class="QGridLayout" name="itemcontainer">
|
<layout class="QGridLayout" name="itemcontainer">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
@ -327,7 +115,220 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="10" column="0" colspan="4">
|
<item row="10" column="0">
|
||||||
|
<widget class="Line" name="line">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>800</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="8" column="0">
|
||||||
|
<layout class="QVBoxLayout" name="specs">
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="hostname">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="hostnameicon">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>32</width>
|
||||||
|
<height>32</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>32</width>
|
||||||
|
<height>32</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string><img src=":/images/storage.png" height="32" width="32" /></string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="hostnamedetails">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>Oxygen-Sans</family>
|
||||||
|
<pointsize>12</pointsize>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>hostname</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="hostnamespacer">
|
||||||
|
<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>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="cpu">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="cpuicon">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>32</width>
|
||||||
|
<height>32</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>32</width>
|
||||||
|
<height>32</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string><img src=":/images/cpu.png" height="32" width="32" /></string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="cpudetails">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>Oxygen-Sans</family>
|
||||||
|
<pointsize>12</pointsize>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>cpu</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="cpuspecspacer">
|
||||||
|
<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>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="memory">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="memoryicon">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>32</width>
|
||||||
|
<height>32</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>32</width>
|
||||||
|
<height>32</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string><img src=":/images/memory.png" height="32" width="32" /></string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="memorydetails">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>Oxygen-Sans</family>
|
||||||
|
<pointsize>12</pointsize>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>memory</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="memoryspacer">
|
||||||
|
<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>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="graphics">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="graphicsicon">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>32</width>
|
||||||
|
<height>32</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>32</width>
|
||||||
|
<height>32</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string><img src=":/images/graphics.png" height="32" width="32" /></string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="graphicsdetails">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>Oxygen-Sans</family>
|
||||||
|
<pointsize>12</pointsize>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>graphics</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="graphicsspacer">
|
||||||
|
<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>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="11" column="0" colspan="4">
|
||||||
<layout class="QHBoxLayout" name="buttonslayout">
|
<layout class="QHBoxLayout" name="buttonslayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="translation">
|
<widget class="QPushButton" name="translation">
|
||||||
@ -389,7 +390,7 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="8" column="0">
|
<item row="9" column="0">
|
||||||
<spacer name="verticalSpacer1">
|
<spacer name="verticalSpacer1">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
@ -402,21 +403,36 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="9" column="0">
|
<item row="5" column="0">
|
||||||
<widget class="Line" name="line">
|
<spacer name="verticalSpacer3">
|
||||||
<property name="minimumSize">
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>800</width>
|
<width>20</width>
|
||||||
<height>0</height>
|
<height>40</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<spacer name="verticalSpacer2">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="main.qrc"/>
|
<include location="main.qrc"/>
|
||||||
@ -425,12 +441,12 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>close</sender>
|
<sender>close</sender>
|
||||||
<signal>clicked(QAbstractButton*)</signal>
|
<signal>clicked(QAbstractButton*)</signal>
|
||||||
<receiver>MainWindow</receiver>
|
<receiver>Dialog</receiver>
|
||||||
<slot>close()</slot>
|
<slot>close()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
<x>500</x>
|
<x>509</x>
|
||||||
<y>376</y>
|
<y>387</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel">
|
<hint type="destinationlabel">
|
||||||
<x>299</x>
|
<x>299</x>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user