mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
removed browse button from drop zone
This commit is contained in:
parent
b2b4c031c1
commit
b3c15a16c9
1 changed files with 2 additions and 9 deletions
|
|
@ -12,19 +12,12 @@ class DropDataWidget(QtWidgets.QWidget):
|
|||
|
||||
layout = QtWidgets.QVBoxLayout(self)
|
||||
|
||||
bottomCenterAlignment = QtCore.Qt.AlignBottom | QtCore.Qt.AlignHCenter
|
||||
topCenterAlignment = QtCore.Qt.AlignTop | QtCore.Qt.AlignHCenter
|
||||
CenterAlignment = QtCore.Qt.AlignVCenter | QtCore.Qt.AlignHCenter
|
||||
|
||||
self._label = QtWidgets.QLabel('Drop files here')
|
||||
layout.addWidget(
|
||||
self._label,
|
||||
alignment=bottomCenterAlignment
|
||||
)
|
||||
|
||||
self._browseButton = QtWidgets.QPushButton('Browse')
|
||||
self._browseButton.setToolTip('Browse for file(s).')
|
||||
layout.addWidget(
|
||||
self._browseButton, alignment=topCenterAlignment
|
||||
alignment=CenterAlignment
|
||||
)
|
||||
|
||||
def paintEvent(self, event):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue