Add Entry (qt4)
git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@24 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
@@ -36,6 +36,7 @@ header()->setResizeMode(QHeaderView::Stretch);
|
||||
|
||||
void KeepassEntryView::updateItems(){
|
||||
clear();
|
||||
Items.clear();
|
||||
if(!db)return;
|
||||
EntryViewItem *tmp=NULL;
|
||||
for(int i=0;i<db->Entries.size();i++){
|
||||
@@ -72,9 +73,11 @@ for(int i=0;i<db->Entries.size();i++){
|
||||
tmp->setText(j++,entry->BinaryDesc);}
|
||||
Items.back()->setIcon(0,EntryIcons[entry->ImageID]);
|
||||
}
|
||||
setCurrentGroup(CurrentGroup);
|
||||
}
|
||||
|
||||
void KeepassEntryView::setCurrentGroup(uint id){
|
||||
CurrentGroup=id;
|
||||
for(int i=0; i<Items.size();i++){
|
||||
setItemHidden(Items[i],(Items[i]->pEntry->GroupID != id));
|
||||
|
||||
|
||||
@@ -164,8 +164,6 @@ void KeepassGroupView::mouseMoveEvent(QMouseEvent *event){
|
||||
drag->setMimeData(mimeData);
|
||||
drag->setPixmap(DragPixmap);
|
||||
drag->start();
|
||||
|
||||
|
||||
}
|
||||
|
||||
void KeepassGroupView::updateItems(){
|
||||
|
||||
Reference in New Issue
Block a user