It would be nice to be able to style it using css (QTabBar::tab:first)
but I can't figure how :/
We need to :
- hardcore the size of the tabs using `tabSizeHint`.
- "deactivate" the tab button with `setTabButton`
- set the size of the icons.
Fix#73
When doing a search in the library, we know for sure that the result will
be a subset of the library we have (without query). So we can do the
search locally (through the books we already have in cache) instead of
doing another request.
The side bar has some constraints :
- If the contentManager is displayed, we cannot change or hide the side
bar.
- The readingList button must follow the currentside bar, not its
internal status (checked/unchecked).
The real zimId is `xxxx` (stored in the zim itself), not `xxxx.zim` (we
use as host url).
Store the host as an id means that we always need to convert from `xxxx` to
`xxxx.zim` (and the contrary). It is prone to mistake when we forget to
convert to the correct format.
We must use `xxxx.zim` only in the url as is it use to identify what is
asked in the urlschemehandler. Everywhere else, we only need the real
zimId.
In case of rapid input in the contentManager's search entry, the
search request will be launch rapidly. As the view is updated async, the
`getBookInfos` may be used to get information on a book not in the
library anymore. We must handle this to avoid crashing.
Fix#65
The pagination was added as a workaround to a too slow display of
the content.
Now that with commit 4cbf001 we are displaying the icons async, the
pagination is no more usefull.
The search bar display the title of the current displayed article.
As the icon must change depending we are displaying the article's title or
we are doing a search, the icon is bit more complex :
- It is an embedded button in the searchbar, not a simple icon.
- The search bar is connect to the new signal "currentTitleChanged" to
display the current title.
Fix#35
The update of book info are made somehow sync. (They are async, but
somehow, the view update hangout).
Getting the favicon content is pretty long and it seems that the view
(and getting remote content) take a long time.
By using a real url, QWebViewEngine handle everything nicely and it speed
up everything.
This way, the contentManager can get some information about a zim file
using the zim scheme.
We have to initialize the m_schemeHandler before the m_manager.
This is useless. It was use to rewrite http request to zim request and
have the custumUrlShemeHandler handle the request.
However, we now want to open http request in a external browser.
And it is already the case, the http requests are never intercepted.
It seems that QTWebEngine doesn't correctly handle a "complex" mimeType
(`text/html; charset=utf-8`). In this case, it handles the content as
`plain/text`.
So let pass only the first part of the full mimeType without the charset.
Fix#50