Skip to content

Commit

Permalink
compiling ui with Qt5
Browse files Browse the repository at this point in the history
close #171
  • Loading branch information
SimonSAMPERE committed May 27, 2019
1 parent abef117 commit 140de57
Show file tree
Hide file tree
Showing 12 changed files with 70,229 additions and 70,283 deletions.
138,938 changes: 69,469 additions & 69,469 deletions resources.py

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions ui/auth/dlg_authentication.py
Expand Up @@ -23,8 +23,9 @@

import os

from PyQt4 import QtGui, uic
from PyQt4.QtCore import pyqtSignal
from qgis.PyQt import QtGui, uic
from qgis.PyQt.QtWidgets import QDialog
from qgis.PyQt.QtCore import pyqtSignal

# # changed because of an issue generated by Qt Designer
# # see: http://gis.stackexchange.com/a/155599/19817
Expand All @@ -36,8 +37,8 @@

# # changed besause of an issue generated by Qt Designer
# # see: http://gis.stackexchange.com/a/155599/19817
class IsogeoAuthentication(QtGui.QDialog, FORM_CLASS):
# class IsogeoAuthentication(QtGui.QDialog, Ui_dlg_form_auth_prompt):
class IsogeoAuthentication(QDialog, FORM_CLASS):
# class IsogeoAuthentication(QDialog, Ui_dlg_form_auth_prompt):

closingPlugin = pyqtSignal()

Expand Down
195 changes: 96 additions & 99 deletions ui/auth/ui_authentication.py

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions ui/credits/dlg_credits.py
Expand Up @@ -23,8 +23,9 @@

import os

from PyQt4 import QtGui, uic
from PyQt4.QtCore import pyqtSignal
from qgis.PyQt import QtGui, uic
from qgis.PyQt.QtWidgets import QDialog
from qgis.PyQt.QtCore import pyqtSignal

# # changed because of an issue generated by Qt Designer
# # see: http://gis.stackexchange.com/a/155599/19817
Expand All @@ -36,9 +37,9 @@

# # changed besause of an issue generated by Qt Designer
# # see: http://gis.stackexchange.com/a/155599/19817
# class IsogeoCredits(QtGui.QDialog, FORM_CLASS):
# class IsogeoCredits(QDialog, FORM_CLASS):

class IsogeoCredits(QtGui.QDialog, FORM_CLASS):
class IsogeoCredits(QDialog, FORM_CLASS):

closingPlugin = pyqtSignal()

Expand Down
192 changes: 89 additions & 103 deletions ui/credits/ui_credits.py

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions ui/isogeo_dockwidget.py
Expand Up @@ -23,14 +23,15 @@

import os

from PyQt4 import QtGui, uic
from PyQt4.QtCore import pyqtSignal
from qgis.PyQt import uic
from qgis.PyQt.QtWidgets import QDockWidget
from qgis.PyQt.QtCore import pyqtSignal

FORM_CLASS, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'isogeo_dockwidget_base.ui'))


class IsogeoDockWidget(QtGui.QDockWidget, FORM_CLASS):
class IsogeoDockWidget(QDockWidget, FORM_CLASS):

closingPlugin = pyqtSignal()

Expand Down
9 changes: 5 additions & 4 deletions ui/metadata/dlg_md_details.py
Expand Up @@ -23,8 +23,9 @@

import os

from PyQt4 import QtGui, uic
from PyQt4.QtCore import pyqtSignal
from qgis.PyQt import QtGui, uic
from qgis.PyQt.QtWidgets import QDialog
from qgis.PyQt.QtCore import pyqtSignal

# # changed because of an issue generated by Qt Designer
# # see: http://gis.stackexchange.com/a/155599/19817
Expand All @@ -36,9 +37,9 @@

# # changed besause of an issue generated by Qt Designer
# # see: http://gis.stackexchange.com/a/155599/19817
# class IsogeoMdDetails(QtGui.QDialog, FORM_CLASS):
# class IsogeoMdDetails(QDialog, FORM_CLASS):

class IsogeoMdDetails(QtGui.QDialog, FORM_CLASS):
class IsogeoMdDetails(QDialog, FORM_CLASS):

closingPlugin = pyqtSignal()

Expand Down
1,025 changes: 505 additions & 520 deletions ui/metadata/ui_md_details.py

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions ui/quicksearch/dlg_quicksearch_new.py
Expand Up @@ -23,8 +23,9 @@

import os

from PyQt4 import QtGui, uic
from PyQt4.QtCore import pyqtSignal
from qgis.PyQt import QtGui, uic
from qgis.PyQt.QtWidgets import QDialog
from qgis.PyQt.QtCore import pyqtSignal

# # changed because of an issue generated by Qt Designer
# # see: http://gis.stackexchange.com/a/155599/19817
Expand All @@ -36,9 +37,9 @@

# # changed besause of an issue generated by Qt Designer
# # see: http://gis.stackexchange.com/a/155599/19817
# class QuicksearchNew(QtGui.QDialog, FORM_CLASS):
# class QuicksearchNew(QDialog, FORM_CLASS):

class QuicksearchNew(QtGui.QDialog, FORM_CLASS):
class QuicksearchNew(QDialog, FORM_CLASS):

closingPlugin = pyqtSignal()

Expand Down
9 changes: 5 additions & 4 deletions ui/quicksearch/dlg_quicksearch_rename.py
Expand Up @@ -23,8 +23,9 @@

import os

from PyQt4 import QtGui, uic
from PyQt4.QtCore import pyqtSignal
from qgis.PyQt import QtGui, uic
from qgis.PyQt.QtWidgets import QDialog
from qgis.PyQt.QtCore import pyqtSignal

# # changed because of an issue generated by Qt Designer
# # see: http://gis.stackexchange.com/a/155599/19817
Expand All @@ -36,9 +37,9 @@

# # changed besause of an issue generated by Qt Designer
# # see: http://gis.stackexchange.com/a/155599/19817
# class QuicksearchRename(QtGui.QDialog, FORM_CLASS):
# class QuicksearchRename(QDialog, FORM_CLASS):

class QuicksearchRename(QtGui.QDialog, FORM_CLASS):
class QuicksearchRename(QDialog, FORM_CLASS):

closingPlugin = pyqtSignal()

Expand Down
56 changes: 21 additions & 35 deletions ui/quicksearch/ui_quicksearch_new.py
Expand Up @@ -2,33 +2,18 @@

# Form implementation generated from reading ui file 'ui\quicksearch\ui_quicksearch_new.ui'
#
# Created: Thu May 31 19:44:32 2018
# by: PyQt4 UI code generator 4.10.2
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s

try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig)
from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_dlg_quicksearch_new(object):
def setupUi(self, dlg_quicksearch_new):
dlg_quicksearch_new.setObjectName(_fromUtf8("dlg_quicksearch_new"))
dlg_quicksearch_new.setObjectName("dlg_quicksearch_new")
dlg_quicksearch_new.setWindowModality(QtCore.Qt.WindowModal)
dlg_quicksearch_new.resize(468, 100)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(dlg_quicksearch_new.sizePolicy().hasHeightForWidth())
Expand All @@ -38,16 +23,16 @@ def setupUi(self, dlg_quicksearch_new):
dlg_quicksearch_new.setFocusPolicy(QtCore.Qt.StrongFocus)
dlg_quicksearch_new.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/Isogeo/resources/search/bolt.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
icon.addPixmap(QtGui.QPixmap(":/plugins/Isogeo/resources/search/bolt.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
dlg_quicksearch_new.setWindowIcon(icon)
dlg_quicksearch_new.setWindowOpacity(0.9)
dlg_quicksearch_new.setAutoFillBackground(True)
dlg_quicksearch_new.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
dlg_quicksearch_new.setSizeGripEnabled(False)
dlg_quicksearch_new.setModal(True)
self.gridLayout = QtGui.QGridLayout(dlg_quicksearch_new)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.lbl_title = QtGui.QLabel(dlg_quicksearch_new)
self.gridLayout = QtWidgets.QGridLayout(dlg_quicksearch_new)
self.gridLayout.setObjectName("gridLayout")
self.lbl_title = QtWidgets.QLabel(dlg_quicksearch_new)
self.lbl_title.setMinimumSize(QtCore.QSize(0, 25))
font = QtGui.QFont()
font.setPointSize(8)
Expand All @@ -57,33 +42,34 @@ def setupUi(self, dlg_quicksearch_new):
self.lbl_title.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
self.lbl_title.setAutoFillBackground(True)
self.lbl_title.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
self.lbl_title.setObjectName(_fromUtf8("lbl_title"))
self.lbl_title.setObjectName("lbl_title")
self.gridLayout.addWidget(self.lbl_title, 0, 0, 1, 1)
self.txt_quicksearch_name = QtGui.QLineEdit(dlg_quicksearch_new)
self.txt_quicksearch_name = QtWidgets.QLineEdit(dlg_quicksearch_new)
self.txt_quicksearch_name.setMinimumSize(QtCore.QSize(50, 25))
self.txt_quicksearch_name.setObjectName(_fromUtf8("txt_quicksearch_name"))
self.txt_quicksearch_name.setObjectName("txt_quicksearch_name")
self.gridLayout.addWidget(self.txt_quicksearch_name, 0, 1, 1, 2)
self.btn_save_cancel = QtGui.QDialogButtonBox(dlg_quicksearch_new)
self.btn_save_cancel = QtWidgets.QDialogButtonBox(dlg_quicksearch_new)
self.btn_save_cancel.setOrientation(QtCore.Qt.Horizontal)
self.btn_save_cancel.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Save)
self.btn_save_cancel.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Save)
self.btn_save_cancel.setCenterButtons(True)
self.btn_save_cancel.setObjectName(_fromUtf8("btn_save_cancel"))
self.btn_save_cancel.setObjectName("btn_save_cancel")
self.gridLayout.addWidget(self.btn_save_cancel, 1, 0, 1, 3)

self.retranslateUi(dlg_quicksearch_new)
QtCore.QObject.connect(self.btn_save_cancel, QtCore.SIGNAL(_fromUtf8("accepted()")), dlg_quicksearch_new.accept)
QtCore.QObject.connect(self.btn_save_cancel, QtCore.SIGNAL(_fromUtf8("rejected()")), dlg_quicksearch_new.reject)
self.btn_save_cancel.accepted.connect(dlg_quicksearch_new.accept)
self.btn_save_cancel.rejected.connect(dlg_quicksearch_new.reject)
QtCore.QMetaObject.connectSlotsByName(dlg_quicksearch_new)

def retranslateUi(self, dlg_quicksearch_new):
dlg_quicksearch_new.setWindowTitle(_translate("dlg_quicksearch_new", "Isogeo - New quicksearch", None))
self.lbl_title.setText(_translate("dlg_quicksearch_new", "Quicksearch name:", None))
_translate = QtCore.QCoreApplication.translate
dlg_quicksearch_new.setWindowTitle(_translate("dlg_quicksearch_new", "Isogeo - New quicksearch"))
self.lbl_title.setText(_translate("dlg_quicksearch_new", "Quicksearch name:"))


if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
dlg_quicksearch_new = QtGui.QDialog()
app = QtWidgets.QApplication(sys.argv)
dlg_quicksearch_new = QtWidgets.QDialog()
ui = Ui_dlg_quicksearch_new()
ui.setupUi(dlg_quicksearch_new)
dlg_quicksearch_new.show()
Expand Down
54 changes: 20 additions & 34 deletions ui/quicksearch/ui_quicksearch_rename.py
Expand Up @@ -2,44 +2,29 @@

# Form implementation generated from reading ui file 'ui\quicksearch\ui_quicksearch_rename.ui'
#
# Created: Thu May 31 19:44:28 2018
# by: PyQt4 UI code generator 4.10.2
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s

try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig)
from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_dlg_quicksearch_rename(object):
def setupUi(self, dlg_quicksearch_rename):
dlg_quicksearch_rename.setObjectName(_fromUtf8("dlg_quicksearch_rename"))
dlg_quicksearch_rename.setObjectName("dlg_quicksearch_rename")
dlg_quicksearch_rename.resize(498, 100)
dlg_quicksearch_rename.setMinimumSize(QtCore.QSize(340, 100))
dlg_quicksearch_rename.setMaximumSize(QtCore.QSize(700, 116))
dlg_quicksearch_rename.setFocusPolicy(QtCore.Qt.StrongFocus)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/Isogeo/resources/search/bolt.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
icon.addPixmap(QtGui.QPixmap(":/plugins/Isogeo/resources/search/bolt.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
dlg_quicksearch_rename.setWindowIcon(icon)
dlg_quicksearch_rename.setWindowOpacity(0.9)
dlg_quicksearch_rename.setAutoFillBackground(True)
dlg_quicksearch_rename.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
dlg_quicksearch_rename.setModal(True)
self.gridLayout = QtGui.QGridLayout(dlg_quicksearch_rename)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.lbl_title = QtGui.QLabel(dlg_quicksearch_rename)
self.gridLayout = QtWidgets.QGridLayout(dlg_quicksearch_rename)
self.gridLayout.setObjectName("gridLayout")
self.lbl_title = QtWidgets.QLabel(dlg_quicksearch_rename)
font = QtGui.QFont()
font.setPointSize(8)
font.setBold(True)
Expand All @@ -48,33 +33,34 @@ def setupUi(self, dlg_quicksearch_rename):
self.lbl_title.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
self.lbl_title.setAutoFillBackground(True)
self.lbl_title.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
self.lbl_title.setObjectName(_fromUtf8("lbl_title"))
self.lbl_title.setObjectName("lbl_title")
self.gridLayout.addWidget(self.lbl_title, 0, 1, 1, 1)
self.txt_quicksearch_rename = QtGui.QLineEdit(dlg_quicksearch_rename)
self.txt_quicksearch_rename = QtWidgets.QLineEdit(dlg_quicksearch_rename)
self.txt_quicksearch_rename.setMinimumSize(QtCore.QSize(50, 25))
self.txt_quicksearch_rename.setObjectName(_fromUtf8("txt_quicksearch_rename"))
self.txt_quicksearch_rename.setObjectName("txt_quicksearch_rename")
self.gridLayout.addWidget(self.txt_quicksearch_rename, 0, 2, 1, 1)
self.btn_save_cancel = QtGui.QDialogButtonBox(dlg_quicksearch_rename)
self.btn_save_cancel = QtWidgets.QDialogButtonBox(dlg_quicksearch_rename)
self.btn_save_cancel.setOrientation(QtCore.Qt.Horizontal)
self.btn_save_cancel.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Save)
self.btn_save_cancel.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Save)
self.btn_save_cancel.setCenterButtons(True)
self.btn_save_cancel.setObjectName(_fromUtf8("btn_save_cancel"))
self.btn_save_cancel.setObjectName("btn_save_cancel")
self.gridLayout.addWidget(self.btn_save_cancel, 2, 0, 1, 3)

self.retranslateUi(dlg_quicksearch_rename)
QtCore.QObject.connect(self.btn_save_cancel, QtCore.SIGNAL(_fromUtf8("accepted()")), dlg_quicksearch_rename.accept)
QtCore.QObject.connect(self.btn_save_cancel, QtCore.SIGNAL(_fromUtf8("rejected()")), dlg_quicksearch_rename.reject)
self.btn_save_cancel.accepted.connect(dlg_quicksearch_rename.accept)
self.btn_save_cancel.rejected.connect(dlg_quicksearch_rename.reject)
QtCore.QMetaObject.connectSlotsByName(dlg_quicksearch_rename)

def retranslateUi(self, dlg_quicksearch_rename):
dlg_quicksearch_rename.setWindowTitle(_translate("dlg_quicksearch_rename", "Isogeo - Rename quicksearch", None))
self.lbl_title.setText(_translate("dlg_quicksearch_rename", "Quicksearch new name:", None))
_translate = QtCore.QCoreApplication.translate
dlg_quicksearch_rename.setWindowTitle(_translate("dlg_quicksearch_rename", "Isogeo - Rename quicksearch"))
self.lbl_title.setText(_translate("dlg_quicksearch_rename", "Quicksearch new name:"))


if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
dlg_quicksearch_rename = QtGui.QDialog()
app = QtWidgets.QApplication(sys.argv)
dlg_quicksearch_rename = QtWidgets.QDialog()
ui = Ui_dlg_quicksearch_rename()
ui.setupUi(dlg_quicksearch_rename)
dlg_quicksearch_rename.show()
Expand Down

0 comments on commit 140de57

Please sign in to comment.