Исправлено оформление ComboBox

master3.3 3.2.0_alpha5
Mike khiretskiy 10 years ago
parent ae1a9dbc3e
commit dc90d3f040

@ -15,7 +15,8 @@
# limitations under the License.
from PySide import QtGui, QtCore
from more import LabelWordWrap
from more import LabelWordWrap, _print
class MethodNameWgt(QtGui.QWidget):
def __init__(self, parent, ClientObj):
@ -288,7 +289,9 @@ class ControlButtonWgt(QtGui.QWidget):
self.clear_proc_cache_button.setDisabled(True)
sid = int(self.ClientObj.sid)
res = self.ClientObj.client.service.clear_pid_cache(sid, self.pid)
if str(self.pid) == str(self._parent.ClientObj._parent.sys_update_pid):
if (hasattr(self._parent.ClientObj.sys_update_pid) and
str(self.pid) == str(
self._parent.ClientObj._parent.sys_update_pid)):
self._parent.ClientObj._parent.sys_update_pid = None
if res:
_print (_('Error closing the process'))

@ -791,11 +791,13 @@ class MainFrame(QtGui.QWidget):
self.ComboBox = QComboWgt(self)
self.ComboBox.setDuplicatesEnabled(False)
self.ComboBox.setEditable(True)
self.ComboBox.setLineEdit(QtGui.QLineEdit(self))
le = QtGui.QLineEdit(self)
le.setStyleSheet('QLineEdit {background:white;margin: 1px;}')
self.ComboBox.setLineEdit(le)
for i in range(0,len(choice)):
if choice[i] == '---':
self.ComboBox.setStyleSheet('QComboBox::separator '\
'{height : 2px; background: gray;'\
'{height : 2px; background: grey;'\
'margin-top: 0 2px 0 2px;}')
self.ComboBox.insertSeparator(i)
continue

@ -568,6 +568,7 @@ class ComboFileWgt(QtGui.QWidget):
self.ComboBox.setEditable(True)
self.lineEdit = QtGui.QLineEdit(self)
self.ComboBox.setLineEdit(self.lineEdit)
self.lineEdit.setStyleSheet('QLineEdit {background:white;margin: 1px;}')
self.ComboBox.currentIndexChanged.connect(self.setCursorPos)
# self.lineEdit.setStyleSheet("QLineEdit {border: none;}")
@ -1834,7 +1835,9 @@ class PlusRow (QtGui.QWidget):
self.ComboBox = QtGui.QComboBox(self)
self.ComboBox.setDuplicatesEnabled(False)
self.ComboBox.setEditable(True)
self.ComboBox.setLineEdit(QtGui.QLineEdit(self))
le = QtGui.QLineEdit(self)
le.setStyleSheet('QLineEdit {background:white;margin: 1px;}')
self.ComboBox.setLineEdit(le)
text = None
if changed:
text = self.table.item(num_row, col).text()

Loading…
Cancel
Save