Changeset View
Changeset View
Standalone View
Standalone View
app/infocontextmanageritem.cpp
Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Line(s) | 112 | public: | |||
---|---|---|---|---|---|
153 | 153 | | |||
154 | static bool rowsLessThan(const Row* row1, const Row* row2) | 154 | static bool rowsLessThan(const Row* row1, const Row* row2) | ||
155 | { | 155 | { | ||
156 | return row1->keyLabel->text() < row2->keyLabel->text(); | 156 | return row1->keyLabel->text() < row2->keyLabel->text(); | ||
157 | } | 157 | } | ||
158 | 158 | | |||
159 | void finishAddRows() | 159 | void finishAddRows() | ||
160 | { | 160 | { | ||
161 | qSort(mRows.begin(), mRows.end(), KeyValueWidget::rowsLessThan); | 161 | std::sort(mRows.begin(), mRows.end(), KeyValueWidget::rowsLessThan); | ||
162 | updateGeometry(); | 162 | updateGeometry(); | ||
163 | } | 163 | } | ||
164 | 164 | | |||
165 | void layoutRows() | 165 | void layoutRows() | ||
166 | { | 166 | { | ||
167 | // Layout labels manually: I tried to use a QVBoxLayout but for some | 167 | // Layout labels manually: I tried to use a QVBoxLayout but for some | ||
168 | // reason when using software animations the widget blinks when going | 168 | // reason when using software animations the widget blinks when going | ||
169 | // from one image to another | 169 | // from one image to another | ||
▲ Show 20 Lines • Show All 214 Lines • Show Last 20 Lines |