Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[processing] upgrade modeler to make use of qgsdockwidgets #3800

Merged
merged 1 commit into from
Nov 24, 2016

Conversation

nirvn
Copy link
Contributor

@nirvn nirvn commented Nov 24, 2016

Now that the modeler is a QMainWindow, we can make use of QDockWidget to allow users to customize the location of the inputs and algorithms elements. This PR does that. I also took the opportunity to relocate the modeler name and modeler's group name.

By default, the modeler now looks like this (notice the nice vertical space gain):
untitled

Thanks to panels, we can now do show both inputs and algorithms at the same time:
untitled2

Or go wild:
untitled4

@nyalldawson , thanks for suggesting this 😄

@@ -67,6 +67,13 @@ def __init__(self, alg=None):
self.bar.setSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed)
self.centralWidget().layout().insertWidget(0, self.bar)

self.setDockOptions(self.dockOptions() | QMainWindow.GroupedDragging)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better wrap this in a try: block, GroupedDragging was only introduced in qt 5.6 from memory

@nyalldawson
Copy link
Collaborator

Very nice! Love these improvements

@nirvn
Copy link
Contributor Author

nirvn commented Nov 24, 2016

@nyalldawson , commit updated with a try: block.

@alexbruy alexbruy merged commit fdc0a3f into qgis:master Nov 24, 2016
@alexbruy
Copy link
Contributor

Nice addition, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants