Changeset View
Changeset View
Standalone View
Standalone View
krusader/MountMan/kmountmangui.cpp
Context not available. | |||||
169 | if (grp.hasKey("Last State")) | 169 | if (grp.hasKey("Last State")) | ||
---|---|---|---|---|---|
170 | mountList->header()->restoreState(grp.readEntry("Last State", QByteArray())); | 170 | mountList->header()->restoreState(grp.readEntry("Last State", QByteArray())); | ||
171 | else { | 171 | else { | ||
172 | #if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0) | ||||
173 | int i = QFontMetrics(mountList->font()).horizontalAdvance("W"); | ||||
174 | int j = QFontMetrics(mountList->font()).horizontalAdvance("0"); | ||||
175 | #else | ||||
172 | int i = QFontMetrics(mountList->font()).width("W"); | 176 | int i = QFontMetrics(mountList->font()).width("W"); | ||
173 | int j = QFontMetrics(mountList->font()).width("0"); | 177 | int j = QFontMetrics(mountList->font()).width("0"); | ||
178 | #endif | ||||
174 | j = (i > j ? i : j); | 179 | j = (i > j ? i : j); | ||
175 | 180 | | |||
176 | mountList->setColumnWidth(0, j*8); | 181 | mountList->setColumnWidth(0, j*8); | ||
Context not available. |