74a7044fd3
Use a less generic header name for versions
2015-02-22 15:46:25 +01:00
959d7c89a9
Port utils.cpp away from deprecated Qt API
2015-02-22 11:59:22 +01:00
b6d71f3cbf
--pedantic;
2015-02-22 10:49:29 +01:00
7dbffa0271
Add a default destructor
2015-02-21 16:26:43 +01:00
114df7aa31
Move tag downloading to a separate slot instead of a lambda
...
If tag downloading is still in progress when the application is closed,
it will try to access the instance's pointer, leading to a crash.
2015-02-21 16:13:42 +01:00
92613218e1
Bump libdanbooru version
2015-02-21 15:48:26 +01:00
b5d30ce512
Use ecm_setup_version instead of configure_file
2015-02-21 14:58:24 +01:00
8b56570223
Normalize license headers in all source files
2015-02-21 14:57:16 +01:00
ebd9e559ef
QJson is no longer used
2015-02-21 10:38:51 +01:00
7ccd845eba
Clean up debug statements
2015-02-20 23:34:12 +01:00
9b47e26bcb
Uncomment qDebugs for debugging
2015-02-15 00:58:05 +01:00
4f21002603
Fix Qt includes
2015-02-15 00:15:48 +01:00
aaf8adf560
Add a reset() function to reset the service to default settings
2015-02-14 14:45:29 +01:00
0200965e99
Add the missing method setBlacklist(const QStringList&)
...
On top of that, make nextPostPage() Q_INVOKABLE so it can be used from
QML.
2015-02-13 07:46:57 +01:00
f4566d3aca
Large refactoring of DanbooruService
...
The idea is to use a long-lived DanbooruService instance, rather than
recreating it, so move most of the parameters via setters and getters.
Still needs some adjustments for resetting.
2015-02-12 21:31:30 +01:00
d94084bc25
Add setters for board url, cache, username, and password to DanbooruService
...
Remove also a useless constructor
2015-02-08 23:52:34 +01:00
186b0fa0ff
Allow using QSet<QString> with QVariants
2015-02-08 10:17:00 +01:00
bec49f9bb7
Clean up
2015-02-07 15:19:10 +01:00
dc321e88ce
Comment out unneeded code
2015-02-07 00:03:51 +01:00
f8b59e78b5
Clean up DanbooruService
...
Remove multi_get for now (broken in kio_http)
Add a default constructor (needed for QML)
Explicitly delete posts
2015-02-05 23:47:29 +01:00
4fbfdf753e
Add a default constructor for DanbooruPost
2015-02-05 00:28:02 +01:00
f470558d20
Clean up includes
2014-10-12 14:27:44 +02:00
06f4f8d1fc
[libdanbooru/danbooruservice] This is also unneeded
2014-10-06 20:52:07 +02:00
d5e807791e
[libdanbooru/danbooruservice] These slots are unneeded now
2014-10-06 20:49:53 +02:00
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