Porting to TDE

From Trinity Desktop Project Wiki
Revision as of 15:59, 16 February 2022 by Blu256 (talk | contribs) (→‎Widget styles: Added notes about important changes)
Jump to navigation Jump to search
Konqi.png
To-do
This section has not been written/completed yet. You can contribute to Trinity by writing or finalizing this section.

This page is intended to provide generic instructions for porting old KDE3 software to the Trinity libraries.

Build system

Software

Widget styles

The TQt Style API has undergone some important changes, so porting a widget style to TDE will entail a little more than just running scripts.

Keep the following changes in mind:

  • Most functions' definitions have changed;
  • The usage of the widget argument is deprecated in favor of specifying widget parameters via ceData and elementFlags;
  • SH_UnderlineAccelerator has been extended with a new style hint, SH_HideUnderlineAcceleratorWhenAltUp.

Porting an existing style to the new API is relatively straightforward; simply update the function definitions in the existing style with the new definition prototypes and cast the passed pointer to TQWidget or TQObject where appropriate.

Messagebox warning.png
Warning!
The TQt API docs do not currently seem to reflect these changes.

Window decorations