Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/KReportHTMLCSSRenderer_p.cpp
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 41 | { | |||
---|---|---|---|---|---|
49 | QTextStream out(&tempHtmlFile); | 49 | QTextStream out(&tempHtmlFile); | ||
50 | 50 | | |||
51 | QString dirSuffix = QLatin1String(".files"); | 51 | QString dirSuffix = QLatin1String(".files"); | ||
52 | QDir tempDir; | 52 | QDir tempDir; | ||
53 | QFileInfo fi(tempHtmlFile); | 53 | QFileInfo fi(tempHtmlFile); | ||
54 | 54 | | |||
55 | QString tempFileName = fi.absoluteFilePath(); | 55 | QString tempFileName = fi.absoluteFilePath(); | ||
56 | m_tempDirName = tempFileName + dirSuffix; | 56 | m_tempDirName = tempFileName + dirSuffix; | ||
57 | m_actualDirName = context.destinationUrl.fileName() + dirSuffix; | 57 | m_actualDirName = context.url().fileName() + dirSuffix; | ||
58 | 58 | | |||
59 | if (!tempDir.mkpath(m_tempDirName)) | 59 | if (!tempDir.mkpath(m_tempDirName)) | ||
60 | return false; | 60 | return false; | ||
61 | 61 | | |||
62 | out << renderCSS(document); | 62 | out << renderCSS(document); | ||
63 | 63 | | |||
64 | out.flush(); | 64 | out.flush(); | ||
65 | tempHtmlFile.close(); | 65 | tempHtmlFile.close(); | ||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |