summaryrefslogtreecommitdiff
path: root/src/main/python/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/python/utils')
-rw-r--r--src/main/python/utils/canvas.py2
-rw-r--r--src/main/python/utils/fileWindow.py2
-rw-r--r--src/main/python/utils/layout.py2
-rw-r--r--src/main/python/utils/toolbar.py6
4 files changed, 6 insertions, 6 deletions
diff --git a/src/main/python/utils/canvas.py b/src/main/python/utils/canvas.py
index 66d38e8..c860bbb 100644
--- a/src/main/python/utils/canvas.py
+++ b/src/main/python/utils/canvas.py
@@ -16,7 +16,7 @@ class canvas(QWidget):
for context menu and dialogs.
"""
- def __init__(self, parent=None, size= 'A4', ppi= '72' , parentMdiArea = None, parentFileWindow = None, landscape=False):
+ def __init__(self, parent=None, size= 'A0', ppi= '72' , parentMdiArea = None, parentFileWindow = None, landscape=True):
super(canvas, self).__init__(parent)
#Store values for the canvas dimensions for ease of access, these are here just to be
diff --git a/src/main/python/utils/fileWindow.py b/src/main/python/utils/fileWindow.py
index ba0b6e9..a5ed535 100644
--- a/src/main/python/utils/fileWindow.py
+++ b/src/main/python/utils/fileWindow.py
@@ -20,7 +20,7 @@ class fileWindow(QMdiSubWindow):
fileCloseEvent = pyqtSignal(int)
tabChangeEvent = pyqtSignal()
- def __init__(self, parent = None, title = 'New Project', size = 'A4', ppi = '72'):
+ def __init__(self, parent = None, title = 'New Project', size = 'A0', ppi = '72'):
super(fileWindow, self).__init__(parent)
self._sideViewTab = None
self.index = None
diff --git a/src/main/python/utils/layout.py b/src/main/python/utils/layout.py
index 6781249..ac37358 100644
--- a/src/main/python/utils/layout.py
+++ b/src/main/python/utils/layout.py
@@ -2,7 +2,7 @@ from PyQt5.QtCore import Qt, QRect, QPoint, QSize
from PyQt5.QtWidgets import QLayout, QSizePolicy
class flowLayout(QLayout):
- def __init__(self, parent=None, margin=0, spacing=-1):
+ def __init__(self, parent=None, margin=0, spacing=12):
super(flowLayout, self).__init__(parent)
if parent is not None:
diff --git a/src/main/python/utils/toolbar.py b/src/main/python/utils/toolbar.py
index beac867..220504b 100644
--- a/src/main/python/utils/toolbar.py
+++ b/src/main/python/utils/toolbar.py
@@ -81,7 +81,7 @@ class toolbar(QDockWidget):
parent = self.parentWidget() #used to get parent dimensions
self.layout.setDirection(QBoxLayout.TopToBottom) # here so that a horizontal toolbar can be implemented later
# self.setFixedHeight(self.height()) #span available height
- self.searchBox.setMinimumWidth(.15*parent.width())
+ self.searchBox.setMinimumWidth(.18*parent.width())
width = self.width()
scrollBar = self.diagArea.verticalScrollBar()
height = self.diagAreaLayout.heightForWidth(width)
@@ -90,7 +90,7 @@ class toolbar(QDockWidget):
# the following line, sets the required height for the current width, so that blank space doesnt occur
self.diagAreaWidget.setMinimumHeight(height)
- self.setMinimumWidth(.18*parent.width()) #12% of parent width
+ self.setMinimumWidth(.2*parent.width()) #12% of parent width
# self.setMinimumWidth(self.diagAreaLayout.minimumSize().width()) #12% of parent width
self.diagAreaWidget.setLayout(self.diagAreaLayout)
self.diagArea.setWidget(self.diagAreaWidget)
@@ -161,7 +161,7 @@ class toolbarButton(QToolButton):
def minimumSizeHint(self):
#defines button size
- return QSize(40, 40)
+ return QSize(55, 55)
class sectionLabel(QLabel):