Ignore:
Timestamp:
Nov 3, 2017 10:58:39 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:
412e069e
Parents:
304d082
Message:

More Qt5 related fixes.

File:
1 edited

Legend:

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

    r304d082 r6280464  
    88from PyQt5.QtWidgets import * 
    99from PyQt5.QtGui import * 
    10 from PyQt5.QtCore import Qt 
     10from PyQt5.QtCore import Qt, QLocale 
    1111from PyQt5.QtWebKitWidgets import QWebView 
    1212 
     
    191191 
    192192        # Resize to the workspace height 
    193         #workspace_height = self._workspace.workspace.sizeHint().height() 
    194         #perspective_size = self._current_perspective.sizeHint() 
     193        workspace_height = self._workspace.workspace.sizeHint().height() 
     194        perspective_size = self._current_perspective.sizeHint() 
    195195        #if workspace_height < perspective_size.height(): 
    196         #    perspective_width = perspective_size.width() 
    197         #    self._current_perspective.resize(perspective_width, workspace_height-10) 
     196        perspective_width = perspective_size.width() 
     197        self._current_perspective.resize(perspective_width, workspace_height-10) 
    198198 
    199199        self._current_perspective.show() 
     
    584584        self.ipDockWidget.setObjectName("IPythonDockWidget") 
    585585        self.ipDockWidget.setWidget(terminal) 
    586         self._workspace.workspace.addSubWindow(self.ipDockWidget, Qt.RightDockWidgetArea) 
     586        self._workspace.addDockWidget(Qt.RightDockWidgetArea, self.ipDockWidget) 
    587587 
    588588    def actionImage_Viewer(self): 
Note: See TracChangeset for help on using the changeset viewer.