[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