RiverWare Qt4 Port Completion
Removing certain Q3 widgets from C++ source files in the non-DMI Qt libraries
January 16, 2010 -- Phil

Completion of tranlation of simple Q3 compatibility widgets started yesterday (see January 15, 2010 notes) for RiverWare Qt GUI libraries EXCEPT DbDmi and QtDmi.

Substitute seven transparently compatible Qt3-compatible classes with Qt4 Classes, and replace old-style Qt includes, in the C++ source files (and NOT the Qt Designer UI files) in these six libraries:

   Library   File Count   
  Q3GUI   125  
  QtAccounting   34  
  QtRpl   21  
  QtRun   38  
  QtSCT   16  
  QtUtils   19  

Class substitutions:

    Qt3 Compatibility Widget Class   Qt4 Widget Class    
  Q3MainWindow   >>   QMainWindow  
  Q3Frame   >>   QFrame  
  Q3PopupMenu   >>   QMenu  
  Q3BoxLayout   >>   QBoxLayout  
  Q3VBoxLayout   >>   QVBoxLayout  
  Q3HBoxLayout   >>   QHBoxLayout  
  Q3GridLayout   >>   QGridLayout  

These Q3 compatibility widgets were placed in these files by the Qt 4.3 'qt3to4' translation tool. That was overly conservative -- the corresponding Qt4 widgets provide virtually all of the methods and functionality used in RiverWare. (There were some very minor exeptions, which were caught by by the compiler).

These classes represent a substantial majority of Qt3 compatibility widgets needing to be removed (approx. from RiverWare 5.2) -- but obviously not the most difficult to port to Qt4-proper. (Way).

Some relevant files:

      Scripts / Files   Links   Description  
  1   filesQ3GUI.txt   Text   List of modified files in Q3GUI  
  2   filesOther.txt   Text   List of modified files in QtAccounting, QtRpl, QtRun, QtSCT, and QtUtils  
  3   allDiffs.txt   Text   One of the "check" files: a list of all changed lines in the new files.  
  4   q3sFiles.sedScript   Text   A composite sed script for both class substitutions and new-style Qt includes  

--- (end) ---