123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511 |
- diff -r -U2 fbreader-0.99.4.orig/fbreader/Makefile fbreader-0.99.4/fbreader/Makefile
- --- fbreader-0.99.4.orig/fbreader/Makefile 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/fbreader/Makefile 2018-01-11 22:18:18.000208200 +0700
- @@ -23,5 +23,5 @@
- done;
- @echo -n 'Linking $(TARGET) ...'
- - @$(LD) $(LDFLAGS) -o $(TARGET) `find src -name *.o` $(TEXT_LIBS) $(CORE_LIBS) $(ZLUI_LIB) -lsqlite3
- + @$(LD) -fuse-ld=bfd $(LDFLAGS) -o $(TARGET) `find src -name *.o` $(TEXT_LIBS) $(CORE_LIBS) $(ZLUI_LIB) -lsqlite3
- @echo ' OK'
-
- diff -r -U2 fbreader-0.99.4.orig/makefiles/arch/desktop.mk fbreader-0.99.4/makefiles/arch/desktop.mk
- --- fbreader-0.99.4.orig/makefiles/arch/desktop.mk 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/makefiles/arch/desktop.mk 2018-01-11 22:18:40.119207269 +0700
- @@ -15,27 +15,9 @@
- CFLAGS = -pipe -fno-exceptions -Wall -Wno-ctor-dtor-privacy -W -DLIBICONV_PLUG
- LDFLAGS =
- -EXTERNAL_INCLUDE = $(shell pkg-config --cflags fribidi)
- +EXTERNAL_INCLUDE = $(shell pkg-config --cflags fribidi)
-
- -ifeq "$(UI_TYPE)" "qt"
- - MOC = moc-qt3
- - QTINCLUDE = -I /usr/include/qt3
- -else
- - MOC = $(shell pkg-config QtCore --variable=moc_location)
- - QTINCLUDE = -I $(shell pkg-config --cflags QtCore)
- -endif
- -
- -GTKINCLUDE = $(shell pkg-config --cflags gtk+-2.0 libpng xft)
- -
- -ifeq "$(UI_TYPE)" "qt"
- - UILIBS = -lqt-mt
- -endif
- -
- -ifeq "$(UI_TYPE)" "qt4"
- - UILIBS = $(shell pkg-config --libs QtCore QtGui QtNetwork)
- -endif
- -
- -ifeq "$(UI_TYPE)" "gtk"
- - UILIBS = $(shell pkg-config --libs gtk+-2.0 gio-2.0) -lpng -ljpeg
- -endif
- +MOC = "$(shell pkg-config --variable=host_bins Qt5Core)/moc"
- +QTINCLUDE = $(shell pkg-config --cflags Qt5Gui Qt5Widgets Qt5Network)
- +UILIBS = $(shell pkg-config --libs Qt5Gui Qt5Widgets Qt5Network)
-
- RM = rm -rvf
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/application/LineEditParameter.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/application/LineEditParameter.cpp
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/application/LineEditParameter.cpp 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/application/LineEditParameter.cpp 2018-01-11 22:18:40.120207269 +0700
- @@ -18,7 +18,7 @@
- */
-
- -#include <QtGui/QBoxLayout>
- -#include <QtGui/QLineEdit>
- -#include <QtGui/QToolBar>
- +#include <QtWidgets/QBoxLayout>
- +#include <QtWidgets/QLineEdit>
- +#include <QtWidgets/QToolBar>
- #include <QtGui/QKeyEvent>
-
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/application/ZLQtApplicationWindow.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/application/ZLQtApplicationWindow.cpp
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/application/ZLQtApplicationWindow.cpp 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/application/ZLQtApplicationWindow.cpp 2018-01-11 22:18:40.120207269 +0700
- @@ -18,15 +18,15 @@
- */
-
- -#include <QtGui/QApplication>
- +#include <QtWidgets/QApplication>
- #include <QtGui/QPixmap>
- #include <QtGui/QImage>
- #include <QtGui/QIcon>
- -#include <QtGui/QToolBar>
- -#include <QtGui/QMenuBar>
- -#include <QtGui/QMenu>
- -#include <QtGui/QToolButton>
- -#include <QtGui/QLayout>
- +#include <QtWidgets/QToolBar>
- +#include <QtWidgets/QMenuBar>
- +#include <QtWidgets/QMenu>
- +#include <QtWidgets/QToolButton>
- +#include <QtWidgets/QLayout>
- #include <QtGui/QWheelEvent>
- -#include <QtGui/QDockWidget>
- +#include <QtWidgets/QDockWidget>
- #include <QtCore/QObjectList>
-
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/application/ZLQtApplicationWindow.h fbreader-0.99.4/zlibrary/ui/src/qt4/application/ZLQtApplicationWindow.h
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/application/ZLQtApplicationWindow.h 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/application/ZLQtApplicationWindow.h 2018-01-11 22:18:40.120207269 +0700
- @@ -23,6 +23,6 @@
- #include <map>
-
- -#include <QtGui/QMainWindow>
- -#include <QtGui/QAction>
- +#include <QtWidgets/QMainWindow>
- +#include <QtWidgets/QAction>
- #include <QtGui/QCursor>
-
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtDialog.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtDialog.cpp
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtDialog.cpp 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtDialog.cpp 2018-01-11 22:18:40.120207269 +0700
- @@ -18,6 +18,6 @@
- */
-
- -#include <QtGui/QApplication>
- -#include <QtGui/QPushButton>
- +#include <QtWidgets/QApplication>
- +#include <QtWidgets/QPushButton>
-
- #include <ZLDialogManager.h>
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtDialog.h fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtDialog.h
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtDialog.h 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtDialog.h 2018-01-11 22:18:40.120207269 +0700
- @@ -21,6 +21,6 @@
- #define __ZLQTDIALOG_H__
-
- -#include <QtGui/QDialog>
- -#include <QtGui/QLayout>
- +#include <QtWidgets/QDialog>
- +#include <QtWidgets/QLayout>
-
- #include <ZLDialog.h>
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtDialogContent.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtDialogContent.cpp
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtDialogContent.cpp 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtDialogContent.cpp 2018-01-11 22:18:40.120207269 +0700
- @@ -18,8 +18,8 @@
- */
-
- -#include <QtGui/QApplication>
- -#include <QtGui/QDesktopWidget>
- -#include <QtGui/QWidget>
- -#include <QtGui/QLayout>
- +#include <QtWidgets/QApplication>
- +#include <QtWidgets/QDesktopWidget>
- +#include <QtWidgets/QWidget>
- +#include <QtWidgets/QLayout>
-
- #include "ZLQtDialogContent.h"
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtDialogManager.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtDialogManager.cpp
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtDialogManager.cpp 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtDialogManager.cpp 2018-01-11 22:18:40.120207269 +0700
- @@ -18,9 +18,9 @@
- */
-
- -#include <QtGui/QApplication>
- -#include <QtGui/QMessageBox>
- -#include <QtGui/QFileDialog>
- +#include <QtWidgets/QApplication>
- +#include <QtWidgets/QMessageBox>
- +#include <QtWidgets/QFileDialog>
- #include <QtGui/QClipboard>
- -#include <QtGui/QDesktopWidget>
- +#include <QtWidgets/QDesktopWidget>
-
- #include "ZLQtDialogManager.h"
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtOpenFileDialog.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtOpenFileDialog.cpp
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtOpenFileDialog.cpp 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtOpenFileDialog.cpp 2018-01-11 22:18:40.120207269 +0700
- @@ -18,5 +18,5 @@
- */
-
- -#include <QtGui/QFileDialog>
- +#include <QtWidgets/QFileDialog>
-
- #include "ZLQtOpenFileDialog.h"
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtOptionView.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtOptionView.cpp
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtOptionView.cpp 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtOptionView.cpp 2018-01-11 22:18:40.121207269 +0700
- @@ -20,14 +20,14 @@
- #include <cctype>
-
- -#include <QtGui/QCheckBox>
- -#include <QtGui/QComboBox>
- -#include <QtGui/QLabel>
- -#include <QtGui/QGroupBox>
- -#include <QtGui/QRadioButton>
- -#include <QtGui/QPushButton>
- -#include <QtGui/QSpinBox>
- -#include <QtGui/QLineEdit>
- -#include <QtGui/QSlider>
- -#include <QtGui/QLayout>
- +#include <QtWidgets/QCheckBox>
- +#include <QtWidgets/QComboBox>
- +#include <QtWidgets/QLabel>
- +#include <QtWidgets/QGroupBox>
- +#include <QtWidgets/QRadioButton>
- +#include <QtWidgets/QPushButton>
- +#include <QtWidgets/QSpinBox>
- +#include <QtWidgets/QLineEdit>
- +#include <QtWidgets/QSlider>
- +#include <QtWidgets/QLayout>
-
- #include <ZLStringUtil.h>
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtOptionsDialog.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtOptionsDialog.cpp
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtOptionsDialog.cpp 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtOptionsDialog.cpp 2018-01-11 22:18:40.121207269 +0700
- @@ -18,9 +18,9 @@
- */
-
- -#include <QtGui/QApplication>
- -#include <QtGui/QDesktopWidget>
- -#include <QtGui/QLayout>
- -#include <QtGui/QPushButton>
- -#include <QtGui/QButtonGroup>
- +#include <QtWidgets/QApplication>
- +#include <QtWidgets/QDesktopWidget>
- +#include <QtWidgets/QLayout>
- +#include <QtWidgets/QPushButton>
- +#include <QtWidgets/QButtonGroup>
- #include <QtGui/QResizeEvent>
-
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtOptionsDialog.h fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtOptionsDialog.h
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtOptionsDialog.h 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtOptionsDialog.h 2018-01-11 22:18:40.121207269 +0700
- @@ -21,7 +21,7 @@
- #define __ZLQTOPTIONSDIALOG_H__
-
- -#include <QtGui/QWidget>
- -#include <QtGui/QTabWidget>
- -#include <QtGui/QDialog>
- +#include <QtWidgets/QWidget>
- +#include <QtWidgets/QTabWidget>
- +#include <QtWidgets/QDialog>
-
- #include "../../../../core/src/desktop/dialogs/ZLDesktopOptionsDialog.h"
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtProgressDialog.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtProgressDialog.cpp
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtProgressDialog.cpp 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtProgressDialog.cpp 2018-01-11 22:18:40.121207269 +0700
- @@ -20,9 +20,9 @@
- #include <unistd.h>
-
- -#include <QtGui/QApplication>
- -#include <QtGui/QDesktopWidget>
- -#include <QtGui/QWidget>
- -#include <QtGui/QLabel>
- -#include <QtGui/QLayout>
- +#include <QtWidgets/QApplication>
- +#include <QtWidgets/QDesktopWidget>
- +#include <QtWidgets/QWidget>
- +#include <QtWidgets/QLabel>
- +#include <QtWidgets/QLayout>
- #include <QtCore/QThreadPool>
-
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtProgressDialog.h fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtProgressDialog.h
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtProgressDialog.h 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtProgressDialog.h 2018-01-11 22:18:40.121207269 +0700
- @@ -23,9 +23,9 @@
- #include <string>
-
- -#include <QtGui/QWidget>
- +#include <QtWidgets/QWidget>
- #include <QtGui/QCursor>
- -#include <QtGui/QDialog>
- -#include <QtGui/QProgressBar>
- -#include <QtGui/QLabel>
- +#include <QtWidgets/QDialog>
- +#include <QtWidgets/QProgressBar>
- +#include <QtWidgets/QLabel>
- #include <QtCore/QRunnable>
-
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtTreeDialog.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtTreeDialog.cpp
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtTreeDialog.cpp 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtTreeDialog.cpp 2018-01-11 22:18:40.120207269 +0700
- @@ -20,10 +20,10 @@
- #include <algorithm>
-
- -#include <QtGui/QSplitter>
- -#include <QtGui/QVBoxLayout>
- -#include <QtGui/QHBoxLayout>
- -#include <QtGui/QScrollBar>
- #include <QtGui/QResizeEvent>
- #include <QtCore/QDebug>
- +#include <QtWidgets/QSplitter>
- +#include <QtWidgets/QVBoxLayout>
- +#include <QtWidgets/QHBoxLayout>
- +#include <QtWidgets/QScrollBar>
-
- #include <ZLFile.h>
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtTreeDialog.h fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtTreeDialog.h
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/dialogs/ZLQtTreeDialog.h 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/dialogs/ZLQtTreeDialog.h 2018-01-11 22:18:40.121207269 +0700
- @@ -25,10 +25,10 @@
- #include <QtCore/QMap>
-
- -#include <QtGui/QDialog>
- -#include <QtGui/QScrollArea>
- -#include <QtGui/QPushButton>
- -#include <QtGui/QLabel>
- -#include <QtGui/QLineEdit>
- -#include <QtGui/QWidget>
- +#include <QtWidgets/QDialog>
- +#include <QtWidgets/QScrollArea>
- +#include <QtWidgets/QPushButton>
- +#include <QtWidgets/QLabel>
- +#include <QtWidgets/QLineEdit>
- +#include <QtWidgets/QWidget>
-
- #include <ZLTreeDialog.h>
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/library/ZLQApplication.h fbreader-0.99.4/zlibrary/ui/src/qt4/library/ZLQApplication.h
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/library/ZLQApplication.h 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/library/ZLQApplication.h 2018-01-11 22:18:40.121207269 +0700
- @@ -21,5 +21,5 @@
- #define __ZLQAPPLICATION_H__
-
- -#include <QtGui/QApplication>
- +#include <QtWidgets/QApplication>
-
- class ZLQApplication : public QApplication {
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/library/ZLibrary.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/library/ZLibrary.cpp
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/library/ZLibrary.cpp 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/library/ZLibrary.cpp 2018-01-11 22:18:40.121207269 +0700
- @@ -20,5 +20,5 @@
- #include <QtCore/QTextCodec>
- #include <QtCore/QFile>
- -#include <QtGui/QApplication>
- +#include <QtWidgets/QApplication>
- #include <QtGui/QFileOpenEvent>
-
- @@ -73,5 +73,5 @@
- new ZLQApplication(argc, argv);
-
- - QTextCodec::setCodecForCStrings(QTextCodec::codecForName("utf-8"));
- + QTextCodec::setCodecForLocale(QTextCodec::codecForName("utf-8"));
-
- ZLibrary::parseArguments(argc, argv);
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/network/ZLQtNetworkManager.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/network/ZLQtNetworkManager.cpp
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/network/ZLQtNetworkManager.cpp 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/network/ZLQtNetworkManager.cpp 2018-01-11 22:18:40.120207269 +0700
- @@ -25,5 +25,7 @@
- #include <QtCore/QList>
- #include <QtCore/QTimer>
- +#include <QtCore/QUrlQuery>
-
- +#include <QtNetwork/QNetworkCookie>
- #include <QtNetwork/QNetworkRequest>
- #include <QtNetwork/QNetworkReply>
- @@ -150,10 +152,10 @@
- if (!scope.request->postParameters().empty()) {
- QByteArray data;
- - QUrl tmp;
- + QUrlQuery tmp;
- typedef std::pair<std::string, std::string> string_pair;
- foreach (const string_pair &pair, scope.request->postParameters()) {
- tmp.addQueryItem(QString::fromStdString(pair.first), QString::fromStdString(pair.second));
- }
- - data = tmp.encodedQuery();
- + data = tmp.query(QUrl::FullyEncoded).toUtf8(); //encodedQuery();
- reply = const_cast<QNetworkAccessManager&>(myManager).post(networkRequest, data);
- } else {
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp 2018-01-11 22:13:39.639219906 +0700
- @@ -87,5 +87,5 @@
-
- void QtWaitingSpinner::setRoundness(qreal roundness) {
- - myRoundness = std::max(0.0, std::min(100.0, roundness));
- + myRoundness = std::max(static_cast<qreal>(0.0), std::min(static_cast<qreal>(100.0), roundness));
- }
-
- @@ -149,5 +149,5 @@
- qreal gradation = alphaDiff / (qreal)(distanceThreshold + 1);
- qreal resultAlpha = color.alphaF() - gradation * distance;
- - resultAlpha = std::min(1.0, std::max(0.0, resultAlpha)); //if alpha is out of bound, force it to bounds
- + resultAlpha = std::min(static_cast<qreal>(1.0), std::max(static_cast<qreal>(0.0), resultAlpha)); //if alpha is out of bound, force it to bounds
- color.setAlphaF(resultAlpha);
- return color;
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.h fbreader-0.99.4/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.h
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.h 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.h 2018-01-11 22:18:40.121207269 +0700
- @@ -4,5 +4,5 @@
- #include <QtCore/QTimer>
-
- -#include <QtGui/QWidget>
- +#include <QtWidgets/QWidget>
- #include <QtGui/QColor>
-
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.cpp
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.cpp 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.cpp 2018-01-11 22:18:40.120207269 +0700
- @@ -18,12 +18,12 @@
- */
-
- -#include <QtGui/QVBoxLayout>
- -#include <QtGui/QHBoxLayout>
- #include <QtGui/QPixmap>
- #include <QtGui/QPalette>
- #include <QtGui/QPainter>
- #include <QtGui/QPaintEvent>
- -#include <QtGui/QScrollBar>
- #include <QtCore/QTimer>
- +#include <QtWidgets/QVBoxLayout>
- +#include <QtWidgets/QHBoxLayout>
- +#include <QtWidgets/QScrollBar>
-
- #include <QtCore/QDebug>
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.h fbreader-0.99.4/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.h
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.h 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.h 2018-01-11 22:18:40.120207269 +0700
- @@ -21,10 +21,10 @@
- #define __ZLQTITEMSLISTWIDGET_H__
-
- -#include <QtGui/QWidget>
- -#include <QtGui/QFrame>
- -#include <QtGui/QPushButton>
- -#include <QtGui/QLabel>
- -#include <QtGui/QVBoxLayout>
- -#include <QtGui/QScrollArea>
- +#include <QtWidgets/QWidget>
- +#include <QtWidgets/QFrame>
- +#include <QtWidgets/QPushButton>
- +#include <QtWidgets/QLabel>
- +#include <QtWidgets/QVBoxLayout>
- +#include <QtWidgets/QScrollArea>
-
- #include <ZLTreeTitledNode.h>
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.cpp
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.cpp 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.cpp 2018-01-11 22:18:40.120207269 +0700
- @@ -18,8 +18,8 @@
- */
-
- -#include <QtGui/QVBoxLayout>
- -#include <QtGui/QHBoxLayout>
- -#include <QtGui/QScrollBar>
- -#include <QtGui/QGraphicsDropShadowEffect>
- +#include <QtWidgets/QVBoxLayout>
- +#include <QtWidgets/QHBoxLayout>
- +#include <QtWidgets/QScrollBar>
- +#include <QtWidgets/QGraphicsDropShadowEffect>
-
- #include <QtCore/QDebug>
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.h fbreader-0.99.4/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.h
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.h 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.h 2018-01-11 22:18:40.121207269 +0700
- @@ -21,9 +21,9 @@
- #define __ZLQTPREVIEWWIDGET_H__
-
- -#include <QtGui/QWidget>
- -#include <QtGui/QPushButton>
- -#include <QtGui/QLabel>
- -#include <QtGui/QScrollArea>
- -#include <QtGui/QVBoxLayout>
- +#include <QtWidgets/QWidget>
- +#include <QtWidgets/QPushButton>
- +#include <QtWidgets/QLabel>
- +#include <QtWidgets/QScrollArea>
- +#include <QtWidgets/QVBoxLayout>
- #include <QtCore/QSet>
-
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/ZLQtSearchField.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/tree/ZLQtSearchField.cpp
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/ZLQtSearchField.cpp 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/tree/ZLQtSearchField.cpp 2018-01-11 22:18:40.120207269 +0700
- @@ -19,7 +19,7 @@
-
- #include <QtCore/QDebug>
- -#include <QtGui/QStyle>
- -#include <QtGui/QCompleter>
- -#include <QtGui/QStringListModel>
- +#include <QtCore/QStringListModel>
- +#include <QtWidgets/QStyle>
- +#include <QtWidgets/QCompleter>
-
- #include <ZLibrary.h>
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/ZLQtSearchField.h fbreader-0.99.4/zlibrary/ui/src/qt4/tree/ZLQtSearchField.h
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/ZLQtSearchField.h 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/tree/ZLQtSearchField.h 2018-01-11 22:18:40.121207269 +0700
- @@ -22,6 +22,6 @@
-
- #include <QtCore/QSet>
- -#include <QtGui/QLabel>
- -#include <QtGui/QLineEdit>
- +#include <QtWidgets/QLabel>
- +#include <QtWidgets/QLineEdit>
-
- #include "QtWaitingSpinner.h"
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/view/ZLQtViewWidget.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/view/ZLQtViewWidget.cpp
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/view/ZLQtViewWidget.cpp 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/view/ZLQtViewWidget.cpp 2018-01-11 22:18:40.121207269 +0700
- @@ -20,6 +20,6 @@
- #include <algorithm>
-
- -#include <QtGui/QLayout>
- -#include <QtGui/QScrollBar>
- +#include <QtWidgets/QLayout>
- +#include <QtWidgets/QScrollBar>
- #include <QtGui/QPainter>
- #include <QtGui/QPixmap>
- @@ -186,9 +186,9 @@
- void ZLQtViewWidget::setScrollbarEnabled(ZLView::Direction direction, bool enabled) {
- if (direction == ZLView::VERTICAL) {
- - myRightScrollBar->setShown(enabled && myShowScrollBarAtRight);
- - myLeftScrollBar->setShown(enabled && !myShowScrollBarAtRight);
- + myRightScrollBar->setVisible(enabled && myShowScrollBarAtRight);
- + myLeftScrollBar->setVisible(enabled && !myShowScrollBarAtRight);
- } else {
- - myBottomScrollBar->setShown(enabled && myShowScrollBarAtBottom);
- - myTopScrollBar->setShown(enabled && !myShowScrollBarAtBottom);
- + myBottomScrollBar->setVisible(enabled && myShowScrollBarAtBottom);
- + myTopScrollBar->setVisible(enabled && !myShowScrollBarAtBottom);
- }
- }
- diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/view/ZLQtViewWidget.h fbreader-0.99.4/zlibrary/ui/src/qt4/view/ZLQtViewWidget.h
- --- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/view/ZLQtViewWidget.h 2012-11-30 19:41:25.000000000 +0700
- +++ fbreader-0.99.4/zlibrary/ui/src/qt4/view/ZLQtViewWidget.h 2018-01-11 22:18:40.121207269 +0700
- @@ -21,5 +21,5 @@
- #define __ZLQTVIEWWIDGET_H__
-
- -#include <QtGui/QWidget>
- +#include <QtWidgets/QWidget>
-
- #include "../../../../core/src/view/ZLViewWidget.h"
|