Commit Graph

97 Commits

Author SHA1 Message Date
Luis Ángel San Martín
1cd33197cc Set hasBeenOpened as true if currentPage > 1
I have seen comics opened with hasBeenOpened to false.
2018-05-25 19:28:20 +02:00
Luis Ángel San Martín
a8655b1037 All lists should load the coverSizeRatio 2018-05-22 18:58:33 +02:00
Luis Ángel San Martín
317f2b839f Remove setting last time opened.
The value should come from the client.
2018-05-21 23:14:51 +02:00
Luis Ángel San Martín
e77d613002 Update last time opened when updating reading progress from ios client. 2018-05-21 22:13:07 +02:00
Luis Ángel San Martín
6cfd09a8b8 Add method for updating reading comic information given a hash. 2018-05-21 19:51:30 +02:00
Luis Ángel San Martín
0e4ffb15a6 Fix update from remote client.
current page has to be set before checking for read.
2018-05-21 19:50:28 +02:00
Luis Ángel San Martín
c93e86af12 Fix loading some missing fields from database 2018-05-20 15:33:11 +02:00
Luis Ángel San Martín
1503fe5383 Add method for marking a comic as reading without opening it first.
Usefull when closing the a comic in the last page to mark the next one and the next being readed.
2018-05-20 14:49:07 +02:00
Luis Ángel San Martín
45e44fa54f Only set a comic as reading if it has been opened beyod the cover. 2018-05-20 14:48:08 +02:00
Luis Ángel San Martín
23823725ac Fix how we consider a comic as being read.
Basically is this: it has been opened and not set as READ.
2018-05-20 14:41:55 +02:00
Luis Ángel San Martín
dc992edb55 Fix color loading for labels. 2018-04-26 22:18:12 +02:00
Luis Ángel San Martín
52c76d5482 Create unique database connections per thread and remove them using the database connection name from the QSqlDatabase instance being used. 2018-04-24 20:53:24 +02:00
Luis Ángel San Martín
db66fe33f3 Merge 2018-04-24 14:44:23 +02:00
Luis Ángel San Martín
30c8cf180e Fix loadComic not loading the comic file name. 2018-04-24 14:43:42 +02:00
Luis Ángel San Martín
c36d4501cc Fix update remote reading query, a coma was missing. 2018-03-24 21:00:27 +01:00
Luis Ángel San Martín
2bb258df13 Load the coverSizeRatio from DB. 2018-03-24 08:20:29 +01:00
Luis Ángel San Martín
f0e1458576 Save and load the the new comic info fields in DBHelper. 2018-03-11 15:30:34 +01:00
Felix Kauselmann
2cbbf8d433 Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
Luis Ángel San Martín
e8c6f60c13 Merge 2017-11-26 07:39:08 +01:00
Luis Ángel San Martín
b60c0e523c Fix sorting in siblings calculation, it is the name (file name) not the title. 2017-11-20 21:38:07 +01:00
Luis Ángel San Martín
5c268217d3 Fix read flag calculation on progress read updated from the server. 2017-11-19 10:03:40 +01:00
Luis Ángel San Martín
4d4556f7e2 Removed usage of QSqlRecoerd unless is totally necessary. 2017-08-28 19:02:18 +02:00
Luis Ángel San Martín
9ed1f0f306 Merge 2017-08-28 18:52:24 +02:00
Luis Ángel San Martín
1e74234dbf Fixed data base info retrieving through DBHelper - values(QString) and QSqlRecord. Methods implemented before the fixes in the develop branch. 2017-08-26 17:03:18 +02:00
Luis Ángel San Martín
f149f314e0 Merge 2017-08-26 16:54:10 +02:00
Luis Ángel San Martín
d6898e9a4e Fixed data base info retrieving through DBHelper, value(QString) should never be used because it is really slow. All items sorting should be done at db level or using std::sort. 2017-08-26 16:16:11 +02:00
Luis Ángel San Martín
85fba7e8f5 Added new methods for getting reading lists and comics in a reading list. Fixed DBHelper for not using GUI related classes (reading_list_item). 2017-05-26 17:27:08 +02:00
Luis Ángel San Martín
e2a8d520a9 Update the new lastTimeOpened value in the DB when it is needed in the DBHelper. Plus updated the getReading method for ordering the comics by the last time they were opened (descending order). 2017-03-28 18:42:25 +02:00
Luis Ángel San Martín
87e9cf92ff Use FAV_ID instead of hardcoded value. 2016-08-23 22:23:06 +02:00
Luis Ángel San Martín
983a035c31 New method for getting the comics being read, plus added the read state to comics loaded for being served. 2016-08-23 22:22:46 +02:00
Luis Ángel San Martín
a6204bcc65 Fixed Favorites resorting. 2016-08-23 22:03:56 +02:00
Luis Ángel San Martín
a17de2e7ef New method for loading the comics in favorites (server listing). 2016-08-23 18:07:19 +02:00
Luis Ángel San Martín
e5671806fc Optimize comic info loading for the server. 2016-08-23 18:04:20 +02:00
Luis Ángel San Martín
b0b13de52d New method for getting the comics in a tag (aka label). 2016-08-22 23:03:18 +02:00
Luis Ángel San Martín
581592909d merged develop 2016-04-19 23:19:39 +02:00
Luis Ángel San Martín
bcc51241b3 Added support for knowing if a comic is in favorites or not. 2016-04-17 11:20:14 +02:00
Luis Ángel San Martín
011176bebb merged master 2016-03-25 17:15:14 +01:00
Luis Ángel San Martín
8179092d56 added a border to selected/mouseHover elements in the grid view 2016-03-25 11:30:31 +01:00
Luis Ángel San Martín
4350d6797e added a new controller for serving the tags in a library 2016-01-25 22:23:49 +01:00
Luis Ángel San Martín
88056c819f updating folders' children info for every insert/delete in the db causes big performance issues, so that info is going to be updated explicitly 2016-01-25 18:45:50 +01:00
Luis Ángel San Martín
e23f6b0bc3 store the hash of the first comic in a folder, this is more useful than storing the id 2016-01-24 19:14:16 +01:00
Luis Ángel San Martín
b9e7dbe41e Everytime the content of a folder changes, update numChildren and firstChildId. This could cause performance issues, but the initial tests look good, and it seems that the overhead could be considered negligible. On the other hand, client queries are several times faster. 2016-01-24 18:52:25 +01:00
Luis Ángel San Martín
bac7fe1351 updated Folder class 2016-01-24 17:41:26 +01:00
Luis Ángel San Martín
4b3ffdc665 set numChildren to -1 if there is no value in the data base 2016-01-24 14:12:38 +01:00
Luis Ángel San Martín
2703219a0a map new fields on folder table to model class 2016-01-24 12:14:31 +01:00
Luis Ángel San Martín
e9210bb366 added a new db helper method for knowing the number of elements in a folder 2016-01-24 10:04:40 +01:00
Luis Ángel San Martín
9a62cd4a72 added a QStyledItemDelegate to the list QListView in EmptyFolderWidget to center aling folders' names 2016-01-01 13:11:31 +01:00