Felix Geyer
ef3d7b7772
Merge branch 'modulo-bias'
...
https://github.com/keepassx/keepassx/pull/21
2013-10-12 19:12:51 +02:00
Felix Geyer
7dde8a771f
Use QUINT32_MAX in tests instead of hardcoding the number.
2013-10-12 19:11:57 +02:00
Felix Geyer
3dd4681e69
Fix EntryView not emitting activated() signals on return key press.
...
AutoTypeSelectDialog relies on this behavior.
2013-10-10 22:47:32 +02:00
Felix Geyer
98d888063b
Add tests for Random::randomUInt() and randomUIntRange().
2013-10-09 23:11:18 +02:00
Felix Geyer
9c788a6e84
Support custom backends in Random.
...
Useful for tests.
2013-10-09 22:06:32 +02:00
Felix Geyer
e087baeb48
Avoid modulo bias in Random::randomUInt().
2013-10-09 21:59:24 +02:00
Felix Geyer
b64276c4e8
Make use of the TestGui::clickIndex() helper function.
2013-10-08 22:40:47 +02:00
Felix Geyer
f7dd63a126
Add gui tests for deleting entries from the recycle bin.
2013-10-08 22:36:27 +02:00
Felix Geyer
a68a86f19b
Test that the delete action moves entries to the recycle bin.
2013-10-08 22:14:02 +02:00
Felix Geyer
984b23de70
Add tests for the multi-entry delete feature.
2013-10-08 22:11:40 +02:00
Felix Geyer
d5b70b1bef
Add a QMessageBox wrapper class to help gui tests.
...
QMessageBox displays modal dialogs which blocks the gui tests.
To work around this we add a MessageBox wrapper class where
the tests can set the answer for the next dialog.
The answer is then returned without actually showing the dialog.
2013-10-08 22:09:20 +02:00
Felix Geyer
551637f0c2
Allow removing multiple entries.
2013-10-08 21:36:01 +02:00
Felix Geyer
8778df5789
Drop entries from search results when moved to the recycle bin.
2013-10-08 21:13:20 +02:00
Felix Geyer
67338aac7b
Avoid using QApplication in core.
2013-10-08 17:37:12 +02:00
Felix Geyer
626351c5da
Add several private header files to CMakeLists.txt.
2013-10-03 16:26:01 +02:00
Felix Geyer
6504b6f2bd
Drop Qt module name from include statements.
...
This is a preparation to be able to build KeePassX against Qt 5.
2013-10-03 15:18:16 +02:00
Jens Dieskau
035271d469
Only edit entries on doubleclick (not single) or with enter key.
...
https://github.com/keepassx/keepassx/pull/19
2013-09-29 17:35:34 +02:00
Felix Geyer
5c84aa308d
Improve error messages for reading and wriiting databases.
...
Closes #7
2013-06-30 14:43:02 +02:00
Felix Geyer
e1c82a4453
Print a cmake feature log.
...
This let's users know when the dependnecies for auto-type are missing.
Available only in cmake >= 2.8.3.
Closes #71
2013-06-30 14:07:25 +02:00
Felix Geyer
db6ac26794
Initialize variables to silence compiler warnings.
2013-05-01 12:03:03 +02:00
Felix Geyer
a505d85792
Fix compatbility with clang 3.2.
...
Pass --param=ssp-buffer-size=4 to clang instead of
-mllvm -stack-protector-buffer-size=4 which clang 3.2 doesn't seem
to support anymore.
2013-04-30 18:38:44 +02:00
Felix Geyer
6df30df992
Really fix parsing when the db contains two Root (Group) elements.
2013-04-30 17:04:54 +02:00
Felix Geyer
0ec29b2354
Raise error if we don't find exactly one root group.
2013-04-29 22:31:50 +02:00
Felix Geyer
f1bebe904a
Add tests for broken databases.
...
Make sure we detect the error and don't crash.
2013-04-29 22:31:50 +02:00
Felix Geyer
e16720d06d
When parsing make sure that databases contain at least the root group.
2013-04-29 22:31:50 +02:00
Felix Geyer
3be7fa6b3b
Raise error when required xml elements are missing.
2013-04-29 22:31:50 +02:00
Felix Geyer
e99e3ae6ca
Initalize SymmetricCipherGcrypt::m_blockSize.
2013-04-29 22:31:50 +02:00
Felix Geyer
d182586557
Make sure KeePass1Reader::key() isn't used before the variables are set.
2013-04-29 22:31:50 +02:00
Felix Geyer
1f5564760f
Make sure groupId and groupLevel are set in KeePass1Reader::readGroup().
2013-04-29 22:31:50 +02:00
Felix Geyer
2be045eb8f
Initalize m_database in EditGroupWidget ctor.
2013-04-29 22:31:50 +02:00
Felix Geyer
7a89510916
Make more key/value-type functions safe against reordered xml elements.
2013-04-29 22:31:50 +02:00
Felix Geyer
5588792344
Make KeePass2XmlReader::parseGroup() safe against reordered xml elements.
2013-04-29 22:31:50 +02:00
Felix Geyer
3acb33e05a
Make KeePass2XmlReader::parseEntry() safe against reordered xml elements.
2013-04-29 22:31:50 +02:00
Felix Geyer
61ee763515
Add Entry::copyDataFrom().
2013-04-29 22:31:49 +02:00
Felix Geyer
3658a65380
Use Q_NULLPTR instead of 0.
2013-04-29 22:31:49 +02:00
Felix Geyer
fd18bc0330
Use standard GNU install dirs and make them overridable.
2013-04-29 22:17:31 +02:00
Florian Geyer
b499a6df77
Fix coding style.
2013-04-27 11:40:10 +02:00
Florian Geyer
cabec57631
Make argument keys immutable.
2013-04-27 11:40:10 +02:00
Florian Geyer
63f7a0685f
Small ArgumentParser refactoring.
2013-04-27 11:40:10 +02:00
Florian Geyer
94e6d3f89b
Fix coding style.
2013-04-27 11:23:51 +02:00
Florian Geyer
94ac9c9ea1
Rename config key for last opened databases.
2013-04-27 11:22:38 +02:00
Florian Geyer
bbf183bef7
Add settings option to control if previous databases are opened on startup.
...
Closes #36
2013-04-18 22:42:22 +02:00
Florian Geyer
6f92188323
Open last used databases on startup.
...
Refs #36
2013-04-18 22:37:04 +02:00
Florian Geyer
f0985ff9d9
Remember opened databases on quit.
...
Refs #36
2013-04-18 21:52:08 +02:00
Florian Geyer
ba3baf3595
Open EditEntryWidget when empty url column is activated.
2013-04-14 19:14:06 +02:00
Florian Geyer
34c6b416b0
Add enum for EntryModel column.
2013-04-07 22:17:32 +02:00
Florian Geyer
bf906a7867
Open url when an entry is activated via its url column.
...
Closes #55
2013-04-07 22:17:32 +02:00
Felix Geyer
5786e2620a
Add unit test for Metadata::copyCustomIcons().
2013-04-07 19:38:18 +02:00
Felix Geyer
fe42861bed
Add safety check so we don't insert empty icons.
2013-04-07 19:37:44 +02:00
Felix Geyer
5a96e19ce9
Copy custom icons when copying/moving entries/groups to another database.
2013-04-07 18:32:43 +02:00