Changeset View
Changeset View
Standalone View
Standalone View
krusader/DiskUsage/radialMap/segmentTip.cpp
Context not available. | |||||
32 | #include <KI18n/KLocalizedString> | 32 | #include <KI18n/KLocalizedString> | ||
---|---|---|---|---|---|
33 | 33 | | |||
34 | #include "fileTree.h" | 34 | #include "fileTree.h" | ||
35 | #include "../compat.h" | ||||
35 | 36 | | |||
36 | namespace RadialMap | 37 | namespace RadialMap | ||
37 | { | 38 | { | ||
Context not available. | |||||
131 | 132 | | |||
132 | if (pc > 0) s3 += QString(" (%1%)").arg(loc.toString(pc)); | 133 | if (pc > 0) s3 += QString(" (%1%)").arg(loc.toString(pc)); | ||
133 | 134 | | |||
134 | maxw = fontMetrics().width(s3); | 135 | maxw = fontMetrics().QFONTMETRICS_WIDTH(s3); | ||
135 | h += fontMetrics().height(); | 136 | h += fontMetrics().height(); | ||
136 | m_text += '\n'; | 137 | m_text += '\n'; | ||
137 | m_text += s3; | 138 | m_text += s3; | ||
138 | } | 139 | } | ||
139 | 140 | | |||
140 | uint | 141 | uint | ||
141 | w = fontMetrics().width(s1); if (w > maxw) maxw = w; | 142 | w = fontMetrics().QFONTMETRICS_WIDTH(s1); if (w > maxw) maxw = w; | ||
142 | w = fontMetrics().width(s2); if (w > maxw) maxw = w; | 143 | w = fontMetrics().QFONTMETRICS_WIDTH(s2); if (w > maxw) maxw = w; | ||
143 | 144 | | |||
144 | resize(maxw + 2 * MARGIN, h); | 145 | resize(maxw + 2 * MARGIN, h); | ||
145 | } | 146 | } | ||
Context not available. |