KDE3To4
Build instructions
for build instructions of KDE 4, please seehttp://techbase.kde.org/Getting_Started/Build/KDE4
Start KDE 4 programs
To start the desktop environment itself, do:X :1 & export DISPLAY=:1 startkde
Maybe you are logged in as your normal user (not kde-devel), want to stay in your current environment (KDE 3.5, gnome, whatever) and start a KDE 4 program. To start only kwrite from KDE 4, do:
ssh -X kde-devel@localhost kwrite
Compile your module
Now, we want to start compiling our module, e.g. kdepim. First, make sure the program qt3to4 has run over your code. Then, use the cool scripts from Laurent:svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdesdk/scripts/qt4/
Then, you may run into the following problems:
- VerticalAlignment is now part of QTextCharFormat.
- kextsocket.h no longer exists. It should be replaced by kstreamsocket (for non-buffered mode) / kbufferedsocket (for buffered mode) / kserversocket (for passive mode).
- The function setBlockingMode has to be replace by setBlocking
- there is no longer a QCString, but a QByteArray delivered. For a more detailed explanation, read http://doc.trolltech.com/4.0/porting4.html.
You need to convert the QByteArray to a char with the member data(). Example:
one example comparison from websvn.kde.org
reference from Trolltech
- WFlags are now Qt::WFlags
Sources and suggested readings
- Port to kde4 HowTo
- KDE CMake Intro
- How to port Qt3 code to Qt4
- How to port KDE3 code to KDE4
- How to build two versions of KDE on one computer
Contributors to this page: Anonymous
.
Page last modified on Wednesday 04. April 2007 [17:35:02 UTC] by Anonymous.
The content on this page is licensed under the terms of the GNU Free Documentation License.
20
online users
