diff --git a/share/keepass/icons/key.png b/share/keepass/icons/key.png index d6c284a..594ffbf 100755 Binary files a/share/keepass/icons/key.png and b/share/keepass/icons/key.png differ diff --git a/src/PwManager.cpp b/src/PwManager.cpp index de1177f..4dce23f 100755 --- a/src/PwManager.cpp +++ b/src/PwManager.cpp @@ -49,8 +49,8 @@ else return QString(tr("Unknown Error")); QString PwDatabase::getErrors(){ QString r; for(int i=0; iOldImgID=entry->ImageID; + entry->ImageID=Icon; + } } for(int i=0;iBinaryDesc="bin-stream"; e->Title="Meta-Info"; e->UserName="SYSTEM"; -e->Additional="KPX_CUSTOM_ICONS"; +e->Additional="KPX_CUSTOM_ICONS_2"; e->URL="$"; e->ImageID=0; +if(Groups.size())e->GroupID=Groups[0].ID; int Size=12; quint32 NumEntries=Entries.size(); quint32 NumGroups=Groups.size(); -Size+=8*(NumEntries+NumGroups); +Size+=8*NumGroups+20*NumEntries; Size+=CustomIcons.size()*1000; // 1KB e->BinaryData.reserve(Size); e->BinaryData.resize(12); @@ -327,11 +344,11 @@ for(int i=0;iBinaryData.append(png); } for(quint32 i=0;iBinaryData.append(QByteArray::fromRawData(Bin,8)); + memcpyToLEnd32(Bin+16,&id); + e->BinaryData.append(QByteArray::fromRawData(Bin,20)); } for(quint32 i=0;i getChildIds(CGroup* pGroup); CEntry& entry(unsigned long index); + CEntry* getEntry(const KpxUuid& uuid); void setEntry(unsigned long index,CEntry& Entry); int numEntries(); CEntry* cloneEntry(CEntry* pEntry); diff --git a/src/forms/EditGroupDlg.ui b/src/forms/EditGroupDlg.ui index 482e5e5..81fb52d 100644 --- a/src/forms/EditGroupDlg.ui +++ b/src/forms/EditGroupDlg.ui @@ -8,135 +8,147 @@ 0 0 - 302 - 105 + 350 + 120 + + + 0 + 0 + 0 + 0 + + - 302 - 105 + 350 + 120 - 302 - 105 + 350 + 120 Group Properties - - - - 70 - 10 - 230 - 21 - - - - - - - 10 - 10 - 27 - 20 - - - - Title: - - - - - - 10 - 40 - 43 - 20 - - - - Icon: - - - - - - 10 - 62 - 290 - 16 - - - - QFrame::HLine - - - QFrame::Sunken - - - Qt::Horizontal - - - - - - 140 - 76 - 70 - 24 - - - - O&K - - - Alt+K - - - - - - 220 - 76 - 70 - 24 - - - - &Cancel - - - Alt+C - - - - - - 68 - 37 - 62 - 26 - - - - - - - 135 - 38 - 21 - 23 - - - - > - - + + + 9 + + + 6 + + + + + 0 + + + 6 + + + + + Icon: + + + + + + + Title: + + + + + + + + + + Qt::Horizontal + + + + 172 + 20 + + + + + + + + + + + > + + + + + + + + + QFrame::HLine + + + QFrame::Sunken + + + Qt::Horizontal + + + + + + + 0 + + + 6 + + + + + Qt::Horizontal + + + + 121 + 20 + + + + + + + + O&K + + + Alt+K + + + + + + + &Cancel + + + Alt+C + + + + + + qPixmapFromMimeSource diff --git a/src/lib/GroupView.cpp b/src/lib/GroupView.cpp index be1d128..e9c9595 100644 --- a/src/lib/GroupView.cpp +++ b/src/lib/GroupView.cpp @@ -89,6 +89,7 @@ if(DragType==GROUP){ item->setFont(0,f); LastHoverItem=item; event->setAccepted(true); + ///@FIXME does not work for top level groups } else{ LastHoverItem=NULL; @@ -277,7 +278,7 @@ QPen pen(QColor(100,100,100)); pen.setWidth(2); pen.setStyle(Qt::DotLine); painter.setPen(pen); -qDebug("UPDATE: (%i,%i) %ix%i",event->rect().x(),event->rect().y(),event->rect().width(),event->rect().height()); +//qDebug("UPDATE: (%i,%i) %ix%i",event->rect().x(),event->rect().y(),event->rect().width(),event->rect().height()); if(!InsertionMarker.isNull()){ painter.drawLine(InsertionMarker); } diff --git a/src/main.cpp b/src/main.cpp index d7413a8..0fa8b7f 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -202,10 +202,14 @@ if(color1!=color2){ else{ banner_pixmap->fill(color1); } -painter.drawPixmap(10,10,*symbol); +QPixmap icon(32,32); +icon.fill(textcolor); +icon.setAlphaChannel(*symbol); +painter.drawPixmap(10,10,icon); + pen.setColor(textcolor); painter.setPen(pen); -painter.drawText(50,30,text); +painter.drawText(50,35,text); Banner->setPixmap(*banner_pixmap); }