author | ulf69 <ulf69> | 2004-10-19 00:47:53 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-10-19 00:47:53 (UTC) |
commit | 08c6df8a9f7804278ac4029299d9d6de51976856 (patch) (unidiff) | |
tree | 95fc8b69fc8ecaf683e7a62e4305b41f67b48b53 | |
parent | 0f35c6660ed4c304b7c75f2a607f0f27ba436601 (diff) | |
download | kdepimpi-08c6df8a9f7804278ac4029299d9d6de51976856.zip kdepimpi-08c6df8a9f7804278ac4029299d9d6de51976856.tar.gz kdepimpi-08c6df8a9f7804278ac4029299d9d6de51976856.tar.bz2 |
added lastupdate info and removed debug output
-rw-r--r-- | pwmanager/pwmanager/pwmview.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/pwmview.cpp b/pwmanager/pwmanager/pwmview.cpp index e53124f..5aaf66e 100644 --- a/pwmanager/pwmanager/pwmview.cpp +++ b/pwmanager/pwmanager/pwmview.cpp | |||
@@ -250,12 +250,13 @@ void PwMView::shiftToView() | |||
250 | currItem.clear(); | 250 | currItem.clear(); |
251 | tmpSorted.insert(tmpSorted.begin(), entries, currItem); | 251 | tmpSorted.insert(tmpSorted.begin(), entries, currItem); |
252 | 252 | ||
253 | // Sort items and store them in tempoary tmpSorted. | 253 | // Sort items and store them in tempoary tmpSorted. |
254 | for (i = 0; i < entries; ++i) { | 254 | for (i = 0; i < entries; ++i) { |
255 | doc->getEntry(catDocIndex, i, &currItem); | 255 | doc->getEntry(catDocIndex, i, &currItem); |
256 | //qDebug("PwMView::shiftToView: %s, %i", currItem.desc.c_str(), currItem.listViewPos); | ||
256 | tmpSorted[currItem.listViewPos] = currItem; | 257 | tmpSorted[currItem.listViewPos] = currItem; |
257 | } | 258 | } |
258 | 259 | ||
259 | // shift tempoary data to ListView. | 260 | // shift tempoary data to ListView. |
260 | tmpDisableSort(); | 261 | tmpDisableSort(); |
261 | lv->clear(); | 262 | lv->clear(); |
@@ -489,12 +490,16 @@ void PwMDataItemView::setPwMDataItem( const PwMDataItem& a ) | |||
489 | 490 | ||
490 | QString dynamicPart; | 491 | QString dynamicPart; |
491 | QString format = "<tr><td align=\"right\"><b>%1</b></td>" | 492 | QString format = "<tr><td align=\"right\"><b>%1</b></td>" |
492 | "<td align=\"left\">%2</td></tr>"; | 493 | "<td align=\"left\">%2</td></tr>"; |
493 | 494 | ||
494 | dynamicPart += format | 495 | dynamicPart += format |
496 | .arg( i18n("LastUpdate") ) | ||
497 | .arg( mItem.meta.update.toString().latin1() ); | ||
498 | |||
499 | dynamicPart += format | ||
495 | .arg( i18n("Description") ) | 500 | .arg( i18n("Description") ) |
496 | .arg( mItem.desc.c_str() ); | 501 | .arg( mItem.desc.c_str() ); |
497 | 502 | ||
498 | dynamicPart += format | 503 | dynamicPart += format |
499 | .arg( i18n("Name") ) | 504 | .arg( i18n("Name") ) |
500 | .arg( mItem.name.c_str() ); | 505 | .arg( mItem.name.c_str() ); |