Commit Graph

1588 Commits

Author SHA1 Message Date
Oleg Shparber
f0ae612315 refactor(core,ui): move cacheLocation() to Core::Application 2019-04-19 13:44:23 -04:00
Oleg Shparber
a998119a55 fix(browser): focus webview on navigation 2019-04-10 20:21:28 -04:00
Oleg Shparber
31524b0cf1 fix(ui): fix empty page title 2019-04-10 20:20:04 -04:00
Oleg Shparber
0e3e427202 feat(registry): add struct mapping for the Rust docset 2019-04-10 20:02:32 -04:00
Oleg Shparber
b22ad78658 refactor(core,util): replace Util::Version with QVersionNumber 2019-04-09 01:24:05 -04:00
Oleg Shparber
79ad7f27dc refactor(app): remove unneeded semicolon 2019-04-09 00:58:09 -04:00
Oleg Shparber
4415920509 feat(ui): provide more information for download errors
References #1088.
2019-04-09 00:45:50 -04:00
Oleg Shparber
5362fc0b6a fix(core): ignore fixed font size setting when migrating from 0.6.0
The actual bug was fixed back in 0.6.1 (#903).

Fixes #1054.
2019-04-04 01:16:34 -04:00
Oleg Shparber
40807fc07d fix(ui): make Ctrl+W the default for closing tabs
QKeySequence::Close can resolve to Ctrl+F4.
2019-04-03 01:00:17 -04:00
Oleg Shparber
680a1baa70 feat(app,core,ui): remove ads (fixes #779) 2019-04-03 00:50:29 -04:00
Oleg Shparber
f3bdf52b25 feat(registry): check JS enablement in metadata (fixes #1024) 2019-03-26 01:04:09 -04:00
Oleg Shparber
a0583a8fdb fix(browser): do not accept mouse press events (fixes #1079)
This allows to fallback to QWebKit, if Zeal doesn't handle the event.
2019-03-26 00:43:38 -04:00
Oleg Shparber
4cc0c20b32 fix(browser): fix double to float precision loss 2019-03-26 00:40:38 -04:00
Oleg Shparber
c353ff25f5 refactor(browser): s/isUrlExternal/isExternalUrl 2019-03-26 00:39:43 -04:00
Oleg Shparber
188f867fb0 refactor(ui): remove manual handling of HTTP redirects 2019-03-25 22:46:46 -04:00
Oleg Shparber
bf8ef66580 fix(ui): fix compilation on macOS 2019-03-25 22:44:45 -04:00
Oleg Shparber
07fdaec85d fix(core,ui): use HTTPS to access api.zealdocs.org 2019-03-25 22:43:39 -04:00
Oleg Shparber
407e4161e4 fix(core): enable support for HTTP redirects 2019-03-25 22:32:36 -04:00
Oleg Shparber
343c7ce078 fix(ui): fix compilation with Qt 5.9
Qt 5.9 lacks QLineEdit::selectionEnd().
2019-03-25 01:36:36 -04:00
Oleg Shparber
5ef5111bd9 feat(ui): implement smart selection in the search box (closes #1033)
Using focus shortcuts when the search box is already focus, will
result in the selection expansion depending on the current state.
2019-03-25 00:51:03 -04:00
Oleg Shparber
0b45d6ebea
feat(browser,sidebar,ui): implement real tabs (#1081)
Adds actual independent tabs instead of swapping sidebar and webview.
2019-03-24 22:14:52 -04:00
Yiding Jia
b10693888f feat(browser): make zoom scaling DPI aware (#1080) 2019-03-13 08:57:25 -04:00
Henning Schild
4bfa75abaa chore(cmake): force static linking of internal libs (#1085)
Since the application binary is the only file installed and the libs are
not used by anyone else, make sure they are always static. Otherwise
cmake can make them shared and those shared libs will be missing after
install.

Signed-off-by: Henning Schild <henning@hennsch.de>
2019-03-12 01:40:32 -04:00
Oleg Shparber
cf07113374 ci(appveyor): fix deployment condition 2019-03-03 18:13:00 -05:00
Oleg Shparber
9bee1f07e8 ci(appveyor): enable push to AppVeyor artifacts 2019-03-03 18:11:13 -05:00
Oleg Shparber
3cdb0dacc9 ci(appveyor): only deploy to BinTray from the stable branch 2019-03-03 18:10:36 -05:00
Oleg Shparber
d261423f70 ci(appveyor): do not package artifacts for pull request builds 2019-03-03 14:59:20 -05:00
Oleg Shparber
7d72dfa343 refactor(browser): disable copying and mark classes final 2019-02-10 14:54:50 -05:00
Oleg Shparber
ebc4bc8207 refactor(registry): disable copying and mark classes final 2019-02-10 14:53:14 -05:00
Oleg Shparber
949d16fb14 refactor(core): disable copying and mark classes final 2019-02-10 14:52:47 -05:00
Oleg Shparber
021b55ad73 refactor(registry,ui): limit Registry::ListModel to one instance 2019-02-09 14:48:13 -05:00
Oleg Shparber
4fd2723b15 fix(registry,ui): add SearchModel::clone() instead of copy constructor
Classes derived from QObject should never have be copied.
2019-01-27 16:02:13 -05:00
Oleg Shparber
e7ddfaf303 refactor(browser,ui): move saveHistory(), restoreHistory() into WebControl 2019-01-27 01:48:46 -05:00
Oleg Shparber
7faa77d0bf
refactor(browser,ui): move webview related classes into new library (#1074)
Also rename WebViewTab to WebControl.
2019-01-27 01:32:54 -05:00
Oleg Shparber
ab0d979c07 fix(registry,ui): fix some potential container detachments in range loops
More information:
https://github.com/KDE/clazy/blob/master/docs/checks/README-range-loop.md
2019-01-27 00:34:53 -05:00
Oleg Shparber
0be8a77db5 fix(ui): do not call QList::first() on a temporary value 2019-01-27 00:04:27 -05:00
Oleg Shparber
15c490ebaf fix(ui): disable copy assignment for MainWindow::TabState 2019-01-27 00:04:27 -05:00
Oleg Shparber
738843b689 refactor(core): remove unnecessary constant reference parameters 2019-01-27 00:04:27 -05:00
Oleg Shparber
9fe642db01 fix(ui): fix missing constant references 2019-01-27 00:04:27 -05:00
Oleg Shparber
aa5d4a19df refactor(ui): do not check for nullptr before delete 2019-01-27 00:04:27 -05:00
Oleg Shparber
abca9115c6 refactor(ui): remove unused variable 2019-01-27 00:04:27 -05:00
Oleg Shparber
355f87954f refactor(ui): do not use 0 as a null pointer 2019-01-27 00:04:27 -05:00
Oleg Shparber
558ea65521 refactor(registry): use brace initializer where possible 2019-01-27 00:04:27 -05:00
Oleg Shparber
62b772089c refactor(registry,util): use default contructors instead of empty 2019-01-27 00:04:27 -05:00
Oleg Shparber
e114a7fc3c refactor(app,core,ui): pass context object when connecting to a lambda
More information:
https://github.com/KDE/clazy/blob/master/docs/checks/README-connect-3arg-lambda.md
2019-01-27 00:02:36 -05:00
Oleg Shparber
4c58e67980 refactor(core,registry,ui,util): avoid else-blocks after returns 2019-01-27 00:02:36 -05:00
Oleg Shparber
f02e904916 refactor(core,registry,ui): use auto for improved readability 2019-01-27 00:02:36 -05:00
Gianluca Recchia
b4bf14485b fix(registry): avoid unnecessary object copying (#1068)
Qt containers return a deep copy when used in a loop with a call to a
member function such as QMap::keys() or QMap::values(const Key& key).
Using iterators or assigning the return value to a const object avoids
the copy, thanks to the implicit sharing feature of Qt.

Further, when arguments in a constructor are to be passed to a member's
constructor, taking the argument by value and then moving it can be
beneficial when the argument is an rvalue as it will avoid the call to a
copy constructor.
2019-01-26 23:57:19 -05:00
Oleg Shparber
b4e26c48f3
refactor(ui): make ui/widgets a separate library (#1072) 2019-01-26 18:24:15 -05:00
Oleg Shparber
8512e40406 refactor(ui): use focus proxy instead of setFocus() call 2019-01-22 23:46:12 -05:00