resizing update
This commit is contained in:
parent
c6d832ae92
commit
575d626e03
@ -113,7 +113,7 @@ class MainWindow(QtGui.QMainWindow):
|
||||
|
||||
def setup_right_bottom(self, Form):
|
||||
Form.setObjectName("right_bottom")
|
||||
Form.resize(650, 80)
|
||||
Form.resize(650, 75)
|
||||
self.messageEdit = MessageArea(Form, self)
|
||||
self.messageEdit.setGeometry(QtCore.QRect(0, 5, 450, 70))
|
||||
self.messageEdit.setObjectName("messageEdit")
|
||||
@ -164,11 +164,11 @@ class MainWindow(QtGui.QMainWindow):
|
||||
Form.setObjectName("left_bottom")
|
||||
Form.resize(270, 80)
|
||||
self.online_contacts = QtGui.QCheckBox(Form)
|
||||
self.online_contacts.setGeometry(QtCore.QRect(0, 10, 250, 20))
|
||||
self.online_contacts.setGeometry(QtCore.QRect(0, 0, 250, 20))
|
||||
self.online_contacts.setObjectName("online_contacts")
|
||||
self.online_contacts.clicked.connect(self.filtering)
|
||||
self.contact_name = QtGui.QLineEdit(Form)
|
||||
self.contact_name.setGeometry(QtCore.QRect(0, 45, 270, 30))
|
||||
self.contact_name.setGeometry(QtCore.QRect(0, 25, 270, 25))
|
||||
self.contact_name.setObjectName("contact_name")
|
||||
self.contact_name.textChanged.connect(self.filtering)
|
||||
QtCore.QMetaObject.connectSlotsByName(Form)
|
||||
@ -277,7 +277,7 @@ class MainWindow(QtGui.QMainWindow):
|
||||
grid = QtGui.QGridLayout()
|
||||
search = QtGui.QWidget()
|
||||
self.setup_left_bottom(search)
|
||||
grid.addWidget(search, 2, 0)
|
||||
grid.addWidget(search, 3, 0)
|
||||
name = QtGui.QWidget()
|
||||
self.setup_left_top(name)
|
||||
grid.addWidget(name, 0, 0)
|
||||
@ -289,14 +289,15 @@ class MainWindow(QtGui.QMainWindow):
|
||||
grid.addWidget(info, 0, 1)
|
||||
message_buttons = QtGui.QWidget()
|
||||
self.setup_right_bottom(message_buttons)
|
||||
grid.addWidget(message_buttons, 2, 1)
|
||||
grid.addWidget(message_buttons, 2, 1, 2, 1)
|
||||
main_list = QtGui.QWidget()
|
||||
self.setup_left_center(main_list)
|
||||
grid.addWidget(main_list, 1, 0)
|
||||
grid.addWidget(main_list, 1, 0, 2, 1)
|
||||
grid.setColumnMinimumWidth(1, 500)
|
||||
grid.setColumnMinimumWidth(0, 270)
|
||||
grid.setRowMinimumHeight(1, 250)
|
||||
grid.setRowMinimumHeight(2, 75)
|
||||
grid.setRowMinimumHeight(1, 400)
|
||||
grid.setRowMinimumHeight(2, 20)
|
||||
grid.setRowMinimumHeight(3, 50)
|
||||
grid.setColumnStretch(1, 1)
|
||||
grid.setRowStretch(1, 1)
|
||||
main.setLayout(grid)
|
||||
@ -314,7 +315,7 @@ class MainWindow(QtGui.QMainWindow):
|
||||
|
||||
def resizeEvent(self, *args, **kwargs):
|
||||
self.messages.setGeometry(0, 0, self.width() - 300, self.height() - 205)
|
||||
self.friends_list.setGeometry(0, 0, 270, self.height() - 205)
|
||||
self.friends_list.setGeometry(0, 0, 270, self.height() - 180)
|
||||
self.callButton.setGeometry(QtCore.QRect(self.width() - 370, 30, 50, 50))
|
||||
self.typing.setGeometry(QtCore.QRect(self.width() - 420, 40, 50, 30))
|
||||
self.messageEdit.setGeometry(QtCore.QRect(0, 5, self.width() - 470, 70))
|
||||
|
Loading…
Reference in New Issue
Block a user