t_fischer: (Default)
[personal profile] t_fischer

First screenshot of KDiff3 port to KF5I am a regular user of KDiff3, a two-way or three-way merging tool for KDE. The tool is very useful to quickly compare and merge source code and LaTeX files or to resolve .rpmnew/.pacsave files.

Unfortunately, there has been very little activity in this project (last commit September 2014) and it is still stuck on Qt4/KDE4. The original maintainer, Joachim Eibl, has unfortunately no time left to develop this project.
To keep this very useful tool alive, I stepped forward and ported the code base in a few evenings from Qt4/KDE4 to Qt5/Frameworks 5. Well, the port is not complete, I have to admit …

First, if you would like to get the code, fetch it from the Git repository at KDE or GitLab. The old KDE4 code is still in master, the new KF5-based code in branch kf5.

The code should compile on Linux and the resulting executable should start without crashing immediately, but there are some known issues, such as:

  • Command line arguments are mostly ignored, such as when two or three filenames get provided for comparison/merging. Reason is that command line parsing happens deep inside the code and command line arguments were retrieved via KCmdLineArgs's static functions. QCommandLineParser does not offer the same static methods, so the code needs to be refactored to evaluate arguments earlier.
  • Some code which is/seemed to be specific for non-Linux operating systems has been removed. Some of those specific code segments may no longer be necessary with Qt5. Right now, focus is on Unix-like platforms with Linux being my own development base. Other operating systems will be targeted in the future once the KF5-based code has matured a little bit more.
  • Various code fragments which were not easy to port to KDE Frameworks 5 have been commented out with a TODO comment for later porting.
  • Installation, locating, and handling of files including GUI XML files, configuration files, icons, etc. may or may not work.

I will work on this project as time allows. Support and contributions are welcome, of course.

Profile

t_fischer: (Default)
Thomas Fischer

August 2020

S M T W T F S
      1
234 5678
9101112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags