Changeset View
Changeset View
Standalone View
Standalone View
krusader/GUI/krtreewidget.cpp
Context not available. | |||||
162 | QString tip = item->text(column); | 162 | QString tip = item->text(column); | ||
---|---|---|---|---|---|
163 | 163 | | |||
164 | int textMargin = QApplication::style()->pixelMetric(QStyle::PM_FocusFrameHMargin) + 1; | 164 | int textMargin = QApplication::style()->pixelMetric(QStyle::PM_FocusFrameHMargin) + 1; | ||
165 | #if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0) | ||||
166 | int requiredWidth = QFontMetrics(font()).horizontalAdvance(tip) + 2 * textMargin; | ||||
167 | #else | ||||
165 | int requiredWidth = QFontMetrics(font()).width(tip) + 2 * textMargin; | 168 | int requiredWidth = QFontMetrics(font()).width(tip) + 2 * textMargin; | ||
169 | #endif | ||||
166 | 170 | | |||
167 | if (column == 0 && indentation()) { | 171 | if (column == 0 && indentation()) { | ||
168 | int level = 0; | 172 | int level = 0; | ||
Context not available. |