Mercurial > hg > easyhg-kdiff3
annotate kdiff3/src-QT4/kreplacements/README @ 113:7bca1f1340f6 tip
Build fixes for Xcode 10 / Qt 5.12
author | Chris Cannam |
---|---|
date | Mon, 17 Dec 2018 11:13:01 +0000 |
parents | 08ea9b86c12c |
children |
rev | line source |
---|---|
joachim99@8 | 1 About the "kreplacements"-directory: |
joachim99@8 | 2 ==================================== |
joachim99@8 | 3 |
joachim99@8 | 4 I want to be able to compile and use KDiff3 without KDE too. |
joachim99@8 | 5 Since KDiff3 is a KDE program, which uses many KDE-classes and |
joachim99@8 | 6 functions there must be some replacement. |
joachim99@8 | 7 |
joachim99@8 | 8 In many cases this is just the corresponding Qt-class, but often |
joachim99@8 | 9 I wrote something myself. For several very KDE-specific functions |
joachim99@8 | 10 there is no real replacement, but only stub functions that allow |
joachim99@8 | 11 the program to compile and link. |
joachim99@8 | 12 |
joachim99@8 | 13 This stuff is not intended to be used for anything else but KDiff3. |
joachim99@8 | 14 Think of it rather as a big hack, that only has the advantage |
joachim99@8 | 15 that I need not mess up the normal program with many ugly |
joachim99@8 | 16 #ifdef/#endif-clauses. |
joachim99@8 | 17 |
joachim99@8 | 18 Most include files in this directory only include kreplacements.h |
joachim99@8 | 19 where the actual declarations are. The implementions are in |
joachim99@8 | 20 kreplacements.cpp. |
joachim99@8 | 21 |
joachim99@8 | 22 The *.moc-files are dummies. The new KDE-philosophy seems to be |
joachim99@8 | 23 that *.moc-files are directly included into the sources. |
joachim99@8 | 24 The Qt-philosophy still is to generate moc*.cpp files which will |
joachim99@8 | 25 be compiled seperately. With these dummy-moc-files both versions |
joachim99@8 | 26 can be compiled. |
joachim99@8 | 27 |
joachim99@8 | 28 |
joachim99@8 | 29 Joachim |
joachim99@8 | 30 (2003-10-02) |