-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Adding the option for specify the project title on packaged project #615
base: master
Are you sure you want to change the base?
Adding the option for specify the project title on packaged project #615
Conversation
…ged QField project
@@ -22,15 +22,15 @@ | |||
<item> | |||
<widget class="QLabel" name="label_2"> | |||
<property name="text"> | |||
<string><html><head/><body><p><span style=" font-weight:600;">Project:</span></p></body></html></string> | |||
<string><html><head/><body><p><span style=" font-weight:600;">Exported Project Title:</span></p></body></html></string> |
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 should not be HTML.
@@ -189,6 +192,8 @@ def package_project(self): | |||
try: | |||
QApplication.setOverrideCursor(Qt.WaitCursor) | |||
offline_convertor.convert() | |||
self.project.setTitle(self.original_title_project) | |||
open_project(self.project.fileName()) |
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 guess you don't need it in this PR, do you?
@@ -73,7 +73,8 @@ def __init__(self, iface, project, offline_editing, parent=None): | |||
self.qfield_preferences = Preferences() | |||
self.dirsToCopyWidget = DirsToCopyWidget() | |||
self.__project_configuration = ProjectConfiguration(self.project) | |||
self.project_lbl.setText(get_project_title(self.project)) | |||
self.original_title_project = project.title() |
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.
self.original_title_project = project.title() | |
self.original_project_title = project.title() |
@@ -73,7 +73,8 @@ def __init__(self, iface, project, offline_editing, parent=None): | |||
self.qfield_preferences = Preferences() | |||
self.dirsToCopyWidget = DirsToCopyWidget() | |||
self.__project_configuration = ProjectConfiguration(self.project) | |||
self.project_lbl.setText(get_project_title(self.project)) | |||
self.original_title_project = project.title() | |||
self.new_project_title.setText(self.original_title_project) |
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.
self.new_project_title.setText(self.original_title_project) | |
self.packaged_project_title.setText(self.original_title_project) |
This adds the option to specify a new project title in the exported project when packaging.