Skip to content

Commit f0614c7

Browse files
committed
Update Application
1 parent 4b577ed commit f0614c7

25 files changed

+338
-192
lines changed

TestDemo-2/DashboardTestDemo.ui

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ background: #F0F8FF;
711711
<x>0</x>
712712
<y>0</y>
713713
<width>598</width>
714-
<height>383</height>
714+
<height>382</height>
715715
</rect>
716716
</property>
717717
<layout class="QGridLayout" name="gridLayout">
@@ -758,11 +758,11 @@ background: #F0F8FF;
758758
<property name="frameShadow">
759759
<enum>QFrame::Raised</enum>
760760
</property>
761-
<layout class="QGridLayout" name="gridLayout_9">
761+
<layout class="QHBoxLayout" name="horizontalLayout_3">
762762
<property name="bottomMargin">
763763
<number>16</number>
764764
</property>
765-
<item row="0" column="0">
765+
<item>
766766
<spacer name="horizontalSpacer">
767767
<property name="orientation">
768768
<enum>Qt::Horizontal</enum>
@@ -778,15 +778,18 @@ background: #F0F8FF;
778778
</property>
779779
</spacer>
780780
</item>
781-
<item row="0" column="1">
781+
<item>
782782
<widget class="QFrame" name="input_frame">
783783
<property name="frameShape">
784784
<enum>QFrame::StyledPanel</enum>
785785
</property>
786786
<property name="frameShadow">
787787
<enum>QFrame::Raised</enum>
788788
</property>
789-
<layout class="QGridLayout" name="gridLayout_2">
789+
<layout class="QHBoxLayout" name="horizontalLayout_8">
790+
<property name="spacing">
791+
<number>0</number>
792+
</property>
790793
<property name="leftMargin">
791794
<number>0</number>
792795
</property>
@@ -799,10 +802,25 @@ background: #F0F8FF;
799802
<property name="bottomMargin">
800803
<number>0</number>
801804
</property>
802-
<property name="spacing">
803-
<number>0</number>
804-
</property>
805-
<item row="0" column="1">
805+
<item>
806+
<widget class="QTextEdit" name="input_textEdit">
807+
<property name="minimumSize">
808+
<size>
809+
<width>0</width>
810+
<height>50</height>
811+
</size>
812+
</property>
813+
<property name="font">
814+
<font>
815+
<pointsize>11</pointsize>
816+
</font>
817+
</property>
818+
<property name="placeholderText">
819+
<string>Send a message</string>
820+
</property>
821+
</widget>
822+
</item>
823+
<item>
806824
<widget class="QPushButton" name="send_btn">
807825
<property name="minimumSize">
808826
<size>
@@ -834,28 +852,10 @@ background: #F0F8FF;
834852
</property>
835853
</widget>
836854
</item>
837-
<item row="0" column="0">
838-
<widget class="QTextEdit" name="input_textEdit">
839-
<property name="minimumSize">
840-
<size>
841-
<width>0</width>
842-
<height>50</height>
843-
</size>
844-
</property>
845-
<property name="font">
846-
<font>
847-
<pointsize>11</pointsize>
848-
</font>
849-
</property>
850-
<property name="placeholderText">
851-
<string>Send a message</string>
852-
</property>
853-
</widget>
854-
</item>
855855
</layout>
856856
</widget>
857857
</item>
858-
<item row="0" column="2">
858+
<item>
859859
<spacer name="horizontalSpacer_2">
860860
<property name="orientation">
861861
<enum>Qt::Horizontal</enum>

TestDemo-2/DashboardTestDemo_ui.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def setupUi(self, MainWindow):
359359
self.main_scrollArea.setWidgetResizable(True)
360360
self.main_scrollArea.setObjectName("main_scrollArea")
361361
self.scrollAreaWidgetContents = QtWidgets.QWidget()
362-
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 598, 383))
362+
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 598, 382))
363363
self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
364364
self.gridLayout = QtWidgets.QGridLayout(self.scrollAreaWidgetContents)
365365
self.gridLayout.setObjectName("gridLayout")
@@ -374,19 +374,26 @@ def setupUi(self, MainWindow):
374374
self.frame_10.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
375375
self.frame_10.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
376376
self.frame_10.setObjectName("frame_10")
377-
self.gridLayout_9 = QtWidgets.QGridLayout(self.frame_10)
378-
self.gridLayout_9.setContentsMargins(-1, -1, -1, 16)
379-
self.gridLayout_9.setObjectName("gridLayout_9")
377+
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.frame_10)
378+
self.horizontalLayout_3.setContentsMargins(-1, -1, -1, 16)
379+
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
380380
spacerItem4 = QtWidgets.QSpacerItem(30, 20, QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Minimum)
381-
self.gridLayout_9.addItem(spacerItem4, 0, 0, 1, 1)
381+
self.horizontalLayout_3.addItem(spacerItem4)
382382
self.input_frame = QtWidgets.QFrame(parent=self.frame_10)
383383
self.input_frame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
384384
self.input_frame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
385385
self.input_frame.setObjectName("input_frame")
386-
self.gridLayout_2 = QtWidgets.QGridLayout(self.input_frame)
387-
self.gridLayout_2.setContentsMargins(0, 0, 7, 0)
388-
self.gridLayout_2.setSpacing(0)
389-
self.gridLayout_2.setObjectName("gridLayout_2")
386+
self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.input_frame)
387+
self.horizontalLayout_8.setContentsMargins(0, 0, 7, 0)
388+
self.horizontalLayout_8.setSpacing(0)
389+
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
390+
self.input_textEdit = QtWidgets.QTextEdit(parent=self.input_frame)
391+
self.input_textEdit.setMinimumSize(QtCore.QSize(0, 50))
392+
font = QtGui.QFont()
393+
font.setPointSize(11)
394+
self.input_textEdit.setFont(font)
395+
self.input_textEdit.setObjectName("input_textEdit")
396+
self.horizontalLayout_8.addWidget(self.input_textEdit)
390397
self.send_btn = QtWidgets.QPushButton(parent=self.input_frame)
391398
self.send_btn.setMinimumSize(QtCore.QSize(0, 0))
392399
self.send_btn.setMaximumSize(QtCore.QSize(16777215, 16777215))
@@ -397,17 +404,10 @@ def setupUi(self, MainWindow):
397404
self.send_btn.setIcon(icon2)
398405
self.send_btn.setIconSize(QtCore.QSize(18, 18))
399406
self.send_btn.setObjectName("send_btn")
400-
self.gridLayout_2.addWidget(self.send_btn, 0, 1, 1, 1)
401-
self.input_textEdit = QtWidgets.QTextEdit(parent=self.input_frame)
402-
self.input_textEdit.setMinimumSize(QtCore.QSize(0, 50))
403-
font = QtGui.QFont()
404-
font.setPointSize(11)
405-
self.input_textEdit.setFont(font)
406-
self.input_textEdit.setObjectName("input_textEdit")
407-
self.gridLayout_2.addWidget(self.input_textEdit, 0, 0, 1, 1)
408-
self.gridLayout_9.addWidget(self.input_frame, 0, 1, 1, 1)
407+
self.horizontalLayout_8.addWidget(self.send_btn)
408+
self.horizontalLayout_3.addWidget(self.input_frame)
409409
spacerItem5 = QtWidgets.QSpacerItem(30, 20, QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Minimum)
410-
self.gridLayout_9.addItem(spacerItem5, 0, 2, 1, 1)
410+
self.horizontalLayout_3.addItem(spacerItem5)
411411
self.verticalLayout_7.addWidget(self.frame_10)
412412
self.gridLayout_4.addWidget(self.message_area, 1, 0, 1, 1)
413413
self.horizontalLayout_9.addWidget(self.right_main_widget)
12 Bytes
Binary file not shown.
Binary file not shown.
-35 Bytes
Binary file not shown.
Binary file not shown.
-164 Bytes
Binary file not shown.
5.51 KB
Binary file not shown.
661 Bytes
Binary file not shown.
367 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)