manox14 / arora

Automatically exported from code.google.com/p/arora
0 stars 0 forks source link

tabwidget.cpp cannot be built using QT from kde-qt #759

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Switched to kde-qt and compiled 4.6-stable-patched branch using latest 
kdesvn-build. Cannot build 
tabwidget.cpp in Arora as it complains that the class QWebHistory has no member 
named saveState and 
restoreState.

g++ -c -pipe -Wreturn-type -fno-strict-aliasing -O2 -D_REENTRANT 
-DQT_NO_CAST_FROM_ASCII -
DQT_NO_CAST_TO_ASCII -DQT_STRICT_ITERATORS -DQT_NO_UITOOLS 
-DGITVERSION="\"032b064\"" -
DGITCHANGENUMBER="\"1355\"" -DWEBKIT_TRUNK -DBUILDING_QT__=1 -DNDEBUG -
DDATADIR=\"/usr/local/share\" -DPKGDATADIR=\"/usr/local/share/arora\" 
-DQT_NO_DEBUG -DQT_SCRIPT_LIB -
DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED 
-I../../qt4/mkspecs/linux-g++ -I. -
I../../qt4/include/QtCore -I../../qt4/include/QtNetwork 
-I../../qt4/include/QtGui -I../../qt4/include/QtScript -
I../../qt4/include -I. -Iadblock -Ibookmarks -Ibookmarks/xbel -Ihistory 
-Ilocationbar -Inetwork -
Inetwork/cookiejar -Inetwork/cookiejar/networkcookiejar -Iopensearch 
-Iqwebplugins -
Iqwebplugins/clicktoflash -Iutils -I../../WebKit/WebKit/qt/Api -Ilocale -I.moc 
-I.ui -o .obj/tabwidget.o 
tabwidget.cpp
tabwidget.cpp: In member function ‘void TabWidget::closeTab(int)’:
tabwidget.cpp:621: error: ‘class QWebHistory’ has no member named 
‘saveState’
tabwidget.cpp: In static member function ‘static QUrl 
TabWidget::guessUrlFromString(const QString&)’:
tabwidget.cpp:862: error: ‘guessUrlFromString’ is not a member of 
‘WebView’
tabwidget.cpp: In member function ‘QByteArray TabWidget::saveState() const’:
tabwidget.cpp:1070: error: ‘class QWebHistory’ has no member named 
‘saveState’
tabwidget.cpp: In member function ‘void TabWidget::createTab(const 
QByteArray&, TabWidget::OpenUrlIn)’:
tabwidget.cpp:1135: error: ‘class QWebHistory’ has no member named 
‘restoreState’
make[1]: *** [.obj/tabwidget.o] Error 1
make[1]: Leaving directory `/media/disk/arora/src'
make: *** [sub-src-make_default-ordered] Error 2

I have checked the actual source and it happens to some ifdef statements 
checking if QT is version 4.6. Have no 
idea if this is Arora or kde-qt's fault.

Original issue reported on code.google.com by xavier11...@gmail.com on 30 Oct 2009 at 2:19

GoogleCodeExporter commented 9 years ago
I also have this problem, it also appears with trunk qt's webkit.

Original comment by yast...@gmail.com on 1 Nov 2009 at 2:19

GoogleCodeExporter commented 9 years ago
http://github.com/Arora/arora/commit/1193ab397b1e220d96080a6b9275f7eb605aa8b2

Original comment by faw...@gmail.com on 8 Nov 2009 at 2:02

GoogleCodeExporter commented 9 years ago
thanks , patch seems to be needed in qt 4.6 rc1 and arora stable 

Original comment by map...@gmail.com on 22 Nov 2009 at 4:09