[central widget] splashScreen resize changes
This commit is contained in:
parent
4c31a2d675
commit
22ea5e1414
@ -183,19 +183,23 @@ class SplashScreen(QWidget):
|
||||
#self.setStyleSheet("background-color: white;")
|
||||
|
||||
layout = QGridLayout()
|
||||
layout.setColumnStretch(0, 1)
|
||||
layout.setColumnStretch(1, 0)
|
||||
layout.setColumnStretch(0, 2)
|
||||
layout.setColumnStretch(1, 1)
|
||||
layout.setColumnStretch(2, 1)
|
||||
layout.setColumnStretch(3, 1)
|
||||
layout.setColumnStretch(4, 2)
|
||||
|
||||
layout.setRowStretch(0, 1)
|
||||
layout.setRowStretch(1, 0)
|
||||
layout.setRowStretch(2, 1)
|
||||
layout.setRowStretch(3, 2)
|
||||
self.setLayout(layout)
|
||||
|
||||
label = QLabel()
|
||||
label.setPixmap(QPixmap("./icons/nixview_transparent.png"))
|
||||
|
||||
label.setMaximumWidth(300)
|
||||
label.setAlignment(Qt.AlignCenter)
|
||||
layout.addWidget(label, 1, 1)
|
||||
layout.addWidget(label, 1, 1, 1, 3, Qt.AlignCenter)
|
||||
|
||||
frame = QFrame()
|
||||
l = QVBoxLayout()
|
||||
@ -203,10 +207,11 @@ class SplashScreen(QWidget):
|
||||
self._file_list = QListWidget(self)
|
||||
self._file_list.setSelectionMode(QAbstractItemView.SingleSelection)
|
||||
self._file_list.itemClicked.connect(self._on_file_clicked)
|
||||
self._file_list.setFrameShape(QFrame.NoFrame)
|
||||
self.keyPressed.connect(self._on_key_pressed)
|
||||
l.addWidget(self._file_list)
|
||||
frame.setLayout(l)
|
||||
layout.addWidget(frame, 3, 1)
|
||||
layout.addWidget(frame, 3, 1, 1, 3)
|
||||
self._file_map = {}
|
||||
self._read_recent_files()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user