mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-07 14:23:01 -04:00
Fix drag and drop by hiding DropHereWidget widget, and adjust location of DropCountLabel
This commit is contained in:
parent
218f9a651c
commit
7688fd5d45
1 changed files with 3 additions and 4 deletions
|
@ -65,7 +65,7 @@ class DropHereWidget(QtWidgets.QWidget):
|
||||||
self.hide()
|
self.hide()
|
||||||
|
|
||||||
def dragEnterEvent(self, event):
|
def dragEnterEvent(self, event):
|
||||||
self.text_label.hide()
|
self.hide()
|
||||||
event.accept()
|
event.accept()
|
||||||
|
|
||||||
def resize(self, w, h):
|
def resize(self, w, h):
|
||||||
|
@ -108,10 +108,9 @@ class FileList(QtWidgets.QListWidget):
|
||||||
|
|
||||||
def __init__(self, common, background_image_filename, header_text, parent=None):
|
def __init__(self, common, background_image_filename, header_text, parent=None):
|
||||||
super(FileList, self).__init__(parent)
|
super(FileList, self).__init__(parent)
|
||||||
|
|
||||||
self.common = common
|
self.common = common
|
||||||
|
|
||||||
self.setAcceptDrops(True)
|
self.setAcceptDrops(True)
|
||||||
|
|
||||||
self.setIconSize(QtCore.QSize(32, 32))
|
self.setIconSize(QtCore.QSize(32, 32))
|
||||||
self.setSortingEnabled(True)
|
self.setSortingEnabled(True)
|
||||||
self.setMinimumHeight(160)
|
self.setMinimumHeight(160)
|
||||||
|
@ -192,7 +191,7 @@ class FileList(QtWidgets.QListWidget):
|
||||||
|
|
||||||
size_hint = self.drop_count.sizeHint()
|
size_hint = self.drop_count.sizeHint()
|
||||||
self.drop_count.setGeometry(
|
self.drop_count.setGeometry(
|
||||||
self.width() - size_hint.width() - 10,
|
self.width() - size_hint.width() - 30,
|
||||||
self.height() - size_hint.height() - 10,
|
self.height() - size_hint.height() - 10,
|
||||||
size_hint.width(),
|
size_hint.width(),
|
||||||
size_hint.height(),
|
size_hint.height(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue