« Previous | Next » 

Revision 30b1daf0

ID: 30b1daf02fb1bb85d00e12844b75add73483c374
Added by Bartosz Brachaczek over 1 year ago

misc: New KaduPaths class which replaces old path-conversion global functions

Small guide how to update Kadu <=0.11-compatible code:
- Replace homePath() calls with KaduPaths::homePath().
- Replace webKitPath(path) calls with KaduPaths::webKitPath(path).
- Replace desktopFilePath() calls with KaduPaths::instance()->desktopFilePath().
- Replace dataPath("kadu/path") calls as well as dataPath() + "kadu/path"
and other variants with
KaduPaths::instance()->dataPath() + QLatin1String("path").
- Replace libPath("kadu/plugins/path") calls as well as
libPath() + "kadu/plugins/path" and other variants with
KaduPaths::instance()->pluginsLibPath() + QLatin1String("path").
- Replace profilePath("path") calls with
KaduPaths::instance()->profilePath() + QLatin1String("path").

Signed-off-by: Bartosz Brachaczek <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences