|
|
|
@ -1560,7 +1560,7 @@ class ExpertWidget (QtGui.QPushButton):
|
|
|
|
|
pm = pm.transformed(QtGui.QTransform().rotate(90))
|
|
|
|
|
self.image_lbl.setPixmap(pm)
|
|
|
|
|
self.image_lbl.setAlignment(QtCore.Qt.AlignCenter)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# add transparency
|
|
|
|
|
self.image_lbl.setAttribute(QtCore.Qt.WA_NoSystemBackground)
|
|
|
|
|
|
|
|
|
@ -1783,7 +1783,7 @@ class PlusRow (QtGui.QWidget):
|
|
|
|
|
self.ComboBox.setItemData(ch, values[ch])
|
|
|
|
|
if text and text == values[ch]:
|
|
|
|
|
self.ComboBox.setCurrentIndex(self.ComboBox.count()-1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not text in values and text != None:
|
|
|
|
|
self.ComboBox.addItem(text)
|
|
|
|
|
self.ComboBox.setItemData(self.ComboBox.count(), text)
|
|
|
|
@ -1806,7 +1806,7 @@ class PlusRow (QtGui.QWidget):
|
|
|
|
|
text = self.table.item(num_row, col).text()
|
|
|
|
|
default = text.split(',')
|
|
|
|
|
def_res = []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if comments and hasattr (comments, 'string'):
|
|
|
|
|
comm = comments.string
|
|
|
|
|
else: comm = []
|
|
|
|
@ -2026,9 +2026,8 @@ class PasswordWgt(QtGui.QWidget):
|
|
|
|
|
super(PasswordWgt, self).__init__()
|
|
|
|
|
self._parent = parent
|
|
|
|
|
self.text = text
|
|
|
|
|
|
|
|
|
|
self.layout = QtGui.QGridLayout(self)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.pass_edit = QtGui.QLineEdit(self)
|
|
|
|
|
self.pass_edit.setEchoMode(self.pass_edit.Password)
|
|
|
|
|
|
|
|
|
@ -2037,28 +2036,24 @@ class PasswordWgt(QtGui.QWidget):
|
|
|
|
|
|
|
|
|
|
self.pass_edit2 = QtGui.QLineEdit(self)
|
|
|
|
|
self.pass_edit2.setEchoMode(self.pass_edit2.Password)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.layout.addWidget(LabelWordWrap(_('Repeat'), self), 1, 0)
|
|
|
|
|
self.layout.addWidget(self.pass_edit2, 1, 1)
|
|
|
|
|
self.pass_edit.textChanged.connect(self.check_passwd)
|
|
|
|
|
self.pass_edit2.textChanged.connect(self.check_passwd)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.ok_button = QtGui.QPushButton(_('Ok'), self)
|
|
|
|
|
self.ok_button.setShortcut(QtGui.QKeySequence(QtCore.Qt.Key_Return))
|
|
|
|
|
self.ok_button.clicked.connect(self.send_password)
|
|
|
|
|
|
|
|
|
|
self.layout.addWidget(self.ok_button,2,0)
|
|
|
|
|
|
|
|
|
|
self.cancel_button = QtGui.QPushButton(_('Cancel'), self)
|
|
|
|
|
self.cancel_button.setShortcut(QtGui.QKeySequence \
|
|
|
|
|
(QtCore.Qt.Key_Escape))
|
|
|
|
|
self.cancel_button.clicked.connect(self.close)
|
|
|
|
|
|
|
|
|
|
self.layout.addWidget(self.cancel_button,2,1)
|
|
|
|
|
|
|
|
|
|
self.move(QtGui.QCursor.pos())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def send_password(self):
|
|
|
|
|
password = self.pass_edit.text()
|
|
|
|
|
if password == self.pass_edit2.text():
|
|
|
|
@ -2297,7 +2292,7 @@ def show_question(parent, text, informative_text = None, cursor_pos = False,
|
|
|
|
|
else:
|
|
|
|
|
msgBox.move(parent.frameGeometry().x()+parent.size().width()/2 - 150,\
|
|
|
|
|
parent.frameGeometry().y() + parent.size().height()/2 - 100)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reply = msgBox.exec_()
|
|
|
|
|
return reply
|
|
|
|
|
|
|
|
|
@ -2327,13 +2322,13 @@ def client_post_auth(client):
|
|
|
|
|
show_msg (e.value)
|
|
|
|
|
return 1
|
|
|
|
|
return 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ClientSignal(QtCore.QThread):
|
|
|
|
|
sid_sig = QtCore.Signal(int, int)
|
|
|
|
|
def __init__(self, ClientObj):
|
|
|
|
|
QtCore.QThread.__init__(self)
|
|
|
|
|
self.ClientObj = ClientObj
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def run(self):
|
|
|
|
|
self.exit_flag = False
|
|
|
|
|
try:
|
|
|
|
|