Changeset d1955d67 in sasview


Ignore:
Timestamp:
Nov 15, 2017 8:48:27 AM (5 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:
84df556
Parents:
c7ebb37
Message:

Fixed Mdi area and widget resizing issue(s)

Location:
src/sas/qtgui
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/GuiManager.py

    rd4881f6a rd1955d67  
    192192        self._current_perspective = Perspectives.PERSPECTIVES[str(perspective_name)](parent=self) 
    193193 
    194         self._workspace.workspace.addSubWindow(self._current_perspective) 
     194        subwindow = self._workspace.workspace.addSubWindow(self._current_perspective) 
    195195 
    196196        # Resize to the workspace height 
    197197        workspace_height = self._workspace.workspace.sizeHint().height() 
    198198        perspective_size = self._current_perspective.sizeHint() 
    199         #if workspace_height < perspective_size.height(): 
    200199        perspective_width = perspective_size.width() 
    201200        self._current_perspective.resize(perspective_width, workspace_height-10) 
     201        # Resize the mdi area to match the widget within 
     202        subwindow.resize(subwindow.minimumSizeHint()) 
    202203 
    203204        self._current_perspective.show() 
  • src/sas/qtgui/Perspectives/Fitting/UI/FittingWidgetUI.ui

    r38eb433 rd1955d67  
    77    <x>0</x> 
    88    <y>0</y> 
    9     <width>379</width> 
    10     <height>669</height> 
     9    <width>434</width> 
     10    <height>466</height> 
    1111   </rect> 
    1212  </property> 
    1313  <property name="sizePolicy"> 
    14    <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> 
     14   <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> 
    1515    <horstretch>0</horstretch> 
    1616    <verstretch>0</verstretch> 
    1717   </sizepolicy> 
     18  </property> 
     19  <property name="minimumSize"> 
     20   <size> 
     21    <width>434</width> 
     22    <height>466</height> 
     23   </size> 
    1824  </property> 
    1925  <property name="windowTitle"> 
  • src/sas/qtgui/Perspectives/Invariant/InvariantPerspective.py

    • Property mode changed from 100755 to 100644
    r7c487846 rd1955d67  
    8181 
    8282        # no reason to have this widget resizable 
    83         self.setFixedSize(self.minimumSizeHint()) 
     83        self.resize(self.minimumSizeHint()) 
     84        #self.setFixedSize(self.sizeHint()) 
    8485 
    8586        self.communicate = self._manager.communicator() 
  • src/sas/qtgui/Perspectives/Invariant/UI/TabbedInvariantUI.ui

    rf1f3e6a rd1955d67  
    77    <x>0</x> 
    88    <y>0</y> 
    9     <width>601</width> 
     9    <width>422</width> 
    1010    <height>473</height> 
    1111   </rect> 
Note: See TracChangeset for help on using the changeset viewer.