Frameworks/Epics/Splitting kdelibs/Common Solutions: Difference between revisions
(Created page with "== KDebug == Replace KDebug by QDebug and the traces shouldn't be activated in release mode. == KWarning == Replace KWarning by QWarning and the traces shouldn't be activated ...") |
(No difference)
|
Revision as of 19:49, 3 December 2011
KDebug
Replace KDebug by QDebug and the traces shouldn't be activated in release mode.
KWarning
Replace KWarning by QWarning and the traces shouldn't be activated in release mode.
for example :
kWarning(7041) << "warning message"
Can be replaced by :
qWarning() << "warning message"
KTemporaryFile
Replace KTemporaryFile by QTemporaryFile
for example :
tmpFile = new KTemporaryFile(); tmpFile->setPrefix(QLatin1String("prefix-")); tmpFile->setSuffix(QLatin1String(".txt"));
Can be replaced by :
tmpFile = new QTemporaryFile(); tmpFile->setFileTemplate(QLatin1String("prefix-XXXXXX.txt"));
KMimeType
Working progress
KSaveFile
Working progress