Merge pull request #20 from spacelord47/fix/use_qt6_enums_properly
All checks were successful
continuous-integration/drone/tag Build is passing
All checks were successful
continuous-integration/drone/tag Build is passing
Fixes: #19 Fixes: #18
This commit is contained in:
commit
cefa65eadf
1
.gitignore
vendored
1
.gitignore
vendored
@ -117,6 +117,7 @@ venv/
|
||||
ENV/
|
||||
env.bak/
|
||||
venv.bak/
|
||||
.idea
|
||||
|
||||
# Spyder project settings
|
||||
.spyderproject
|
||||
|
@ -56,22 +56,22 @@ class EditorPreview(object):
|
||||
location = config["location"]
|
||||
split = QSplitter()
|
||||
if location == "above":
|
||||
split.setOrientation(Qt.Vertical)
|
||||
split.setOrientation(Qt.Orientation.Vertical)
|
||||
split.addWidget(editor.editor_preview)
|
||||
split.addWidget(editor.web)
|
||||
sizes = [editorR, mainR]
|
||||
elif location == "below":
|
||||
split.setOrientation(Qt.Vertical)
|
||||
split.setOrientation(Qt.Orientation.Vertical)
|
||||
split.addWidget(editor.web)
|
||||
split.addWidget(editor.editor_preview)
|
||||
sizes = [mainR, editorR]
|
||||
elif location == "left":
|
||||
split.setOrientation(Qt.Horizontal)
|
||||
split.setOrientation(Qt.Orientation.Horizontal)
|
||||
split.addWidget(editor.editor_preview)
|
||||
split.addWidget(editor.web)
|
||||
sizes = [editorR, mainR]
|
||||
elif location == "right":
|
||||
split.setOrientation(Qt.Horizontal)
|
||||
split.setOrientation(Qt.Orientation.Horizontal)
|
||||
split.addWidget(editor.web)
|
||||
split.addWidget(editor.editor_preview)
|
||||
sizes = [mainR, editorR]
|
||||
|
Loading…
Reference in New Issue
Block a user