Changeset f140169 in sasview for src/sas


Ignore:
Timestamp:
Nov 2, 2016 9:54:39 AM (8 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:
e4676c8
Parents:
9968d6a
Message:

fixed size widget

Location:
src/sas/qtgui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/DensityPanel.py

    r9968d6a rf140169  
    7272        self.ui = Ui_DensityPanel() 
    7373        self.ui.setupUi(self) 
     74 
     75        # no reason to have this widget resizable 
     76        self.setFixedSize(self.minimumSizeHint()) 
    7477 
    7578        # set validators 
  • src/sas/qtgui/UnitTesting/DensityCalculatorTest.py

    r9968d6a rf140169  
    1616from DensityPanel import toMolarMass 
    1717from DensityPanel import FormulaValidator 
    18 from UnitTesting.TestUtils import mousePress 
    1918 
    2019import LocalConfig 
     
    8584        self.assertEqual(self.widget.model.columnCount(), 1) 
    8685        self.assertEqual(self.widget.model.rowCount(), 4) 
     86        self.assertEqual(self.widget.sizePolicy().Policy(), QtGui.QSizePolicy.Fixed) 
    8787 
    8888    def testSimpleEntry(self): 
Note: See TracChangeset for help on using the changeset viewer.