[bt-devel] porting to QT4

Eric Hartwell darth_linux at ameritech.net
Mon Aug 1 08:00:24 MST 2005


Hi all, 

It looks like we have two main issues with porting to QT4: Taking out KDE 
objects (KMainWindow, KApplication as examples) and moving existing logic to 
new QT's classes (QPtr and QDict don't exist any more). 

It seems like we just have to plod through the code and find QT4 equivalents 
for the KDE classes we need to replace while converting to new QT classes. 
Some of the logic may change, but mostly (I think) it's changing class/method 
names to match QT4. 

I've attached the errors KDevelop spit out when I tried to compile using QT4. 
The QT4 docs on Trolltech's site include a QT3-to-4 porting guide listing all 
the classes that have changed. I attached "qt4errors - with notes.txt" to 
specifically speak to some of the 3-to-4 problems we will encounter. 

Do we just want to fork? (like the KDE team is doing) - continue developlent 
of BibleTime 1.6 in QT3, but release BibleTime 1.7 (or 2.0 or whatever) using 
QT4. 

This may not be as in-depth as we need, but hopefully enough to aide the port 
decision. I am in favor of upgrading to QT4, but I would suggest holding off 
porting to other platforms until that upgrade is complete. 

God bless, 

eah
-------------- next part --------------
cd '/home/eah/downloads/bibletime' && WANT_AUTOCONF="2.5" WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE="1.6" WANT_AUTOMAKE_1_6="1" gmake -j1 
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_CORE_LIB -DQT_GUI_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.0.0/mkspecs/default -I. -I/usr/local/Trolltech/Qt-4.0.0/include/QtGui -I/usr/local/Trolltech/Qt-4.0.0/include/QtCore -I/usr/local/Trolltech/Qt-4.0.0/include -I. -Ibibletime -Ibibletime/frontend -Ibibletime/backend -Ibibletime/util -Ibibletime/frontend/displaywindow -Ibibletime/frontend/mainindex -Ibibletime/frontend/display -Ibibletime/frontend/keychooser -Ibibletime/frontend/searchdialog -Ibibletime/display-templates -I. -I. -o bibletime.o bibletime/bibletime.cpp
In file included from bibletime/bibletime.cpp:5:
bibletime/bibletime.h:7:25: error: kmainwindow.h: No such file or directory
In file included from bibletime/backend/cswordmoduleinfo.h:7,
from bibletime/frontend/cprofilewindow.h:6,
from bibletime/frontend/cprofile.h:6,
from bibletime/frontend/cprofilemgr.h:6,
from bibletime/bibletime.h:10,
from bibletime/bibletime.cpp:5:
bibletime/backend/clanguagemgr.h:9:24: error: qvaluelist.h: No such file or directory
bibletime/backend/clanguagemgr.h:11:19: error: qdict.h: No such file or directory
In file included from bibletime/frontend/cprofilewindow.h:6,
from bibletime/frontend/cprofile.h:6,
from bibletime/frontend/cprofilemgr.h:6,
from bibletime/bibletime.h:10,
from bibletime/bibletime.cpp:5:
bibletime/backend/cswordmoduleinfo.h:14:21: error: listkey.h: No such file or directory
bibletime/backend/cswordmoduleinfo.h:15:22: error: swmodule.h: No such file or directory
bibletime/backend/cswordmoduleinfo.h:16:23: error: swversion.h: No such file or directory
bibletime/backend/cswordmoduleinfo.h:17:20: error: swdisp.h: No such file or directory
In file included from bibletime/frontend/cprofilewindow.h:7,
from bibletime/frontend/cprofile.h:6,
from bibletime/frontend/cprofilemgr.h:6,
from bibletime/bibletime.h:10,
from bibletime/bibletime.cpp:5:
bibletime/backend/cswordbackend.h:11:22: error: qptrlist.h: No such file or directory
bibletime/backend/cswordbackend.h:17:19: error: swmgr.h: No such file or directory
bibletime/backend/cswordbackend.h:18:19: error: swbuf.h: No such file or directory
bibletime/backend/cswordbackend.h:21:23: error: localemgr.h: No such file or directory
bibletime/backend/cswordbackend.h:22:21: error: utilstr.h: No such file or directory
In file included from bibletime/frontend/displaywindow/cdisplaywindow.h:12,
from bibletime/bibletime.h:11,
from bibletime/bibletime.cpp:5:
bibletime/backend/cswordversekey.h:14:22: error: versekey.h: No such file or directory
In file included from bibletime/frontend/displaywindow/cdisplaywindow.h:13,
from bibletime/bibletime.h:11,
from bibletime/bibletime.cpp:5:
bibletime/backend/cswordtreekey.h:10:24: error: treekeyidx.h: No such file or directory
In file included from bibletime/frontend/displaywindow/cdisplaywindow.h:14,
from bibletime/bibletime.h:11,
from bibletime/bibletime.cpp:5:
bibletime/backend/cswordldkey.h:15:19: error: swkey.h: No such file or directory
In file included from bibletime/bibletime.cpp:8:
bibletime/frontend/cmdiarea.h:13:22: error: qstrlist.h: No such file or directory
In file included from bibletime/frontend/mainindex/cmainindex.h:7,
from bibletime/bibletime.cpp:10:
bibletime/frontend/mainindex/cindexitem.h:12:18: error: qdom.h: No such file or directory
bibletime/frontend/mainindex/cindexitem.h:15:23: error: klistview.h: No such file or directory
In file included from bibletime/bibletime.cpp:10:
bibletime/frontend/mainindex/cmainindex.h:20:21: error: kaction.h: No such file or directory
In file included from bibletime/bibletime.cpp:12:
bibletime/frontend/displaywindow/creadwindow.h:14:24: error: qpopupmenu.h: No such file or directory
bibletime/bibletime.cpp:36:26: error: kapplication.h: No such file or directory
bibletime/bibletime.cpp:37:21: error: kconfig.h: No such file or directory
bibletime/bibletime.cpp:38:26: error: kcmdlineargs.h: No such file or directory
bibletime/bibletime.cpp:39:21: error: klocale.h: No such file or directory
bibletime/bibletime.cpp:40:20: error: kaccel.h: No such file or directory
bibletime/bibletime.cpp:41:22: error: kmenubar.h: No such file or directory
bibletime/bibletime.cpp:42:22: error: ktoolbar.h: No such file or directory
bibletime/bibletime.cpp:43:29: error: krandomsequence.h: No such file or directory
bibletime/backend/clanguagemgr.h:72: error: ISO C++ forbids declaration of ‘QDict’ with no type
bibletime/backend/clanguagemgr.h:72: error: expected ‘;’ before ‘<’ token
bibletime/backend/clanguagemgr.h:73: error: ISO C++ forbids declaration of ‘QDictIterator’ with no type
bibletime/backend/clanguagemgr.h:73: error: expected ‘;’ before ‘<’ token
bibletime/backend/clanguagemgr.h:85: error: ISO C++ forbids declaration of ‘LangMap’ with no type
bibletime/backend/clanguagemgr.h:85: error: ‘LangMap’ declared as an ‘inline’ field
bibletime/backend/clanguagemgr.h:85: error: expected ‘;’ before ‘*’ token
bibletime/backend/clanguagemgr.h:90: error: ISO C++ forbids declaration of ‘LangMap’ with no type
bibletime/backend/clanguagemgr.h:90: error: expected ‘;’ before ‘&’ token
bibletime/backend/clanguagemgr.h:117: error: ‘LangMap’ does not name a type
bibletime/backend/clanguagemgr.h:120: error: ISO C++ forbids declaration of ‘QPtrList’ with no type
bibletime/backend/clanguagemgr.h:120: error: expected ‘;’ before ‘<’ token
bibletime/backend/clanguagemgr.h:121: error: ‘LanguageList’ does not name a type
bibletime/backend/clanguagemgr.h:125: error: ‘LangMap’ does not name a type
bibletime/backend/clanguagemgr.h: In member function ‘const QStringList CLanguageMgr::makeStringList(const QString&)’:
bibletime/backend/clanguagemgr.h:114: error: ‘split’ is not a member of ‘QStringList’
bibletime/backend/clanguagemgr.h: At global scope:
bibletime/backend/clanguagemgr.h:146: error: expected initializer before ‘*’ token
bibletime/backend/cswordmoduleinfo.h:117: error: ‘sword’ has not been declared
bibletime/backend/cswordmoduleinfo.h:117: error: expected `)' before ‘*’ token
bibletime/backend/cswordmoduleinfo.h:132: error: ‘sword’ has not been declared
bibletime/backend/cswordmoduleinfo.h:132: error: ISO C++ forbids declaration of ‘SWModule’ with no type
bibletime/backend/cswordmoduleinfo.h:132: error: ‘SWModule’ declared as an ‘inline’ field
bibletime/backend/cswordmoduleinfo.h:132: error: expected ‘;’ before ‘*’ token
bibletime/backend/cswordmoduleinfo.h:168: error: ‘sword’ has not been declared
bibletime/backend/cswordmoduleinfo.h:168: error: ‘ListKey’ has not been declared
bibletime/backend/cswordmoduleinfo.h:173: error: ‘sword’ has not been declared
bibletime/backend/cswordmoduleinfo.h:173: error: ISO C++ forbids declaration of ‘ListKey’ with no type
bibletime/backend/cswordmoduleinfo.h:173: error: ‘ListKey’ declared as a ‘virtual’ field
bibletime/backend/cswordmoduleinfo.h:173: error: expected ‘;’ before ‘&’ token
bibletime/backend/cswordmoduleinfo.h:192: error: ‘sword’ has not been declared
bibletime/backend/cswordmoduleinfo.h:192: error: ‘SWVersion’ does not name a type
bibletime/backend/cswordmoduleinfo.h:255: error: ‘sword’ has not been declared
bibletime/backend/cswordmoduleinfo.h:255: error: ISO C++ forbids declaration of ‘SWModule’ with no type
bibletime/backend/cswordmoduleinfo.h:255: error: expected ‘;’ before ‘*’ token
bibletime/backend/cswordmoduleinfo.h:256: error: ‘sword’ has not been declared
bibletime/backend/cswordmoduleinfo.h:256: error: ‘ListKey’ does not name a type
bibletime/backend/cswordmoduleinfo.h:273: error: expected initializer before ‘<’ token
bibletime/backend/cswordmoduleinfo.h:279: error: ‘sword’ has not been declared
bibletime/backend/cswordmoduleinfo.h:279: error: expected initializer before ‘*’ token
bibletime/backend/ctextrendering.h:62: error: expected ‘,’ or ‘...’ before ‘&’ token
bibletime/backend/ctextrendering.h:62: error: ISO C++ forbids declaration of ‘ListCSwordModuleInfo’ with no type
bibletime/backend/ctextrendering.h:77: error: ISO C++ forbids declaration of ‘ListCSwordModuleInfo’ with no type
bibletime/backend/ctextrendering.h:77: error: ‘ListCSwordModuleInfo’ declared as an ‘inline’ field
bibletime/backend/ctextrendering.h:77: error: expected ‘;’ before ‘&’ token
bibletime/backend/ctextrendering.h:94: error: ‘ListCSwordModuleInfo’ does not name a type
bibletime/backend/ctextrendering.h:104: error: ‘ListCSwordModuleInfo’ does not name a type
bibletime/backend/ctextrendering.h:112: error: expected ‘,’ or ‘...’ before ‘&’ token
bibletime/backend/ctextrendering.h:112: error: ISO C++ forbids declaration of ‘ListCSwordModuleInfo’ with no type
bibletime/backend/ctextrendering.h:114: error: expected ‘,’ or ‘...’ before ‘&’ token
bibletime/backend/ctextrendering.h:114: error: ISO C++ forbids declaration of ‘ListCSwordModuleInfo’ with no type
bibletime/frontend/cinfodisplay.h:47: error: ISO C++ forbids declaration of ‘QValueList’ with no type
bibletime/frontend/cinfodisplay.h:47: error: expected ‘;’ before ‘<’ token
bibletime/frontend/cinfodisplay.h:53: error: expected ‘,’ or ‘...’ before ‘&’ token
bibletime/frontend/cinfodisplay.h:53: error: ISO C++ forbids declaration of ‘ListInfoData’ with no type
bibletime/backend/cswordbackend.h:24: error: expected namespace-name before ‘;’ token
bibletime/backend/cswordbackend.h:24: error: ‘<type error>’ is not a namespace
bibletime/backend/cswordbackend.h:39: error: ‘sword’ has not been declared
bibletime/backend/cswordbackend.h:39: error: expected class-name before ‘{’ token
bibletime/backend/cswordbackend.h:96: error: ISO C++ forbids declaration of ‘ListCSwordModuleInfo’ with no type
bibletime/backend/cswordbackend.h:96: error: ‘ListCSwordModuleInfo’ declared as a ‘virtual’ field
bibletime/backend/cswordbackend.h:96: error: ‘ListCSwordModuleInfo’ declared as an ‘inline’ field
bibletime/backend/cswordbackend.h:96: error: expected ‘;’ before ‘&’ token
bibletime/backend/cswordbackend.h:152: error: ‘sword’ has not been declared
bibletime/backend/cswordbackend.h:152: error: expected ‘,’ or ‘...’ before ‘*’ token
bibletime/backend/cswordbackend.h:152: error: ISO C++ forbids declaration of ‘SWModule’ with no type
bibletime/backend/cswordbackend.h:162: error: ‘sword’ has not been declared
bibletime/backend/cswordbackend.h:162: error: ISO C++ forbids declaration of ‘SWConfig’ with no type
bibletime/backend/cswordbackend.h:162: error: ‘SWConfig’ declared as an ‘inline’ field
bibletime/backend/cswordbackend.h:162: error: expected ‘;’ before ‘*’ token
bibletime/backend/cswordbackend.h:167: error: ‘sword’ has not been declared
bibletime/backend/cswordbackend.h:167: error: ‘SWConfig’ has not been declared
bibletime/backend/cswordbackend.h:187: error: ‘sword’ has not been declared
bibletime/backend/cswordbackend.h:187: error: ‘SWVersion’ does not name a type
bibletime/backend/cswordbackend.h:202: error: ‘sword’ has not been declared
bibletime/backend/cswordbackend.h:202: error: ‘SWModule’ has not been declared
bibletime/backend/cswordbackend.h:202: error: ‘sword’ has not been declared
bibletime/backend/cswordbackend.h:202: error: ‘ConfigEntMap’ has not been declared
bibletime/backend/cswordbackend.h:211: error: ‘sword’ has not been declared
bibletime/backend/cswordbackend.h:211: error: ISO C++ forbids declaration of ‘SWFilter’ with no type
bibletime/backend/cswordbackend.h:211: error: expected ‘;’ before ‘*’ token
bibletime/backend/cswordbackend.h:212: error: ‘sword’ has not been declared
bibletime/backend/cswordbackend.h:212: error: ISO C++ forbids declaration of ‘SWFilter’ with no type
bibletime/backend/cswordbackend.h:212: error: expected ‘;’ before ‘*’ token
bibletime/backend/cswordbackend.h:213: error: ‘sword’ has not been declared
bibletime/backend/cswordbackend.h:213: error: ISO C++ forbids declaration of ‘SWFilter’ with no type
bibletime/backend/cswordbackend.h:213: error: expected ‘;’ before ‘*’ token
bibletime/backend/cswordbackend.h:214: error: ‘sword’ has not been declared
bibletime/backend/cswordbackend.h:214: error: ISO C++ forbids declaration of ‘SWFilter’ with no type
bibletime/backend/cswordbackend.h:214: error: expected ‘;’ before ‘*’ token
bibletime/backend/cswordbackend.h:223: error: ‘ListCSwordModuleInfo’ does not name a type
bibletime/backend/cswordbackend.h:228: error: expected initializer before ‘&’ token
bibletime/backend/cswordbackend.h:233: error: ‘sword’ has not been declared
bibletime/backend/cswordbackend.h:233: error: expected initializer before ‘*’ token
bibletime/backend/cswordbackend.h:238: error: ‘sword’ has not been declared
bibletime/backend/cswordbackend.h:238: error: ‘SWVersion’ does not name a type
bibletime/frontend/cprofile.h:23: error: ‘QPtrList’ has not been declared
bibletime/frontend/cprofile.h:23: error: expected ‘,’ or ‘...’ before ‘<’ token
bibletime/frontend/cprofile.h:32: error: ISO C++ forbids declaration of ‘QPtrList’ with no type
bibletime/frontend/cprofile.h:32: error: expected ‘;’ before ‘<’ token
bibletime/frontend/cprofile.h:73: error: ISO C++ forbids declaration of ‘QPtrList’ with no type
bibletime/frontend/cprofile.h:73: error: expected ‘;’ before ‘<’ token
bibletime/frontend/cprofilemgr.h:28: error: ISO C++ forbids declaration of ‘QPtrList’ with no type
bibletime/frontend/cprofilemgr.h:28: error: expected ‘;’ before ‘<’ token
bibletime/frontend/cprofilemgr.h:51: error: ISO C++ forbids declaration of ‘QPtrList’ with no type
bibletime/frontend/cprofilemgr.h:51: error: expected ‘;’ before ‘<’ token
bibletime/backend/cswordversekey.h:38: error: ‘sword’ has not been declared
bibletime/backend/cswordversekey.h:38: error: expected class-name before ‘{’ token
bibletime/backend/cswordversekey.h:61: error: ‘sword’ has not been declared
bibletime/backend/cswordversekey.h:61: error: expected ‘,’ or ‘...’ before ‘*’ token
bibletime/backend/cswordversekey.h:61: error: ISO C++ forbids declaration of ‘VerseKey’ with no type
bibletime/backend/cswordtreekey.h:18: error: ‘sword’ has not been declared
bibletime/backend/cswordtreekey.h:18: error: expected class-name before ‘{’ token
bibletime/backend/cswordtreekey.h:24: error: ‘sword’ has not been declared
bibletime/backend/cswordtreekey.h:24: error: expected ‘,’ or ‘...’ before ‘*’ token
bibletime/backend/cswordtreekey.h:24: error: ISO C++ forbids declaration of ‘TreeKeyIdx’ with no type
bibletime/backend/cswordldkey.h:44: error: ‘sword’ has not been declared
bibletime/backend/cswordldkey.h:44: error: expected class-name before ‘{’ token
bibletime/backend/cswordldkey.h:57: error: ‘sword’ has not been declared
bibletime/backend/cswordldkey.h:57: error: expected ‘,’ or ‘...’ before ‘*’ token
bibletime/backend/cswordldkey.h:57: error: ISO C++ forbids declaration of ‘SWKey’ with no type
bibletime/frontend/displaywindow/cdisplaywindow.h:41: error: expected class-name before ‘,’ token
bibletime/frontend/displaywindow/cdisplaywindow.h:49: error: expected ‘;’ before ‘(’ token
bibletime/frontend/displaywindow/cdisplaywindow.h:50: error: expected ‘;’ before ‘(’ token
bibletime/frontend/displaywindow/cdisplaywindow.h:55: error: ‘KActionCollection’ has not been declared
bibletime/frontend/displaywindow/cdisplaywindow.h:65: error: ‘ListCSwordModuleInfo’ does not name a type
bibletime/frontend/displaywindow/cdisplaywindow.h:175: error: expected `)' before ‘modules’
bibletime/frontend/displaywindow/cdisplaywindow.h:204: error: expected ‘,’ or ‘...’ before ‘&’ token
bibletime/frontend/displaywindow/cdisplaywindow.h:204: error: ISO C++ forbids declaration of ‘ListCSwordModuleInfo’ with no type
bibletime/bibletime.h:124: error: expected class-name before ‘{’ token
bibletime/bibletime.h:233: error: ‘KConfig’ has not been declared
bibletime/bibletime.h:237: error: ‘KConfig’ has not been declared
bibletime/bibletime.h:243: error: expected ‘;’ before ‘(’ token
bibletime/bibletime.h:370: error: ISO C++ forbids declaration of ‘QPtrList’ with no type
bibletime/bibletime.h:370: error: expected ‘;’ before ‘<’ token
bibletime/bibletime.h:372: error: ISO C++ forbids declaration of ‘KHelpMenu’ with no type
bibletime/bibletime.h:372: error: expected ‘;’ before ‘*’ token
bibletime/bibletime.h:379: error: ISO C++ forbids declaration of ‘ListCSwordModuleInfo’ with no type
bibletime/bibletime.h:379: error: expected ‘;’ before ‘*’ token
bibletime/frontend/cmdiarea.h:84: error: ‘ListCSwordModuleInfo’ has not been declared
bibletime/frontend/cmdiarea.h:103: error: ISO C++ forbids declaration of ‘QPtrList’ with no type
bibletime/frontend/cmdiarea.h:103: error: expected ‘;’ before ‘<’ token
bibletime/frontend/cmdiarea.h:115: error: ‘ListCSwordModuleInfo’ has not been declared
bibletime/frontend/cmdiarea.h:129: error: variable or field ‘emitCreateDisplayWindow’ declared void
bibletime/frontend/cmdiarea.h:129: error: ‘CMDIArea::emitCreateDisplayWindow’ declared as an ‘inline’ variable
bibletime/frontend/cmdiarea.h:129: error: ‘int CMDIArea::emitCreateDisplayWindow’ is not a static member of ‘class CMDIArea’
bibletime/frontend/cmdiarea.h:129: error: ‘ListCSwordModuleInfo’ was not declared in this scope
bibletime/frontend/cmdiarea.h:129: error: expected primary-expression before ‘const’
bibletime/frontend/cmdiarea.h:129: error: initializer expression list treated as compound expression
bibletime/frontend/cmdiarea.h:129: error: expected ‘,’ or ‘;’ before ‘{’ token
bibletime/frontend/mainindex/cindexitem.h:22: error: expected class-name before ‘{’ token
bibletime/frontend/mainindex/cindexitem.h:83: error: ‘QDomElement’ does not name a type
bibletime/frontend/mainindex/cindexitem.h:87: error: ‘QDomElement’ has not been declared
bibletime/frontend/mainindex/cindexitem.h:113: error: ‘QListViewItem’ has not been declared
bibletime/frontend/mainindex/cindexitem.h:145: error: ‘QListViewItem’ has not been declared
bibletime/frontend/mainindex/cindexitem.h:154: error: ‘QDomElement’ has not been declared
bibletime/frontend/mainindex/cindexitem.h:181: error: ‘QDomElement’ does not name a type
bibletime/frontend/mainindex/cindexitem.h:185: error: ‘QDomElement’ has not been declared
bibletime/frontend/mainindex/cindexitem.h:192: error: ‘QDomElement’ does not name a type
bibletime/frontend/mainindex/cindexitem.h:229: error: ISO C++ forbids declaration of ‘QPtrList’ with no type
bibletime/frontend/mainindex/cindexitem.h:229: error: expected ‘;’ before ‘<’ token
bibletime/frontend/mainindex/cindexitem.h:300: error: ‘QListViewItem’ has not been declared
bibletime/frontend/mainindex/cindexitem.h:329: error: ‘QDomElement’ does not name a type
bibletime/frontend/mainindex/cindexitem.h:333: error: ‘QDomElement’ has not been declared
bibletime/frontend/mainindex/cindexitem.h:351: error: ‘QDomElement’ has not been declared
bibletime/frontend/mainindex/cindexitem.h:361: error: ‘QDomElement’ does not name a type
bibletime/frontend/mainindex/cindexitem.h:365: error: ‘QDomElement’ has not been declared
bibletime/frontend/mainindex/cindexitem.h:368: error: ‘QDomElement’ does not name a type
bibletime/frontend/mainindex/cmainindex.h:29: error: expected class-name before ‘{’ token
bibletime/frontend/mainindex/cmainindex.h:52: error: ‘ListCSwordModuleInfo’ has not been declared
bibletime/frontend/mainindex/cmainindex.h:80: error: ISO C++ forbids declaration of ‘QDragObject’ with no type
bibletime/frontend/mainindex/cmainindex.h:80: error: ‘QDragObject’ declared as a ‘virtual’ field
bibletime/frontend/mainindex/cmainindex.h:80: error: expected ‘;’ before ‘*’ token
bibletime/frontend/mainindex/cmainindex.h:98: error: ‘QListViewItem’ has not been declared
bibletime/frontend/mainindex/cmainindex.h:104: error: ‘QListViewItem’ has not been declared
bibletime/frontend/mainindex/cmainindex.h:105: error: ‘QListViewItem’ has not been declared
bibletime/frontend/mainindex/cmainindex.h:105: error: ‘QListViewItem’ has not been declared
bibletime/frontend/mainindex/cmainindex.h:109: error: ‘KListView’ has not been declared
bibletime/frontend/mainindex/cmainindex.h:109: error: ‘QListViewItem’ has not been declared
bibletime/frontend/mainindex/cmainindex.h:150: error: ‘QPtrList’ has not been declared
bibletime/frontend/mainindex/cmainindex.h:150: error: expected ‘,’ or ‘...’ before ‘<’ token
bibletime/frontend/mainindex/cmainindex.h:164: error: ISO C++ forbids declaration of ‘QListViewItem’ with no type
bibletime/frontend/mainindex/cmainindex.h:164: error: expected ‘;’ before ‘*’ token
bibletime/frontend/mainindex/cmainindex.h:202: error: ‘ListCSwordModuleInfo’ has not been declared
bibletime/frontend/displaywindow/creadwindow.h:28: error: expected `)' before ‘modules’
bibletime/frontend/displaywindow/cwritewindow.h:22: error: expected `)' before ‘modules’
bibletime/frontend/keychooser/ckeychooser.h:35: error: expected ‘;’ before ‘(’ token
bibletime/frontend/keychooser/ckeychooser.h:60: error: expected ‘,’ or ‘...’ before ‘&’ token
bibletime/frontend/keychooser/ckeychooser.h:60: error: ISO C++ forbids declaration of ‘ListCSwordModuleInfo’ with no type
bibletime/frontend/keychooser/ckeychooser.h:89: error: expected `)' before ‘info’
bibletime/frontend/cbtconfig.h:106: error: ISO C++ forbids declaration of ‘QValueList’ with no type
bibletime/frontend/cbtconfig.h:106: error: expected ‘;’ before ‘<’ token
bibletime/frontend/cbtconfig.h:116: error: ISO C++ forbids declaration of ‘QValueList’ with no type
bibletime/frontend/cbtconfig.h:116: error: expected ‘;’ before ‘<’ token
bibletime/frontend/cbtconfig.h:126: error: expected ‘,’ or ‘...’ before ‘<’ token
bibletime/frontend/cbtconfig.h:126: error: ISO C++ forbids declaration of ‘QValueList’ with no type
bibletime/util/ctoolclass.h:50: error: expected unqualified-id before ‘&’ token
bibletime/util/ctoolclass.h:50: error: expected ‘,’ or ‘...’ before ‘&’ token
bibletime/util/ctoolclass.h:50: error: ISO C++ forbids declaration of ‘parameter’ with no type
bibletime/backend/cswordbiblemoduleinfo.h:33: error: ‘sword’ has not been declared
bibletime/backend/cswordbiblemoduleinfo.h:33: error: expected `)' before ‘*’ token
bibletime/backend/cswordcommentarymoduleinfo.h:16: error: ‘sword’ has not been declared
bibletime/backend/cswordcommentarymoduleinfo.h:16: error: expected `)' before ‘*’ token
bibletime/backend/cswordlexiconmoduleinfo.h:23: error: ‘sword’ has not been declared
bibletime/backend/cswordlexiconmoduleinfo.h:23: error: expected `)' before ‘*’ token
bibletime/backend/cswordbookmoduleinfo.h:21: error: ‘sword’ has not been declared
bibletime/backend/cswordbookmoduleinfo.h:21: error: expected `)' before ‘*’ token
bibletime/backend/cswordbookmoduleinfo.h:41: error: ‘sword’ has not been declared
bibletime/backend/cswordbookmoduleinfo.h:41: error: ISO C++ forbids declaration of ‘TreeKeyIdx’ with no type
bibletime/backend/cswordbookmoduleinfo.h:41: error: expected ‘;’ before ‘*’ token
bibletime/backend/cswordbookmoduleinfo.h:47: error: ‘sword’ has not been declared
bibletime/backend/cswordbookmoduleinfo.h:47: error: ‘TreeKeyIdx’ has not been declared
bibletime/bibletime.cpp: In constructor ‘BibleTime::BibleTime()’:
bibletime/bibletime.cpp:46: error: class ‘BibleTime’ does not have any field named ‘KMainWindow’
bibletime/bibletime.cpp:46: error: ‘WType_TopLevel’ was not declared in this scope
bibletime/bibletime.cpp:49: error: class ‘BibleTime’ does not have any field named ‘m_moduleList’
bibletime/bibletime.cpp:61: error: ‘setHelpMenuEnabled’ was not declared in this scope
bibletime/bibletime.cpp:68: error: ‘createGUI’ was not declared in this scope
bibletime/bibletime.cpp:77: error: ‘setAutoSaveSettings’ was not declared in this scope
bibletime/bibletime.cpp: In member function ‘void BibleTime::saveSettings()’:
bibletime/bibletime.cpp:90: error: ‘accel’ was not declared in this scope
bibletime/bibletime.cpp:92: error: invalid use of undefined type ‘struct KToggleAction’
bibletime/bibletime.h:28: error: forward declaration of ‘struct KToggleAction’
bibletime/bibletime.cpp:93: error: invalid use of undefined type ‘struct KToggleAction’
bibletime/bibletime.h:28: error: forward declaration of ‘struct KToggleAction’
bibletime/bibletime.cpp:94: error: invalid use of undefined type ‘struct KToggleAction’
bibletime/bibletime.h:28: error: forward declaration of ‘struct KToggleAction’
bibletime/bibletime.cpp:96: error: no matching function for call to ‘CBTConfig::set(CBTConfig::intLists, QList<int>)’
bibletime/frontend/cbtconfig.h:121: note: candidates are: static void CBTConfig::set(CBTConfig::strings, QString)
bibletime/frontend/cbtconfig.h:122: note: static void CBTConfig::set(CBTConfig::modules, CSwordModuleInfo*)
bibletime/frontend/cbtconfig.h:123: note: static void CBTConfig::set(CBTConfig::modules, const QString&)
bibletime/frontend/cbtconfig.h:124: note: static void CBTConfig::set(CBTConfig::bools, bool)
bibletime/frontend/cbtconfig.h:125: note: static void CBTConfig::set(CBTConfig::ints, int)
bibletime/frontend/cbtconfig.h:126: note: static void CBTConfig::set(CBTConfig::intLists, int)
bibletime/frontend/cbtconfig.h:127: note: static void CBTConfig::set(CBTConfig::stringLists, QStringList)
bibletime/frontend/cbtconfig.h:128: note: static void CBTConfig::set(CBTConfig::stringMaps, QMap<QString, QString>)
bibletime/frontend/cbtconfig.h:129: note: static void CBTConfig::set(const CLanguageMgr::Language*, const std::pair<bool, QFont>&)
bibletime/bibletime.cpp:97: error: no matching function for call to ‘CBTConfig::set(CBTConfig::intLists, QList<int>)’
bibletime/frontend/cbtconfig.h:121: note: candidates are: static void CBTConfig::set(CBTConfig::strings, QString)
bibletime/frontend/cbtconfig.h:122: note: static void CBTConfig::set(CBTConfig::modules, CSwordModuleInfo*)
bibletime/frontend/cbtconfig.h:123: note: static void CBTConfig::set(CBTConfig::modules, const QString&)
bibletime/frontend/cbtconfig.h:124: note: static void CBTConfig::set(CBTConfig::bools, bool)
bibletime/frontend/cbtconfig.h:125: note: static void CBTConfig::set(CBTConfig::ints, int)
bibletime/frontend/cbtconfig.h:126: note: static void CBTConfig::set(CBTConfig::intLists, int)
bibletime/frontend/cbtconfig.h:127: note: static void CBTConfig::set(CBTConfig::stringLists, QStringList)
bibletime/frontend/cbtconfig.h:128: note: static void CBTConfig::set(CBTConfig::stringMaps, QMap<QString, QString>)
bibletime/frontend/cbtconfig.h:129: note: static void CBTConfig::set(const CLanguageMgr::Language*, const std::pair<bool, QFont>&)
bibletime/bibletime.cpp:104: error: invalid use of undefined type ‘struct KToggleAction’
bibletime/bibletime.h:28: error: forward declaration of ‘struct KToggleAction’
bibletime/bibletime.cpp:105: error: invalid use of undefined type ‘struct KToggleAction’
bibletime/bibletime.h:28: error: forward declaration of ‘struct KToggleAction’
bibletime/bibletime.cpp:106: error: invalid use of undefined type ‘struct KToggleAction’
bibletime/bibletime.h:28: error: forward declaration of ‘struct KToggleAction’
bibletime/bibletime.cpp: In member function ‘void BibleTime::readSettings()’:
bibletime/bibletime.cpp:118: error: ‘actionCollection’ was not declared in this scope
bibletime/bibletime.cpp:120: error: invalid use of undefined type ‘struct KToggleAction’
bibletime/bibletime.h:28: error: forward declaration of ‘struct KToggleAction’
bibletime/bibletime.cpp:123: error: invalid use of undefined type ‘struct KToggleAction’
bibletime/bibletime.h:28: error: forward declaration of ‘struct KToggleAction’
bibletime/bibletime.cpp:126: error: invalid use of undefined type ‘struct KToggleAction’
bibletime/bibletime.h:28: error: forward declaration of ‘struct KToggleAction’
bibletime/bibletime.cpp:130: error: no matching function for call to ‘CBTConfig::get(CBTConfig::intLists)’
bibletime/frontend/cbtconfig.h:102: note: candidates are: static const QString CBTConfig::get(CBTConfig::strings)
bibletime/frontend/cbtconfig.h:103: note: static CSwordModuleInfo* const CBTConfig::get(CBTConfig::modules)
bibletime/frontend/cbtconfig.h:104: note: static const bool CBTConfig::get(CBTConfig::bools)
bibletime/frontend/cbtconfig.h:105: note: static const int CBTConfig::get(CBTConfig::ints)
bibletime/frontend/cbtconfig.h:107: note: static const QStringList CBTConfig::get(CBTConfig::stringLists)
bibletime/frontend/cbtconfig.h:108: note: static const QMap<QString, QString> CBTConfig::get(CBTConfig::stringMaps)
bibletime/frontend/cbtconfig.h:110: note: static const std::pair<bool, QFont> CBTConfig::get(const CLanguageMgr::Language*)
bibletime/bibletime.cpp:133: error: no matching function for call to ‘CBTConfig::get(CBTConfig::intLists)’
bibletime/frontend/cbtconfig.h:102: note: candidates are: static const QString CBTConfig::get(CBTConfig::strings)
bibletime/frontend/cbtconfig.h:103: note: static CSwordModuleInfo* const CBTConfig::get(CBTConfig::modules)
bibletime/frontend/cbtconfig.h:104: note: static const bool CBTConfig::get(CBTConfig::bools)
bibletime/frontend/cbtconfig.h:105: note: static const int CBTConfig::get(CBTConfig::ints)
bibletime/frontend/cbtconfig.h:107: note: static const QStringList CBTConfig::get(CBTConfig::stringLists)
bibletime/frontend/cbtconfig.h:108: note: static const QMap<QString, QString> CBTConfig::get(CBTConfig::stringMaps)
bibletime/frontend/cbtconfig.h:110: note: static const std::pair<bool, QFont> CBTConfig::get(const CLanguageMgr::Language*)
bibletime/bibletime.cpp:137: error: invalid use of undefined type ‘struct KToggleAction’
bibletime/bibletime.h:28: error: forward declaration of ‘struct KToggleAction’
bibletime/bibletime.cpp:138: error: invalid use of undefined type ‘struct KToggleAction’
bibletime/bibletime.h:28: error: forward declaration of ‘struct KToggleAction’
bibletime/bibletime.cpp:142: error: invalid use of undefined type ‘struct KToggleAction’
bibletime/bibletime.h:28: error: forward declaration of ‘struct KToggleAction’
bibletime/bibletime.cpp:143: error: invalid use of undefined type ‘struct KToggleAction’
bibletime/bibletime.h:28: error: forward declaration of ‘struct KToggleAction’
bibletime/bibletime.cpp:147: error: invalid use of undefined type ‘struct KToggleAction’
bibletime/bibletime.h:28: error: forward declaration of ‘struct KToggleAction’
bibletime/bibletime.cpp:148: error: invalid use of undefined type ‘struct KToggleAction’
bibletime/bibletime.h:28: error: forward declaration of ‘struct KToggleAction’
bibletime/bibletime.cpp:152: error: invalid use of undefined type ‘struct KToggleAction’
bibletime/bibletime.h:28: error: forward declaration of ‘struct KToggleAction’
bibletime/bibletime.cpp: At global scope:
bibletime/bibletime.cpp:158: error: ‘CDisplayWindow* BibleTime::createReadDisplayWindow’ is not a static member of ‘class BibleTime’
bibletime/bibletime.cpp:158: error: ‘ListCSwordModuleInfo’ was not declared in this scope
bibletime/bibletime.cpp:158: error: expected primary-expression before ‘const’
bibletime/bibletime.cpp:158: error: initializer expression list treated as compound expression
bibletime/bibletime.cpp:158: error: expected ‘,’ or ‘;’ before ‘{’ token
bibletime/bibletime.cpp: In member function ‘CDisplayWindow* BibleTime::createReadDisplayWindow(CSwordModuleInfo*, const QString&)’:
bibletime/bibletime.cpp:176: error: ‘ListCSwordModuleInfo’ was not declared in this scope
bibletime/bibletime.cpp:176: error: expected `;' before ‘list’
bibletime/bibletime.cpp:177: error: ‘list’ was not declared in this scope
bibletime/bibletime.cpp:179: error: no matching function for call to ‘BibleTime::createReadDisplayWindow(<type error>, const QString&)’
bibletime/bibletime.cpp:175: note: candidates are: CDisplayWindow* BibleTime::createReadDisplayWindow(CSwordModuleInfo*, const QString&)
bibletime/bibletime.cpp: In member function ‘CDisplayWindow* BibleTime::createWriteDisplayWindow(CSwordModuleInfo*, const QString&, const CDisplayWindow::WriteWindowType&)’:
bibletime/bibletime.cpp:183: error: ‘kapp’ was not declared in this scope
bibletime/bibletime.cpp:183: error: ‘waitCursor’ was not declared in this scope
bibletime/bibletime.cpp:185: error: ‘ListCSwordModuleInfo’ was not declared in this scope
bibletime/bibletime.cpp:185: error: expected `;' before ‘modules’
bibletime/bibletime.cpp:186: error: ‘modules’ was not declared in this scope
bibletime/bibletime.cpp:188: error: ‘createWriteInstance’ is not a member of ‘CDisplayWindow’
bibletime/bibletime.cpp:191: error: ‘class CDisplayWindow’ has no member named ‘show’
bibletime/bibletime.cpp: In member function ‘void BibleTime::refreshDisplayWindows()’:
bibletime/bibletime.cpp:202: warning: comparison between signed and unsigned integer expressions
bibletime/bibletime.cpp: In member function ‘bool BibleTime::queryClose()’:
bibletime/bibletime.cpp:225: warning: comparison between signed and unsigned integer expressions
bibletime/bibletime.cpp: At global scope:
bibletime/bibletime.cpp:235: error: prototype for ‘void BibleTime::saveProperties(KConfig*)’ does not match any in class ‘BibleTime’
bibletime/bibletime.h:237: error: candidate is: void BibleTime::saveProperties(int*)
bibletime/bibletime.cpp:240: error: prototype for ‘void BibleTime::readProperties(KConfig*)’ does not match any in class ‘BibleTime’
bibletime/bibletime.h:233: error: candidate is: void BibleTime::readProperties(int*)
bibletime/bibletime.cpp: In member function ‘virtual void BibleTime::setCaption(const QString&)’:
bibletime/bibletime.cpp:252: error: ‘KMainWindow’ has not been declared
bibletime/bibletime.cpp:252: error: ‘KApplication’ has not been declared
bibletime/bibletime.cpp:252: error: ‘kApplication’ was not declared in this scope
bibletime/bibletime.cpp: In member function ‘virtual void BibleTime::setPlainCaption(const QString&)’:
bibletime/bibletime.cpp:257: error: ‘KMainWindow’ has not been declared
bibletime/bibletime.cpp:257: error: ‘KApplication’ has not been declared
bibletime/bibletime.cpp:257: error: ‘kApplication’ was not declared in this scope
bibletime/bibletime.cpp: In member function ‘void BibleTime::processCommandline()’:
bibletime/bibletime.cpp:262: error: ‘KCmdLineArgs’ was not declared in this scope
bibletime/bibletime.cpp:262: error: ‘args’ was not declared in this scope
bibletime/bibletime.cpp:262: error: ‘KCmdLineArgs’ is not a class or namespace
bibletime/bibletime.cpp:262: error: ‘parsedArgs’ was not declared in this scope
bibletime/bibletime.cpp:279: error: ‘KRandomSequence’ was not declared in this scope
bibletime/bibletime.cpp:279: error: expected `;' before ‘rs’
bibletime/bibletime.cpp:280: error: ‘rs’ was not declared in this scope
bibletime/bibletime.cpp:281: error: ‘class CSwordVerseKey’ has no member named ‘setPosition’
bibletime/bibletime.cpp:281: error: ‘sword’ has not been declared
bibletime/bibletime.cpp:281: error: ‘TOP’ was not declared in this scope
bibletime/bibletime.cpp:282: error: ‘class CSwordVerseKey’ has no member named ‘Index’
bibletime/bibletime.cpp: In member function ‘virtual void BibleTime::polish()’:
bibletime/bibletime.cpp:294: error: ‘KMainWindow’ has not been declared
bibletime/bibletime.cpp:295: error: ‘applyMainWindowSettings’ was not declared in this scope
gmake: *** [bibletime.o] Error 1
*** Exited with status: 2 ***
-------------- next part --------------
These notes are from the QT3-to-4 porting guide provided by Trolltech and included in the QT4 version of QAssistant. 

The QValueList<T> class has been replaced by QList<T> and QLinkedList<T> in Qt 4.

QDict<T>  has been replaced by the more modern QHash<Key, T> and QMultiHash<Key, T> classes.

QPtrList<T>, QPtrListIterator<T>, and QPtrListStdIterator<T> have been replaced by the more modern QList and QLinkedList classes and their associated iterator classes.

QStringList now inherits from QList<QString> and can no longer be converted to a QValueList<QString>. Since QValueList inherits QList a cast will work as expected.


(It looks like QDom.h doesnt exist any more. As part of the QXml module, each of the DOM-related classed has it's own header file) 

(Menu's are done with QMenuBar and QMainWindow:menuBar(). QPopupMenu is depreciated. )

The QListView, QListViewItem, QCheckListItem, and QListViewItemIterator classes have been renamed Q3ListView, Q3ListViewItem, Q3CheckListItem, and Q3ListViewItemIterator, and have been moved to the Qt3Support library. New Qt applications should use one of the following four classes instead: QTreeView or QTreeWidget for tree-like structures; QListWidget or the new QListView class for one-dimensional lists.

We start by including <QtGui>, a header file that contains the definition of all classes in the QtCore and QtGui libraries. This saves us from the trouble of having to include every class individually.



More information about the bt-devel mailing list