Commit graph

42 commits

Author SHA1 Message Date
4955cc93bd Allow sending tags as well as the selected URL
This required two changes:

1. in the QML view, the signal has been changed to url, var
2. the model directly outputs a QStringList for ease of use
2015-02-24 00:15:57 +01:00
42050df412 Port models away from deprecated Qt5 API 2015-02-22 12:00:24 +01:00
b6d71f3cbf --pedantic; 2015-02-22 10:49:29 +01:00
5d9988feed So long, custom C++ delegate: you won't be missed 2015-02-21 14:57:50 +01:00
8b56570223 Normalize license headers in all source files 2015-02-21 14:57:16 +01:00
7b8214401b Allow downloading posts from the toolbar
This allows downloading if the QML area is not filled.

TODO: Configure infinite scrolling
2015-02-21 11:07:57 +01:00
3479c42968 Add a custom role used to sort the tags with an upcoming proxy model 2015-02-20 23:44:24 +01:00
942d1ffd1e Keep a set of all the tags from the posts stored
This allows later on to get post-specific tags.
2015-02-20 23:35:13 +01:00
f6aa593ee5 Don't add tags with no posts 2015-02-20 23:34:33 +01:00
428c1bae91 Basic support for tooltips in the tag widget 2015-02-20 17:35:08 +01:00
fee21d110c Let's not use too advanced C++11 features 2015-02-20 07:30:47 +01:00
7c61efc3c2 Model for storing Danbooru tags 2015-02-17 00:28:31 +01:00
5a4d2afa84 Add a poolAt() convenience function to the model
This will allow retrieving pools from the UI.
2015-02-15 00:58:31 +01:00
8ed916ef20 Add Q_DECL_OVERRIDE 2015-02-15 00:16:06 +01:00
488efc390b Model for displaying pools 2015-02-15 00:15:03 +01:00
9b27b329ca Rewrite license block to be consistent 2015-02-08 10:20:36 +01:00
d914dd9744 Extract tags from the model using TagRole 2015-02-08 10:17:59 +01:00
b88e8a6268 Clean up the model
Add custom roles for QML
Set roleNames()
Use switch() instead of if()
Remove PixmapRole, DecorationRole is enough
2015-02-05 23:48:40 +01:00
b0185c136b Add custom roles to the post model and export them to QML 2015-02-05 00:29:41 +01:00
f470558d20 Clean up includes 2014-10-12 14:27:44 +02:00
39aac8c95b Run astyle-kdelibs on the source 2014-10-05 09:53:19 +02:00
08b32208f0 Use KFormat instead of KGlobal 2014-10-04 11:05:48 +02:00
bcd24e9381 No longer a QPixmap pointer 2014-10-04 11:04:18 +02:00
8e2e9ecbc3 Convert to the new signal-slot syntax 2014-10-03 23:17:52 +02:00
c32637cafa KPushButton -> QPushButton 2014-10-03 23:07:26 +02:00
d7fec181e2 KUrl -> QUrl 2014-10-03 23:06:43 +02:00
e2cdec1947 KIcon -> QIcon 2014-10-03 23:02:19 +02:00
3c9a4de1ad Fix the model (same issue as in Holiday Planner, beginInsertRows is inclusive) 2014-03-23 20:55:32 +01:00
782a113475 Change name accordingly and fix include guards 2013-07-28 17:14:08 +02:00
521bdad42c Add a clear() method to empty the list of the model (better than
creating a new one every time) and rename m_posts to m_items
2013-07-28 17:13:28 +02:00
6a3a866ad5 These variables are not needed anymore 2013-07-28 17:12:55 +02:00
64e16642ff Cleanup 2013-07-28 17:12:40 +02:00
41be285e07 Rename DanbooruTableModel to DanbooruPostModel, as it's clearer what it
does
2013-07-28 17:11:50 +02:00
ec6735c44e Provide the filename as tooltip 2013-07-23 07:31:28 +02:00
834bdfd82d Use the height - 3 lines of text to make also very high pixmaps fit 2013-07-23 07:31:14 +02:00
e787a35330 Use moveBottom instead of setBottom so that the images are all lined up at the bottom. 2013-07-21 09:44:05 +02:00
6bbe54a7fd Display ratings as strings 2013-07-20 20:16:13 +02:00
04f1c4a76f Almost working delegate version with text. Needs a little more polishing though 2013-07-20 15:46:48 +02:00
1886dbf53c Switch to QVector instead of QList. Insertions aren't really needed. 2013-07-20 11:44:27 +02:00
2141bd0a08 One less temporary variable 2013-06-09 22:35:00 +02:00
9373508bc3 Add two signals to propagate the URLs when the buttons are clicked 2013-06-09 22:00:41 +02:00
ad89dd5db9 Moved models to a separate directory 2013-06-09 21:59:55 +02:00