Ignore:
Timestamp:
May 17, 2017 3:17:36 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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
Message:

Minor refactoring + improvements to fitting views

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/ViewDelegate.py

    r00b3b40 r2a432e7  
    3535            options = QtGui.QStyleOptionViewItemV4(option) 
    3636            self.initStyleOption(options,index) 
     37 
    3738            style = QtGui.QApplication.style() if options.widget is None else options.widget.style() 
    3839 
     
    4647            # delete the original content 
    4748            options.text = "" 
    48             style.drawControl(QtGui.QStyle.CE_ItemViewItem, options, painter); 
     49            style.drawControl(QtGui.QStyle.CE_ItemViewItem, options, painter, options.widget); 
    4950 
    5051            context = QtGui.QAbstractTextDocumentLayout.PaintContext() 
     
    5657            # Draw the QTextDocument in the cell 
    5758            doc.documentLayout().draw(painter, context) 
    58  
    5959            painter.restore() 
    6060        else: 
Note: See TracChangeset for help on using the changeset viewer.