Commit Graph

468 Commits

Author SHA1 Message Date
Felix Geyer
72defa375d Coding style fixes. 2012-04-22 00:29:16 +02:00
Florian Geyer
c8ad27975a Clean up deleted objects test (again). 2012-04-22 00:11:17 +02:00
Florian Geyer
0d80a726fa Clean up deleted objects test. 2012-04-22 00:11:17 +02:00
Florian Geyer
5dc21a191b Clean up group deletion. 2012-04-22 00:11:17 +02:00
Florian Geyer
cc8d6424e2 Add test for deleted objects. 2012-04-22 00:11:17 +02:00
Florian Geyer
9726046e24 Display current tab name in window title. 2012-04-22 00:11:17 +02:00
Florian Geyer
e7d0dfbd26 Ask before closing database when in edit mode.
Fixes #12
2012-04-22 00:11:17 +02:00
Florian Geyer
8467e7756d Add ability to delete groups via gui. 2012-04-22 00:11:17 +02:00
Felix Geyer
19bacd6737 Use QPointer for Entry::m_lastTopVisibleEntry.
Closes #14
2012-04-22 00:10:04 +02:00
Felix Geyer
a3e7c93b59 Store group references in Metadata as QPointer.
QPointer sets itself to 0 when the referenced object has been deleted.

Refs #14
2012-04-22 00:07:27 +02:00
Felix Geyer
96146d9e80 Support different C/C++ compiler.
For example gcc as the C compiler and clang for C++.
2012-04-21 19:47:39 +02:00
Felix Geyer
19a5aad90a Declare the TypeInfo for some classes/structs.
Qt's container classes benefit from this information.
2012-04-21 18:39:09 +02:00
Florian Geyer
db52267400 Clear keys in assignment operator of composite key.
Fixes corruption of key if master key and then transform rounds is changed.
2012-04-21 18:28:06 +02:00
Florian Geyer
4e2407b3ba Fix groupChanged signal not emitted in all cases. 2012-04-21 18:26:18 +02:00
Florian Geyer
b1db565bee Hide the tar bar when only one database is opened.
Closes #10
2012-04-21 18:24:30 +02:00
Florian Geyer
e06937287c Make toggle password button in ChangeMasterKey widget work. 2012-04-21 17:28:44 +02:00
Florian Geyer
26c4dedd01 Add more options to database settings widget. 2012-04-21 17:28:44 +02:00
Florian Geyer
258af265c7 Save reference to deleted entries in deletedObject list. 2012-04-21 17:28:44 +02:00
Florian Geyer
1fc5f7a69f Add database settings widget and ability to change transform rounds count. 2012-04-21 17:28:44 +02:00
Felix Geyer
8acd6f74d8 Support KeePass format 3.00 (used by KeePass2 >= 2.15).
Closes #6

Attachments are now stored in a pool under Metadata instead of in entries.
The protected flag of attachments isn't supported anymore.
New metadata attributes: color, historyMaxItems and historyMaxSize.
Dropped metadata attribute: autoEnableVisualHiding.
2012-04-21 16:45:46 +02:00
Florian Geyer
e8ac70120b Delete entries for good if already in recycle bin 2012-04-19 01:02:23 +02:00
Florian Geyer
f8e2c95162 Add hasChild function to check for a child in a QObject tree. 2012-04-19 01:02:23 +02:00
Felix Geyer
246bc0115e More coding style fixes. 2012-04-19 00:25:57 +02:00
Felix Geyer
3d1fc6cd6d Set the group of the entry in Database::recycleEntry().
Drop Metadata::addEntryToRecycleBin() and add a non-const
Metadata::recycleBin() getter instead.
2012-04-18 23:27:14 +02:00
Florian Geyer
8735a4846c Move deleted entries to recycle bin if enabled. 2012-04-18 23:09:00 +02:00
Florian Geyer
5661f29f7d Add ability to delete entries via gui. 2012-04-18 23:06:21 +02:00
Felix Geyer
37291d278e Fix some more lines that are too long. 2012-04-18 23:05:31 +02:00
Felix Geyer
2e011d5362 Improve code style. 2012-04-18 22:08:22 +02:00
Felix Geyer
4e5e5c71ca Support gcc Link Time Optimization. 2012-04-18 20:18:48 +02:00
Felix Geyer
0791b43da9 TestGroup: Register Entry as a meta type. 2012-04-18 17:42:55 +02:00
Felix Geyer
134f9a663e Test that modified() is emitted when deleting Groups and Entries. 2012-04-18 17:31:05 +02:00
Felix Geyer
433e8c4508 Simplify TestModified a bit. 2012-04-18 17:26:32 +02:00
Felix Geyer
cfe5b48bfd Handle Group::setIcon() manually instead of calling set().
That way we don't emit modified() in between setting the attributes.
2012-04-18 17:14:51 +02:00
Felix Geyer
ca5dd373ed Only disconnect m_db when it exists.
Previously we disconnected everyone when m_db == 0.
2012-04-18 17:07:40 +02:00
Florian Geyer
84d9d2ec47 Update timeinfo of group only when properties of the group itself change. 2012-04-18 17:03:58 +02:00
Florian Geyer
34204f3281 Disconnect entry from database, when removed. 2012-04-18 17:03:58 +02:00
Florian Geyer
89f138a868 Remove unnecessary currentIndexChanged signal in database widget. 2012-04-18 17:03:58 +02:00
Florian Geyer
3b603f685a Display expiry time in local time, but save in utc. 2012-04-18 17:03:58 +02:00
Florian Geyer
48f8b1a116 Do not partly update an entry when different passwords are supplied. 2012-04-18 17:03:58 +02:00
Florian Geyer
d85e5d7560 Update connection of modified signals of entries when a parent group changes database. 2012-04-18 17:03:58 +02:00
Florian Geyer
ec3cca1f77 Add test for modified signals. 2012-04-18 17:03:58 +02:00
Florian Geyer
d73cbafb8e Add slot to update the timeinfo of a group and connect it on modified signal.
Connect modified signal of entries directly to database, so timeinfo of group is not updated.
2012-04-18 17:03:58 +02:00
Florian Geyer
9dc362c97e Add tabstop order for EditEntryWidgetMain. 2012-04-18 17:03:58 +02:00
Florian Geyer
7c70eccaf7 Add password repeat check for entry passwords. 2012-04-18 17:03:58 +02:00
Florian Geyer
fc8f1231c6 Fix expiry time and bool not being updated. 2012-04-18 17:03:58 +02:00
Florian Geyer
e1632e8087 Disable timeinfo update for history entries on database parsing. 2012-04-18 17:03:57 +02:00
Florian Geyer
46bbabbe3c Use UTC time spec. 2012-04-18 17:03:57 +02:00
Florian Geyer
ad865774d1 Add slot to update the timeinfo of an entry and connect it on modified signal. 2012-04-18 17:03:57 +02:00
Florian Geyer
900420630d Fix checking if database has a key. 2012-04-18 17:03:57 +02:00
Florian Geyer
26436d764a Remove duplicate connect on currentChanged signal of the tab widget. 2012-04-18 17:03:57 +02:00