Changeset cee5c78 in sasview for src/sas/qtgui/Utilities
- Timestamp:
- Nov 9, 2017 8:41:55 AM (6 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:
- 7fb471d
- Parents:
- b3e8629
- git-author:
- Piotr Rozyczko <rozyczko@…> (10/27/17 03:42:57)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:41:55)
- Location:
- src/sas/qtgui/Utilities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Utilities/CategoryInstaller.py
- Property mode changed from 100755 to 100644
rb3e8629 rcee5c78 129 129 130 130 serialized_file = None 131 if homedir ==None:131 if homedir is None: 132 132 serialized_file = CategoryInstaller.get_user_file() 133 133 else: -
src/sas/qtgui/Utilities/GuiUtils.py
- Property mode changed from 100755 to 100644
rb3e8629 rcee5c78 239 239 """ 240 240 Adds a checkboxed row named "name" to QStandardItem 241 Adds QVariant'update_data' to that row.241 Adds 'update_data' to that row. 242 242 """ 243 243 assert isinstance(item, QtGui.QStandardItem) 244 #assert isinstance(update_data, QtCore.QVariant)245 #py_update_data = update_data.toPyObject()246 244 py_update_data = update_data 247 245 … … 269 267 """ 270 268 Creates a checkboxed QStandardItem named "name" 271 Adds QVariant'update_data' to that row.269 Adds 'update_data' to that row. 272 270 """ 273 271 #assert isinstance(update_data, QtCore.QVariant) … … 532 530 with open(path,'w') as out: 533 531 has_errors = True 534 if data.dy ==None or data.dy == []:532 if data.dy is None or data.dy == []: 535 533 has_errors = False 536 534 # Sanity check … … 552 550 if has_errors: 553 551 if data.dx is not None and data.dx != []: 554 if data.dx[i] !=None:552 if data.dx[i] is not None: 555 553 out.write("%g %g %g %g\n" % (data.x[i], 556 554 data.y[i], -
src/sas/qtgui/Utilities/UnitTesting/GuiUtilsTest.py
rf4a1433 rcee5c78 102 102 test_item = QtGui.QStandardItem() 103 103 test_list = ['aa','11'] 104 update_data = QtCore.QVariant(test_list)104 update_data = test_list 105 105 name = "Black Sabbath" 106 106 … … 133 133 checkbox_item.setCheckState(QtCore.Qt.Checked) 134 134 test_item0 = QtGui.QStandardItem() 135 test_item0.setData( QtCore.QVariant(test_list0))135 test_item0.setData(test_list0) 136 136 137 137 # Checked item 1 … … 140 140 test_item1.setCheckState(QtCore.Qt.Checked) 141 141 object_item = QtGui.QStandardItem() 142 object_item.setData( QtCore.QVariant(test_list1))142 object_item.setData(test_list1) 143 143 test_item1.setChild(0, object_item) 144 144 … … 151 151 test_item2.setCheckState(QtCore.Qt.Unchecked) 152 152 object_item = QtGui.QStandardItem() 153 object_item.setData( QtCore.QVariant(test_list2))153 object_item.setData(test_list2) 154 154 test_item2.setChild(0, object_item) 155 155 checkbox_item.appendRow(test_item2)
Note: See TracChangeset
for help on using the changeset viewer.