Changeset 8595edd in sasview for src/sas/qtgui


Ignore:
Timestamp:
Feb 17, 2017 5:29:26 AM (8 years ago)
Author:
wojciech
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:
2162fa0
Parents:
1228007
Message:

Model selection formated

File:
1 edited

Legend:

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

    r1228007 r8595edd  
    2828 
    2929        category = self.comboBox.currentText() 
     30 
     31        #self.comboBox_2.addItem('Select Model') 
     32        item = QtGui.QStandardItem('Select Model') 
     33        item.setForeground(QtGui.QColor('red')) 
     34        self.comboBox_2.model().appendRow(item) 
     35        #This should disable selectin "Select Model" but it doesn't work 
     36        self.comboBox.setItemData(0, False, QtCore.Qt.UserRole - 1) 
    3037 
    3138        model_list = self.master_category_dict[str(category)] 
Note: See TracChangeset for help on using the changeset viewer.