17 import sys |
17 import sys |
18 import logging |
18 import logging |
19 |
19 |
20 from PyQt5.QtCore import pyqtSlot, QTimer, QFile, QFileInfo, pyqtSignal, \ |
20 from PyQt5.QtCore import pyqtSlot, QTimer, QFile, QFileInfo, pyqtSignal, \ |
21 PYQT_VERSION_STR, QDate, QIODevice, qVersion, QProcess, QSize, QUrl, \ |
21 PYQT_VERSION_STR, QDate, QIODevice, qVersion, QProcess, QSize, QUrl, \ |
22 QObject, Qt |
22 QUrlQuery, QObject, Qt |
23 from PyQt5.QtGui import QKeySequence, QDesktopServices |
23 from PyQt5.QtGui import QKeySequence, QDesktopServices |
24 from PyQt5.QtWidgets import QSizePolicy, QWidget, QWhatsThis, QToolBar, \ |
24 from PyQt5.QtWidgets import QSizePolicy, QWidget, QWhatsThis, QToolBar, \ |
25 QDialog, QSplitter, QApplication, QMenu, QVBoxLayout, QDockWidget, \ |
25 QDialog, QSplitter, QApplication, QMenu, QVBoxLayout, QDockWidget, \ |
26 QAction, QLabel |
26 QAction, QLabel |
27 from PyQt5.Qsci import QSCINTILLA_VERSION_STR |
27 from PyQt5.Qsci import QSCINTILLA_VERSION_STR |
3031 Utilities.generateVersionInfo("\r\n"), |
3031 Utilities.generateVersionInfo("\r\n"), |
3032 Utilities.generatePluginsVersionInfo("\r\n"), |
3032 Utilities.generatePluginsVersionInfo("\r\n"), |
3033 Utilities.generateDistroInfo("\r\n")) |
3033 Utilities.generateDistroInfo("\r\n")) |
3034 |
3034 |
3035 url = QUrl("mailto:{0}".format(address)) |
3035 url = QUrl("mailto:{0}".format(address)) |
3036 url.addQueryItem("subject", subject) |
3036 urlQuery = QUrlQuery() |
3037 url.addQueryItem("body", body) |
3037 urlQuery.addQueryItem("subject", subject) |
|
3038 urlQuery.addQueryItem("body", body) |
|
3039 url.setQuery(urlQuery) |
3038 QDesktopServices.openUrl(url) |
3040 QDesktopServices.openUrl(url) |
3039 |
3041 |
3040 def checkForErrorLog(self): |
3042 def checkForErrorLog(self): |
3041 """ |
3043 """ |
3042 Public method to check for the presence of an error log and ask the |
3044 Public method to check for the presence of an error log and ask the |