Advertisement
Guest User

fbreader qt5

a guest
Mar 29th, 2016
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 4.25 KB | None | 0 0
  1. --- fbreader.old/makefiles/arch/desktop.mk      2016-03-13 12:36:50.000000000 -0300
  2. +++ fbreader/makefiles/arch/desktop.mk  2016-03-13 12:51:42.214754948 -0300
  3. @@ -16,27 +16,9 @@ CFLAGS = -pipe -fno-exceptions -Wall -Wn
  4.  LDFLAGS =
  5.  EXTERNAL_INCLUDE = $(shell pkg-config --cflags fribidi)
  6.  
  7. -ifeq "$(UI_TYPE)" "qt"                                                              
  8. -  MOC = moc-qt3                                                                    
  9. -  QTINCLUDE = -I /usr/include/qt3                                                  
  10. -else                                                                                
  11. -  MOC = $(shell pkg-config QtCore --variable=moc_location)
  12. -  QTINCLUDE = -I $(shell pkg-config --cflags QtCore)
  13. -endif
  14. -
  15. -GTKINCLUDE = $(shell pkg-config --cflags gtk+-2.0 libpng xft)
  16. -
  17. -ifeq "$(UI_TYPE)" "qt"
  18. -  UILIBS = -lqt-mt
  19. -endif
  20. -
  21. -ifeq "$(UI_TYPE)" "qt4"
  22. -  UILIBS = $(shell pkg-config --libs QtCore QtGui QtNetwork)
  23. -endif
  24. -
  25. -ifeq "$(UI_TYPE)" "gtk"
  26. -  UILIBS = $(shell pkg-config --libs gtk+-2.0 gio-2.0) -lpng -ljpeg
  27. -endif
  28. +MOC = moc
  29. +QTINCLUDE = $(shell pkg-config --cflags Qt5Gui Qt5Widgets Qt5Network)
  30. +UILIBS = $(shell pkg-config --libs Qt5Gui Qt5Widgets Qt5Network)
  31.  
  32.  RM = rm -rvf
  33.  RM_QUIET = rm -rf
  34.  
  35. --- fbreader.old/zlibrary/ui/src/qt4/network/ZLQtNetworkManager.cpp     2016-03-13 13:55:38.000000000 -0300
  36. +++ fbreader/zlibrary/ui/src/qt4/network/ZLQtNetworkManager.cpp 2016-03-13 14:11:49.233297356 -0300
  37. @@ -24,7 +24,9 @@
  38.  #include <QtCore/QDir>
  39.  #include <QtCore/QList>
  40.  #include <QtCore/QTimer>
  41. +#include <QtCore/QUrlQuery>
  42.  
  43. +#include <QtNetwork/QNetworkCookie>
  44.  #include <QtNetwork/QNetworkRequest>
  45.  #include <QtNetwork/QNetworkReply>
  46.  #include <QtNetwork/QNetworkProxy>
  47. @@ -150,12 +152,12 @@ void ZLQtNetworkManager::prepareReply(ZL
  48.         QNetworkReply *reply = NULL;
  49.         if (!scope.request->postParameters().empty()) {
  50.                 QByteArray data;
  51. -               QUrl tmp;
  52. +               QUrlQuery tmp;
  53.                 typedef std::pair<std::string, std::string> string_pair;
  54.                 foreach (const string_pair &pair, scope.request->postParameters()) {
  55.                         tmp.addQueryItem(::qtString(pair.first), ::qtString(pair.second));
  56.                 }
  57. -               data = tmp.encodedQuery();
  58. +               data = tmp.query(QUrl::FullyEncoded).toUtf8(); //encodedQuery();
  59.                 reply = const_cast<QNetworkAccessManager&>(myManager).post(networkRequest, data);
  60.         } else {
  61.                 reply = const_cast<QNetworkAccessManager&>(myManager).get(networkRequest);
  62. --- fbreader.old/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.cpp 2016-03-13 14:14:03.000000000 -0300
  63. +++ fbreader/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.cpp     2016-03-13 14:16:09.394213011 -0300
  64. @@ -17,10 +17,10 @@
  65.   * 02110-1301, USA.
  66.   */
  67.  
  68. -#include <QtGui/QVBoxLayout>
  69. -#include <QtGui/QHBoxLayout>
  70. -#include <QtGui/QScrollBar>
  71. -#include <QtGui/QGraphicsDropShadowEffect>
  72. +#include <QtWidgets/QVBoxLayout>
  73. +#include <QtWidgets/QHBoxLayout>
  74. +#include <QtWidgets/QScrollBar>
  75. +#include <QtWidgets/QGraphicsDropShadowEffect>
  76.  
  77.  #include <QtCore/QDebug>
  78.  
  79. --- fbreader.old/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.cpp       2016-03-13 14:18:15.450502907 -0300
  80. +++ fbreader/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.cpp   2016-03-13 14:22:01.264029439 -0300
  81. @@ -17,13 +17,13 @@
  82.   * 02110-1301, USA.
  83.   */
  84.  
  85. -#include <QtGui/QVBoxLayout>
  86. -#include <QtGui/QHBoxLayout>
  87.  #include <QtGui/QPixmap>
  88.  #include <QtGui/QPalette>
  89.  #include <QtGui/QPainter>
  90.  #include <QtGui/QPaintEvent>
  91. -#include <QtGui/QScrollBar>
  92. +#include <QtWidgets/QVBoxLayout>
  93. +#include <QtWidgets/QHBoxLayout>
  94. +#include <QtWidgets/QScrollBar>
  95.  
  96.  #include <ZLibrary.h>
  97.  #include <ZLNetworkManager.h>
  98. --- fbreader.old/zlibrary/ui/src/qt4/tree/ZLQtSearchField.cpp   2016-03-13 14:18:02.410523226 -0300
  99. +++ fbreader/zlibrary/ui/src/qt4/tree/ZLQtSearchField.cpp       2016-03-13 14:20:47.667198290 -0300
  100. @@ -18,9 +18,9 @@
  101.   */
  102.  
  103.  #include <QtCore/QDebug>
  104. -#include <QtGui/QStyle>
  105. -#include <QtGui/QCompleter>
  106. -#include <QtGui/QStringListModel>
  107. +#include <QtCore/QStringListModel>
  108. +#include <QtWidgets/QStyle>
  109. +#include <QtWidgets/QCompleter>
  110.  
  111.  #include <ZLResource.h>
  112.  #include <ZLOptions.h>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement