summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/pwmview.cpp
authorulf69 <ulf69>2004-10-29 04:49:32 (UTC)
committer ulf69 <ulf69>2004-10-29 04:49:32 (UTC)
commit08a4582f8e5184b8abb7d97781c4fc37ee7edf90 (patch) (unidiff)
tree5131fbfb3992196cf9f4108f7d81b37365104a7d /pwmanager/pwmanager/pwmview.cpp
parentf8dd437160acec2959c462dd43d87f2a0920c0b9 (diff)
downloadkdepimpi-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.cpp10
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();