Commit 45a368c9 authored by Steve Borho's avatar Steve Borho
Browse files

sync: explicitly disable drops to QLabel and QLineEdits

parent 18b06a55a917
......@@ -79,6 +79,7 @@ class SyncWidget(QWidget):
hbox.addWidget(QLabel(_('URL:')))
self.urllabel = QLabel()
self.urllabel.setTextInteractionFlags(Qt.TextSelectableByMouse)
self.urllabel.setAcceptDrops(False)
hbox.addWidget(self.urllabel)
hbox.addStretch(1)
urlvbox.addLayout(hbox)
......@@ -93,10 +94,12 @@ class SyncWidget(QWidget):
hbox.addWidget(self.schemecombo)
hbox.addWidget(QLabel(_('Hostname:')))
self.hostentry = QLineEdit()
self.hostentry.setAcceptDrops(False)
self.hostentry.textChanged.connect(self.refreshUrl)
hbox.addWidget(self.hostentry)
hbox.addWidget(QLabel(_('Port:')))
self.portentry = QLineEdit()
self.portentry.setAcceptDrops(False)
fontm = QFontMetrics(self.font())
self.portentry.setFixedWidth(8 * fontm.width('9'))
self.portentry.textChanged.connect(self.refreshUrl)
......@@ -108,6 +111,7 @@ class SyncWidget(QWidget):
hbox.setSpacing(4)
hbox.addWidget(QLabel(_('Path:')))
self.pathentry = QLineEdit()
self.pathentry.setAcceptDrops(False)
self.pathentry.textChanged.connect(self.refreshUrl)
hbox.addWidget(self.pathentry, 1)
self.authbutton = QPushButton(_('Authentication'))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment