Changeset 2a432e7 in sasview for src/sas/qtgui/Perspectives/Fitting/ViewDelegate.py
- Timestamp:
- May 17, 2017 3:17:36 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- dc5ef15
- Parents:
- 00b3b40
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/ViewDelegate.py
r00b3b40 r2a432e7 35 35 options = QtGui.QStyleOptionViewItemV4(option) 36 36 self.initStyleOption(options,index) 37 37 38 style = QtGui.QApplication.style() if options.widget is None else options.widget.style() 38 39 … … 46 47 # delete the original content 47 48 options.text = "" 48 style.drawControl(QtGui.QStyle.CE_ItemViewItem, options, painter );49 style.drawControl(QtGui.QStyle.CE_ItemViewItem, options, painter, options.widget); 49 50 50 51 context = QtGui.QAbstractTextDocumentLayout.PaintContext() … … 56 57 # Draw the QTextDocument in the cell 57 58 doc.documentLayout().draw(painter, context) 58 59 59 painter.restore() 60 60 else:
Note: See TracChangeset
for help on using the changeset viewer.