76330d4416
Support for minimum height and width in libdanbooru
...
This will allow to filter posts with less than required minimum height
and width.
Currently this is done client-side, I don't plan on doing checks on the
API until/if the multiple API branch is merged.
2016-05-01 12:09:06 +02:00
e98d99a5e1
Fix all Clazy issues up to level 1
2016-01-30 16:30:07 +01:00
8de329abeb
Uniform version for KF5, now that KFileMetadata is a framework
2015-12-17 22:26:05 +01:00
7854974891
Line up text with the thumbnail
2015-12-17 22:25:49 +01:00
857d34c422
Add a copy to clipboard button (fixes issue #2 )
2015-12-09 00:05:16 +01:00
1397dcc61c
Enable HiDPI support
...
Reference: issue #3
(cherry picked from commit 63d2dfdf9c
)
2015-12-08 23:22:06 +01:00
63d2dfdf9c
Enable HiDPI support
...
Reference: issue #3
2015-12-08 23:13:29 +01:00
25980bf20e
Merge branch 'master' into multiple_apis
2015-12-08 00:43:13 +01:00
a560b6f7c8
Use KRecentDirs to "remember" the right directory for saving
2015-12-03 07:36:43 +01:00
fa9bc0918e
Update CMakeLists with the right KIO link
...
Needed to use KFileWidget.
2015-12-02 00:45:11 +01:00
ea20a7c157
Use AA_DontCreateNativeWidgetSiblings to prevent rendering issues
...
Start supporting kfiledialog:// URLs
2015-12-02 00:44:18 +01:00
04eaacf1ec
Stubs for the Danbooru API implementation
2015-08-29 22:17:05 +02:00
2c9a6a152f
More stubbing for test functions
2015-08-29 10:02:38 +02:00
70fe9d5cce
Adjust paths for the new location
2015-08-29 09:51:23 +02:00
803e7ab96e
Move XML and JSON files to their own dir
2015-08-29 09:50:00 +02:00
d5aa1421a4
Stubs for pool testing
2015-08-29 09:49:08 +02:00
b219fdc022
Adapt tests for Danbooru XML. Now they all pass
2015-08-27 22:51:39 +02:00
17e399bbcd
More fixes for Danbooru's braindead API results
2015-08-27 22:51:19 +02:00
6fc03fe504
Workaround more Danbooru brokenness
...
image-width vs image_width... and so on
2015-08-27 22:28:05 +02:00
a103cce1be
Fix konachan XML test
2015-08-27 22:18:15 +02:00
bff2dd2ef1
Update unit tests to use XML as well.
...
Danbooru and Konachan aren't passing just because the posts retrieved
aren't the same.
2015-08-27 19:36:49 +02:00
dc6236f00c
Extend the QVariantMap parsing to Gelbooru data
2015-08-27 19:36:00 +02:00
0ee1d034c7
Account for difference between boards when parsing XML
...
Apparently there's nothing similar among these boards: Gelbooru and
Konachan use xml attributes, and Danbooru uses proper tags.
This is workarounded by adding a new parameter to parseDanbooruResult()
which takes into account the difference between the two calls.
Hopefully JSON isn't broken in Danbooru so I never have to use XML...
2015-08-27 19:29:55 +02:00
7eaa207852
Add files for testing Danbooru and Gelbooru posts
2015-08-27 00:18:40 +02:00
4c662ed7c1
Add support for parsing Danbooru (donmai.us) type posts
...
Also added unit test, passing.
2015-08-26 20:29:30 +02:00
7ec33e8e57
Add a function to include host names in URLs that don't have it
...
Because appparently the original Danbooru doesn't add them...
2015-08-26 20:28:56 +02:00
316c1fb1ae
Update tests to make use of the new ApiType enum
2015-08-26 16:23:56 +02:00
d3da86ff28
Move ApiType to the Danbooru namespace to prevent circular includes
...
Adjust all signatures to match for this change
2015-08-26 16:23:25 +02:00
e806ab602f
Add TODO
2015-08-26 00:32:05 +02:00
b763cfbff3
Simplify test loading
2015-08-26 00:31:10 +02:00
c2139d9c33
Move to data driven test, in anticipation for subsequent APIs
2015-08-26 00:23:39 +02:00
d840bf5319
Make the JSON readable
2015-08-26 00:23:26 +02:00
42ad3813d3
Even if they're not using QTest, group manual tests together
2015-08-25 16:57:09 +02:00
eef79c96a8
Only build tests if Qt5Test is found
2015-08-25 16:55:34 +02:00
86fb685877
This is not meant to be used as a test with make test
2015-08-25 16:55:12 +02:00
3fadd93cff
Use QFINDTESTDATA, which can find files easily
2015-08-25 16:54:40 +02:00
842125bc0d
Remove double debug
2015-08-25 16:49:52 +02:00
c9e79561ae
Add proper tests to support Konachan posts
...
Danbooru posts are up next.
2015-08-25 16:49:15 +02:00
229e648d93
Stubs for testing pools, tags, and posts
...
We need those before implementing multiple API support, as responses
have different tags / values depending on the API.
2015-08-23 23:22:17 +02:00
e8b64a4ad9
Refactor the test application so that it is board URL agnostic
2015-08-23 23:08:45 +02:00
08402657a0
Add a limit option to the pool retrieval functions
...
To download less than the maximum (and ease testing)
2015-08-23 23:07:50 +02:00
c5b8fccc6f
Build test application for Konachan API
2015-08-23 17:26:41 +02:00
7caa2d6956
Add missing (and needed) functions
2015-08-23 17:26:17 +02:00
9a3fd3819f
Basic infrastructure for test tools to check that things are working
2015-08-23 15:31:18 +02:00
f088eb6948
Adapt build system to the newer files + libdanbooru version bump
2015-08-23 14:29:47 +02:00
5b25ad3e93
Merge branch 'master' into multiple_apis
2015-08-23 12:06:15 +02:00
2abc76e311
Make the file save dialog async
...
Too often I got hangs because of the nested event loop started by
exec(): therefore everything is moved to a QPointer-guarded QFileDialog
pointer which is then used asynchronously.
2015-08-23 12:04:52 +02:00
e998ad6882
Add missing methods to the Konachan API
2015-08-23 00:58:28 +02:00
f2ffeb8cc2
Re-enable debug for Konachan
2015-08-23 00:31:48 +02:00
ba79760a4b
Merge branch 'master' into multiple_apis
2015-08-23 00:16:43 +02:00