Mercurial > hg > Feedworm
changeset 253:8b1678851b54
merge the pyqt5 branch into the default branch
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 10 Nov 2017 01:45:36 +0100 |
parents | f715378371ab (current diff) 39080a271bf3 (diff) |
children | b4c83e9b9c7a |
files | |
diffstat | 8 files changed, 35 insertions(+), 31 deletions(-) [+] |
line wrap: on
line diff
--- a/AddFeed.py Sat Oct 21 10:31:02 2017 +0200 +++ b/AddFeed.py Fri Nov 10 01:45:36 2017 +0100 @@ -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 Fri Nov 10 01:45:36 2017 +0100 @@ -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 Fri Nov 10 01:45:36 2017 +0100 @@ -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 Fri Nov 10 01:45:36 2017 +0100 @@ -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 Fri Nov 10 01:45:36 2017 +0100 @@ -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 Fri Nov 10 01:45:36 2017 +0100 @@ -1,17 +1,18 @@ -# find all .ui files and generate corresponding filenames ending in .py -PY_FILES = $(patsubst %.ui, %.py, $(wildcard *.ui)) +UI_FILES = $(wildcard *.ui) +UI_PY_FILES = $(UI_FILES:%.ui=Ui_%.py) RC_FILES = $(patsubst %.qrc, %_rc.py, $(wildcard *.qrc)) -all: $(PY_FILES) $(RC_FILES) +all: $(UI_PY_FILES) $(RC_FILES) -%.py: %.ui - pyuic4 -o Ui_$@ $< +Ui_%.py: %.ui + pyuic5 -o $@ $< %_rc.py: %.qrc - pyrcc4 -o $@ $< + pyrcc5 -o $@ $< .PHONY: clean clean: - rm $(PY_FILES) + rm $(UI_PY_FILES) + rm $(RC_FILES) rm *.pyc
--- a/PreferencesDialog.py Sat Oct 21 10:31:02 2017 +0200 +++ b/PreferencesDialog.py Fri Nov 10 01:45:36 2017 +0100 @@ -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 Fri Nov 10 01:45:36 2017 +0100 @@ -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()