Commit Graph
24 Commits
Author SHA1 Message Date
Felix Geyer 33b4cd8636 Don't add new entries to EntryModel when in search mode.
Only allow moving entries from one group to the other.
2012-07-21 22:21:49 +02:00
Florian Geyer 60e65bec35 Add search test. 2012-05-13 19:21:23 +02:00
Felix Geyer de4b90cdf1 Copy custom icons when moved to another database.
Closes #9
2012-04-27 11:22:02 +02:00
Florian Geyer 93c231ec2b Extend group test. 2012-04-25 19:41:46 +02:00
Felix Geyer 0d20955920 Fix bug where index is wrong when a group is moved to the end from the same parent.
This triggered the bug:
group->setParent(group->parentGroup());

Then index was group->parentGroup()->children().size() instead of size()-1.
2012-04-25 00:10:06 +02:00
Felix Geyer bddc29101c Introduce Group::aboutToMove() and moved() signals.
Emit them instead of remove/add when groups are moved within
a database.
2012-04-23 16:57:08 +02:00
Felix Geyer 72defa375d Coding style fixes. 2012-04-22 00:29:16 +02:00
Florian Geyer 5dc21a191b Clean up group deletion. 2012-04-22 00:11:17 +02:00
Felix Geyer 0791b43da9 TestGroup: Register Entry as a meta type. 2012-04-18 17:42:55 +02:00
Felix Geyer a61057d7f6 Core tests instantiate QCoreApplication instead of QApplication.
This way they can be used without a running X server.
2012-01-01 22:04:27 +01:00
Felix Geyer ac60f7ce70 Add missing crypto initalization in tests. 2011-11-12 20:00:19 +01:00
Felix Geyer 027362be76 Notify entry/group parent on deletion.
Also make the root group pseudo static, i.e. it shouldn't be changed
after the database has been fully constructed.
2011-07-09 21:54:01 +02:00
Felix Geyer 4dbdc4d847 Make some Group methods private. 2011-07-08 13:57:02 +02:00
Felix Geyer a104e859cf Clean up objects in the tests. 2011-06-29 18:40:26 +02:00
Felix Geyer 230d24a123 No longer use automoc. 2010-11-21 23:06:30 +01:00
Felix Geyer c93ac9f6fc Move qRegisterMetaType calls into initTestCase(). 2010-09-18 17:15:22 +02:00
Felix Geyer e96c3bb011 Un-constify Entry* and Group* in various related signals and models/views. 2010-08-23 21:30:20 +02:00
Felix Geyer 8d623f37ca Add EntryModel. 2010-08-18 16:22:48 +02:00
Felix Geyer 48c498890f Use QCOMPARE instead of QVERIFY where possible. 2010-08-18 11:05:46 +02:00
Felix Geyer 623b325fa1 Implement support for group tree changes in GroupModel. 2010-08-18 10:27:40 +02:00
Felix Geyer e28ed4891b Add signal for changes in Group. 2010-08-15 15:03:47 +02:00
Felix Geyer 072a8ccf1b Add GroupModel and corresponding unit test. 2010-08-15 12:31:48 +02:00
Felix Geyer 9b0ba46b31 Add more tests. 2010-08-14 14:26:25 +02:00
Felix Geyer bd1ea05017 Fix parser and add unit tests. 2010-08-13 18:08:06 +02:00