Ignore:
Timestamp:
Nov 9, 2017 6:43:55 AM (6 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:
d6b8a1d
Parents:
7969b9c
git-author:
Piotr Rozyczko <rozyczko@…> (11/03/17 08:58:39)
git-committer:
Piotr Rozyczko <rozyczko@…> (11/09/17 06:43:55)
Message:

More Qt5 related fixes.

File:
1 edited

Legend:

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

    r7969b9c rfbfc488  
    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 
     
    198198 
    199199        # Resize to the workspace height 
    200         #workspace_height = self._workspace.workspace.sizeHint().height() 
    201         #perspective_size = self._current_perspective.sizeHint() 
     200        workspace_height = self._workspace.workspace.sizeHint().height() 
     201        perspective_size = self._current_perspective.sizeHint() 
    202202        #if workspace_height < perspective_size.height(): 
    203         #    perspective_width = perspective_size.width() 
    204         #    self._current_perspective.resize(perspective_width, workspace_height-10) 
     203        perspective_width = perspective_size.width() 
     204        self._current_perspective.resize(perspective_width, workspace_height-10) 
    205205 
    206206        self._current_perspective.show() 
     
    592592        self.ipDockWidget.setObjectName("IPythonDockWidget") 
    593593        self.ipDockWidget.setWidget(terminal) 
    594         self._workspace.workspace.addSubWindow(self.ipDockWidget, Qt.RightDockWidgetArea) 
     594        self._workspace.addDockWidget(Qt.RightDockWidgetArea, self.ipDockWidget) 
    595595 
    596596    def actionImage_Viewer(self): 
Note: See TracChangeset for help on using the changeset viewer.