Diffstat (limited to 'pwmanager/pwmanager/pwmview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/pwmanager/pwmview.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/pwmview.cpp b/pwmanager/pwmanager/pwmview.cpp index 5aaf66e..7733028 100644 --- a/pwmanager/pwmanager/pwmview.cpp +++ b/pwmanager/pwmanager/pwmview.cpp | |||
@@ -260,6 +260,16 @@ void PwMView::shiftToView() | |||
260 | // shift tempoary data to ListView. | 260 | // shift tempoary data to ListView. |
261 | tmpDisableSort(); | 261 | tmpDisableSort(); |
262 | lv->clear(); | 262 | lv->clear(); |
263 | |||
264 | //US ENH: adjust the headers of the table according the category texts | ||
265 | { | ||
266 | PwMCategoryItem* catItem = doc->getCategoryEntry(catDocIndex); | ||
267 | // qDebug("PwMView::ShiftToView CAT: %i, %s", catDocIndex, catItem->name.c_str()); | ||
268 | lv->setColumnText(COLUMN_DESC, catItem->desc_text.c_str()); | ||
269 | lv->setColumnText(COLUMN_NAME, catItem->name_text.c_str()); | ||
270 | lv->setColumnText(COLUMN_PW, catItem->pw_text.c_str()); | ||
271 | } | ||
272 | |||
263 | QCheckListItem *newItem; | 273 | QCheckListItem *newItem; |
264 | vector<PwMDataItem>::iterator it = tmpSorted.begin(), | 274 | vector<PwMDataItem>::iterator it = tmpSorted.begin(), |
265 | end = tmpSorted.end(); | 275 | end = tmpSorted.end(); |