Mercurial > hg > Feedworm
changeset 251:3ce39af93e77 pyqt5
Update to PyQt5
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sun, 22 Oct 2017 03:40:44 +0200 |
parents | f715378371ab |
children | 39080a271bf3 |
files | AddFeed.py FeedEntryItemDelegate.py FeedSettings.py MainWindow.py MainWindow.ui Makefile PreferencesDialog.py feedworm.py |
diffstat | 8 files changed, 30 insertions(+), 27 deletions(-) [+] |
line wrap: on
line diff
--- a/AddFeed.py Sat Oct 21 10:31:02 2017 +0200 +++ b/AddFeed.py Sun Oct 22 03:40:44 2017 +0200 @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from PyQt4.QtGui import QDialog +from PyQt5.QtWidgets import QDialog from Ui_AddFeed import Ui_AddFeed import logging
--- a/FeedEntryItemDelegate.py Sat Oct 21 10:31:02 2017 +0200 +++ b/FeedEntryItemDelegate.py Sun Oct 22 03:40:44 2017 +0200 @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- -from PyQt4.QtGui import QFont, QStyledItemDelegate +from PyQt5.QtGui import QFont +from PyQt5.QtWidgets import QStyledItemDelegate class FeedEntryItemDelegate(QStyledItemDelegate): def __init__(self):
--- a/FeedSettings.py Sat Oct 21 10:31:02 2017 +0200 +++ b/FeedSettings.py Sun Oct 22 03:40:44 2017 +0200 @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from PyQt4.QtGui import QDialog +from PyQt5.QtWidgets import QDialog from Ui_FeedSettings import Ui_FeedSettings """
--- a/MainWindow.py Sat Oct 21 10:31:02 2017 +0200 +++ b/MainWindow.py Sun Oct 22 03:40:44 2017 +0200 @@ -5,8 +5,9 @@ from FeedEntryItemDelegate import FeedEntryItemDelegate from FeedSettings import FeedSettings from PreferencesDialog import PreferencesDialog -from PyQt4.QtCore import QUrl -from PyQt4.QtGui import QApplication, QDesktopServices, QMainWindow, QWidget +from PyQt5.QtCore import QUrl +from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget +from PyQt5.QtGui import QDesktopServices from Ui_MainWindow import Ui_MainWindow STATUS_MESSAGE_DISPLAY_MILLIS = 20000
--- a/MainWindow.ui Sat Oct 21 10:31:02 2017 +0200 +++ b/MainWindow.ui Sun Oct 22 03:40:44 2017 +0200 @@ -116,7 +116,7 @@ <x>0</x> <y>0</y> <width>992</width> - <height>23</height> + <height>25</height> </rect> </property> <widget class="QMenu" name="menuFeed"> @@ -360,7 +360,7 @@ <connections> <connection> <sender>actionQuit</sender> - <signal>activated()</signal> + <signal>triggered()</signal> <receiver>MainWindow</receiver> <slot>close()</slot> <hints> @@ -376,7 +376,7 @@ </connection> <connection> <sender>actionAddFeed</sender> - <signal>activated()</signal> + <signal>triggered()</signal> <receiver>MainWindow</receiver> <slot>addFeed()</slot> <hints> @@ -424,7 +424,7 @@ </connection> <connection> <sender>actionMarkSelectedRead</sender> - <signal>activated()</signal> + <signal>triggered()</signal> <receiver>MainWindow</receiver> <slot>toggleReadOnSelectedEntry()</slot> <hints> @@ -440,7 +440,7 @@ </connection> <connection> <sender>actionOpenLink</sender> - <signal>activated()</signal> + <signal>triggered()</signal> <receiver>MainWindow</receiver> <slot>openLinkFromSelectedEntry()</slot> <hints> @@ -456,7 +456,7 @@ </connection> <connection> <sender>actionOpenInBrowser</sender> - <signal>activated()</signal> + <signal>triggered()</signal> <receiver>MainWindow</receiver> <slot>openSelectedEntryInBrowser()</slot> <hints> @@ -472,7 +472,7 @@ </connection> <connection> <sender>actionPreferences</sender> - <signal>activated()</signal> + <signal>triggered()</signal> <receiver>MainWindow</receiver> <slot>showPreferences()</slot> <hints> @@ -488,7 +488,7 @@ </connection> <connection> <sender>actionFeedSettings</sender> - <signal>activated()</signal> + <signal>triggered()</signal> <receiver>MainWindow</receiver> <slot>showFeedSettings()</slot> <hints> @@ -504,7 +504,7 @@ </connection> <connection> <sender>actionMarkFeedRead</sender> - <signal>activated()</signal> + <signal>triggered()</signal> <receiver>MainWindow</receiver> <slot>markSelectedFeedRead()</slot> <hints> @@ -520,7 +520,7 @@ </connection> <connection> <sender>actionDeleteFeed</sender> - <signal>activated()</signal> + <signal>triggered()</signal> <receiver>MainWindow</receiver> <slot>deleteFeed()</slot> <hints> @@ -552,7 +552,7 @@ </connection> <connection> <sender>actionMarkSelectedEntriesRead</sender> - <signal>activated()</signal> + <signal>triggered()</signal> <receiver>MainWindow</receiver> <slot>markSelectedEntriesRead()</slot> <hints> @@ -568,7 +568,7 @@ </connection> <connection> <sender>actionCopyArticleURL</sender> - <signal>activated()</signal> + <signal>triggered()</signal> <receiver>MainWindow</receiver> <slot>copyArticleURLToClipboard()</slot> <hints> @@ -584,7 +584,7 @@ </connection> <connection> <sender>actionZoomIn</sender> - <signal>activated()</signal> + <signal>triggered()</signal> <receiver>MainWindow</receiver> <slot>zoomIn()</slot> <hints> @@ -600,7 +600,7 @@ </connection> <connection> <sender>actionZoomOut</sender> - <signal>activated()</signal> + <signal>triggered()</signal> <receiver>MainWindow</receiver> <slot>zoomOut()</slot> <hints> @@ -616,7 +616,7 @@ </connection> <connection> <sender>actionAboutQt</sender> - <signal>activated()</signal> + <signal>triggered()</signal> <receiver>MainWindow</receiver> <slot>aboutQtClicked()</slot> <hints>
--- a/Makefile Sat Oct 21 10:31:02 2017 +0200 +++ b/Makefile Sun Oct 22 03:40:44 2017 +0200 @@ -6,12 +6,12 @@ all: $(PY_FILES) $(RC_FILES) %.py: %.ui - pyuic4 -o Ui_$@ $< + pyuic5 -o Ui_$@ $< %_rc.py: %.qrc - pyrcc4 -o $@ $< + pyrcc5 -o $@ $< .PHONY: clean clean: - rm $(PY_FILES) + #rm $(PY_FILES) rm *.pyc
--- a/PreferencesDialog.py Sat Oct 21 10:31:02 2017 +0200 +++ b/PreferencesDialog.py Sun Oct 22 03:40:44 2017 +0200 @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from PyQt4.QtGui import QDialog +from PyQt5.QtWidgets import QDialog from Ui_Preferences import Ui_Preferences class PreferencesDialog(QDialog):
--- a/feedworm.py Sat Oct 21 10:31:02 2017 +0200 +++ b/feedworm.py Sun Oct 22 03:40:44 2017 +0200 @@ -6,8 +6,9 @@ sip.setapi('QVariant', 2) from MainWindow import MainWindow -from PyQt4 import QtGui -from PyQt4.QtNetwork import QNetworkProxy +from PyQt5 import QtGui +from PyQt5.QtWidgets import QApplication +from PyQt5.QtNetwork import QNetworkProxy import BackendFactory import logging import sys @@ -35,7 +36,7 @@ preferences = backend.preferences() setupProxy(preferences) - app = QtGui.QApplication(sys.argv) + app = QApplication(sys.argv) mainWindow = MainWindow(backend) maximized = preferences.startMaximized()