Commit graph

98 commits

Author SHA1 Message Date
39aac8c95b Run astyle-kdelibs on the source 2014-10-05 09:53:19 +02:00
4b85d63d68 Use lambdas for most of the jobs 2014-10-05 09:51:26 +02:00
3f760a7690 [libdanbooru/danbooruservice] Move thumbnail downloading to a lambda
slot

This greatly reduces complexity and prevents the ugly passing of
properties along the jobs.
2014-10-04 15:36:10 +02:00
66cd4f46d1 [libdanbooru/utils] Add a convenience function to check if a post is
unwanted

This is mainly done to reduce the complexity of the post handing in
DanbooruService.
2014-10-04 15:35:03 +02:00
d99fd19d22 [danbooruservice] Check the blacklist outside the loop
Otherwise we keep on accessing a deleted post and we crash
2014-10-04 11:13:32 +02:00
fe630c753e Suppress "discards qualifiers" warning 2014-10-04 11:08:22 +02:00
8545ad84a8 Don't create a temporary QSet to check the blacklist 2014-10-04 11:07:41 +02:00
02b7e0b9bc Port to Qt5's internal JSON parser
Unfortunately the QVariant conversions need to be done as we still need
to handle the XML part
2014-10-04 11:05:02 +02:00
ce6a1cbcff [libdanbooru/danbooruservice] Fixup types and flags 2014-10-04 00:41:01 +02:00
324bacda52 [libdanbooru] Fixup QFlags 2014-10-04 00:40:37 +02:00
d96b7bdaf2 [libdanbooru] First stab at making everything compile 2014-10-04 00:04:02 +02:00
2ab1c72a7e [libdanbooru] Fix type for tags 2014-10-04 00:03:24 +02:00
f22c0b6d94 Move to the new rating structure 2014-10-04 00:03:01 +02:00
25ee41c5e8 [libdanbooru] libdanbooru needs KIO 2014-10-04 00:02:25 +02:00
8e2e9ecbc3 Convert to the new signal-slot syntax 2014-10-03 23:17:52 +02:00
d7fec181e2 KUrl -> QUrl 2014-10-03 23:06:43 +02:00
a568beac2a kDebug / qDebug 2014-10-03 23:00:55 +02:00
2d8d230170 Port to KF5, step 1: CMakeLists 2014-10-03 22:52:38 +02:00
6533b64a22 Initial work to make enums saner 2014-08-29 10:13:53 +02:00
bcecd30031 Coding style 2014-08-28 09:46:59 +02:00
1de6786a9e Move the tag types where they belong 2014-08-28 09:45:36 +02:00
9a49a1830a Move the tag and rating information
Perhaps tags should be made a struct instead, but for the moment they've been moved, along with the ratings, to DanbooruPost as they're properties of the post.
2014-08-28 09:24:45 +02:00
f5aa505e0b Use the preferred way for Qt includes
This is to pave the way for the planned KF5 port
2014-08-28 09:21:24 +02:00
b58c6c36e6 Reformat for coding style 2014-08-28 09:20:06 +02:00
061251bc26 Get rid of QPixmap pointers
According to my understanding of Qt documentation, there should be no need to
manually create QPixmap with new and delete. This also makes things simpler for the model.
2014-08-28 09:19:20 +02:00
259696741c Use the plain include (<foo> instead of <bar/foo>) 2013-12-26 17:55:24 +01:00
8b9e31d8e4 Convert to C++11 style for loops 2013-12-26 14:34:51 +01:00
92af974894 Use C++11 for syntax 2013-12-24 10:25:43 +01:00
1886dbf53c Switch to QVector instead of QList. Insertions aren't really needed. 2013-07-20 11:44:27 +02:00
cfbfef9651 Minor 2013-07-14 11:32:01 +02:00
3fe9e74058 Adjust CMakelists 2013-07-14 11:31:47 +02:00
e74c73db3c Be quiet 2013-06-09 17:12:30 +02:00
89632643aa Updated documentation 2013-06-09 17:12:04 +02:00
5a10b663d2 qDebug/kDebug 2013-06-09 17:11:33 +02:00
e9fde425df Support an image cache like the Python version does 2013-04-01 11:31:52 +02:00
601975a6fd Some comments 2013-04-01 10:28:43 +02:00
aeba76cd06 - Implement related tags in the Danbooru interface;
- Fix return types due to utils change
2013-03-23 16:31:55 +01:00
a2c1f6d46f Less whitespace 2013-03-23 16:30:58 +01:00
41136fb89b Be more relaxed in the return type, some may be maps, hence return directly a QVariant. 2013-03-23 16:30:30 +01:00
869620d6f6 Implement most missing functions 2013-03-17 12:00:30 +01:00
816b370302 Implement ratings, blacklists, add some const correctness 2013-03-17 11:59:15 +01:00
f442c2f605 Add a convenience function to do the parsing, handling XML and JSON
cases
2013-03-17 11:58:14 +01:00
ed7b5b06d3 Add a function to add posts to pools (unsure if it'll be ever used...) 2013-03-17 11:57:27 +01:00
25fff7f879 Generate version.h 2013-03-17 11:56:35 +01:00
11fbc8a3b6 Template for libdanbooru version 2013-03-17 11:55:11 +01:00
299137a250 Class to represent tags 2013-03-17 11:54:54 +01:00
7130c3f6ad Standard namespace and flags 2013-03-17 11:54:36 +01:00
fc691a9301 First semi-working implementation in c++ of remote Danbooru calls 2013-02-24 18:28:37 +01:00