-
Notifications
You must be signed in to change notification settings - Fork 31
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
Prepare icon and UI imports for qt6 QGis builds #250
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there some documentation available on how qt6 handles things?
I am mostly confused by the removal of the resources*
-files and the *UI.py
-files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this whole file change? I assume b/c of line endings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the license of this compatible with ours?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are importing a rather large chunk of code here, of which only 3 small functions are used.
I suggest to reduce the import to the functions in question.
if not os.path.exists(path): | ||
return path | ||
|
||
return path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This branching is essentially useless?
ORStools/utils/gui.py
Outdated
path = os.path.join( | ||
os.path.dirname(__file__), | ||
'..', | ||
'gui', | ||
file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is highly dependent on the code layout of the plugin - in our case, it works, but it feels way more generic than it is?
return QIcon(path) | ||
|
||
@staticmethod | ||
def get_icon_svg(icon: str) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this reads like it should do something with svg
, the code does nothing - and rather has the functionality I'd expect in get_icon
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like more context on the deletion of this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like more context on the deletion of this file.
No description provided.