author | ulf69 <ulf69> | 2004-10-29 04:49:32 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-10-29 04:49:32 (UTC) |
commit | 08a4582f8e5184b8abb7d97781c4fc37ee7edf90 (patch) (side-by-side diff) | |
tree | 5131fbfb3992196cf9f4108f7d81b37365104a7d /pwmanager/pwmanager/pwmview.cpp | |
parent | f8dd437160acec2959c462dd43d87f2a0920c0b9 (diff) | |
download | kdepimpi-08a4582f8e5184b8abb7d97781c4fc37ee7edf90.zip kdepimpi-08a4582f8e5184b8abb7d97781c4fc37ee7edf90.tar.gz kdepimpi-08a4582f8e5184b8abb7d97781c4fc37ee7edf90.tar.bz2 |
added category edit feature
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() // shift tempoary data to ListView. tmpDisableSort(); lv->clear(); + + //US ENH: adjust the headers of the table according the category texts + { + PwMCategoryItem* catItem = doc->getCategoryEntry(catDocIndex); + // qDebug("PwMView::ShiftToView CAT: %i, %s", catDocIndex, catItem->name.c_str()); + lv->setColumnText(COLUMN_DESC, catItem->desc_text.c_str()); + lv->setColumnText(COLUMN_NAME, catItem->name_text.c_str()); + lv->setColumnText(COLUMN_PW, catItem->pw_text.c_str()); + } + QCheckListItem *newItem; vector<PwMDataItem>::iterator it = tmpSorted.begin(), end = tmpSorted.end(); |