David Rosca
eae11b9a9a
LocationBar: Only allow whitelisted schemes to be loaded as url
2018-01-27 17:35:27 +01:00
David Rosca
958fc63f01
LocationBar: Only allow spaces in url query
...
Fixes correctly searching for "site:website.com searchterm"
BUG: 389491
2018-01-27 11:16:33 +01:00
David Rosca
2e7436c741
LocationBar: Handle url/search resolution in loadAction instead of WebView::load
2018-01-27 11:15:45 +01:00
David Rosca
c2a730e9f4
LocationCompleter: Fix removing search shortcut from search string
...
Closes #2573
2018-01-27 10:52:41 +01:00
David Rosca
486b6b9463
LocationCompleterView: Make PageUp/Down skip over 5 entries
...
Instead of default behavior (one screen = 12 entries) which is too much.
2018-01-27 10:52:12 +01:00
David Rosca
a0472177c2
LocationCompleterView: Make the search button area into QFrame
2018-01-27 10:52:07 +01:00
David Rosca
8d06eee009
LocationCompleterView: Fix incorrect resize in some cases
2018-01-26 12:58:12 +01:00
David Rosca
5ee0623d32
LocationCompleter: Fix popup opening with suggestions after it was closed
2018-01-26 12:58:08 +01:00
David Rosca
b9294e02bb
LocationBar: Don't show favicon in site icon
...
Most of the sites are https nowadays, for which favicon is not
displayed, so there is no more a reason to show favicon in site
icon in locationbar.
Favicon is still displayed in tab icon.
Closes #918
2018-01-26 12:58:04 +01:00
David Rosca
948e623f9e
LocationBar: Show search icon as site icon when completion popup is open
2018-01-26 12:57:59 +01:00
David Rosca
4ad5900604
LocationCompleter: Call closePopup+clearCompletion also in indexActivated
2018-01-26 12:57:53 +01:00
David Rosca
3469d5b114
LocationCompleterView: Always resize on first adjustSize after show
2018-01-26 12:57:48 +01:00
David Rosca
3ec4d96f74
LocationCompleter: Properly close popup when showing search engines dialog
2018-01-26 12:57:44 +01:00
David Rosca
52076009e0
LocationComplterRefreshJob: Set HistoryRole for most visited completions
...
Closes #2570
2018-01-26 12:57:39 +01:00
David Rosca
99ceda4324
LocationCompleterView: Delay resizing popup to reduce flicker
2018-01-26 12:57:34 +01:00
David Rosca
09ee6007e9
LocationCompleter: Handle creating LoadRequest
...
Instead of just passing string that LocationBar should somehow
parse and decide what to do (which may not correspond to what was
indicated in completion entry), make the LocationCompleter create
it with all needed info and pass it to LocationBar to load.
This fixes issue where search completions may have been loaded
with different search engine when suggestion starts with search
engine shortcut (which would also get cut in the search).
This also removes the possibility to open new window from completer
with activating entry with Shift key.
2018-01-26 12:57:30 +01:00
David Rosca
8d45c910bf
LocationBar: Add LoadAction
...
It represents action to be taken after submitting text in LocationBar.
Use it from LocationCompleterDelegate instead of duplicating the logic.
This fixes showing incorrect indication when typing bookmark keyword
and when search suggestions begins with search engine shortcut.
2018-01-26 12:57:22 +01:00
David Rosca
4140aae6d2
LocationCompleterView: Add buttons with all search engines
2018-01-26 12:56:50 +01:00
David Rosca
fe8eb7f122
LocationCompleterView: No need to use QPointer for SearchEnginesDialog
2018-01-26 12:55:57 +01:00
David Rosca
b618323a5e
LocationCompleterView: Add button to open search engine settings
...
Closes #2568
2018-01-26 12:55:52 +01:00
David Rosca
d443a69d8f
LocationCompleterView: Fix Shift+Tab handling
2018-01-26 12:55:46 +01:00
David Rosca
11e2ff168e
LocationCompleterView: Change into QWidget
2018-01-26 12:55:29 +01:00
David Rosca
bb76281174
LocationCompleterDelegate: Don't make link color lighter
2018-01-26 12:54:52 +01:00
David Rosca
b0c2a09f94
LocationCompleterDelegate: Use smaller font for link text
...
Instead of using bigger font for title, use normal font size
for title and smaller font for link.
2018-01-26 12:54:47 +01:00
David Rosca
4b5bae697a
NavigationBar: Show AdBlock icon in toolbar by default
2018-01-24 20:46:40 +01:00
David Rosca
41775c3a20
Replace some QupZilla leftovers with Falkon
2018-01-24 17:15:26 +01:00
David Rosca
f7cbab1562
LocationCompleter: Don't highligh search string in visit/search item
2018-01-16 12:52:04 +01:00
David Rosca
7ba18669a2
LocationCompleter: Update original text also without inline completions enabled
...
Closes #2550
2018-01-16 12:51:39 +01:00
David Rosca
a8dcf176cf
Fix merge issues
2018-01-11 20:51:34 +01:00
David Rosca
4bf85ee3cb
WebPage: Register QWebChannel on isolated ApplicationWorld
...
This way scripts on pages don't have access to it.
Exception is qupzilla: scheme as internal pages requires the bridge.
GreaseMonkey userscripts now runs on ApplicationWorld too. This fixes
userscript that depend on script world being isolated from main page world.
Tested with 4ChanX + OneeChan.
2018-01-11 19:55:01 +01:00
David Rosca
80eb072bb1
NavigationBarToolButton: Prevent down state flickering when showing popup
2018-01-11 19:49:17 +01:00
David Rosca
e21e147bbb
NavigationBarConfigDialog: Fix restore to defaults action
2018-01-11 19:48:59 +01:00
David Rosca
23f84abc3b
NavigationBar: Correctly filter invalid layout ids
2018-01-11 19:48:50 +01:00
David Rosca
1f9599aac7
Add DownloadsButton to navigation toolbar
...
It is visible only when there are items in download manager and shows
number of active downloads in badge text.
2018-01-11 19:48:43 +01:00
David Rosca
0e41fd0785
AbstractButtonInterface: Add support for hiding tool button
2018-01-11 19:48:06 +01:00
David Rosca
238a06874d
AbstractButtonInterface: Allow delayed hide of popup
2018-01-11 19:48:01 +01:00
David Rosca
df632c7ced
NavigationBar: Only reload layout when settings changes
2018-01-11 19:46:51 +01:00
David Rosca
e33174100e
NavigationBar: Bring back exit fullscreen button
...
This time it is configurable and hidden by default.
2018-01-11 19:46:44 +01:00
David Rosca
7adda247dc
NavigationBar: Make sure search bar doesn't have null size in splitter
2018-01-11 19:45:23 +01:00
David Rosca
670e06cbc6
Change back "Sidebars" -> "Sidebar"
2018-01-11 19:44:59 +01:00
David Rosca
5dfe6d862c
NavigationBar: Clear current webview for all tool buttons
...
Fixes another crash similar to #2537
2018-01-11 19:44:35 +01:00
David Rosca
4dd67cfce6
LocationCompleter: Set BrowserWindow as transient parent
2018-01-11 19:44:30 +01:00
David Rosca
6806fa5405
AbstractButtonInterface: Use WebView property instead of WebPage
...
WebView of a tab will not change while WebPage may.
This also fixes crash when WebPage of WebView is changed. It can happen
eg. when opening new tab from page with target=_blank.
Closes #2537
2018-01-11 19:42:38 +01:00
David Rosca
ba2ea9cb09
AbstractButtonInterface: Rename badgeLabelText -> badgeText
2018-01-11 19:36:54 +01:00
David Rosca
15a2afb4b6
NavigationBar: Add support for badge text in tool buttons
2018-01-11 19:36:49 +01:00
David Rosca
74f45f6028
NavigationBarToolButton: Add support for inactive state
2018-01-11 19:33:13 +01:00
David Rosca
4a4d5b72ad
Add NavigationBarConfigDialog
...
Allows to change layout of navigation bar and hide/show search bar.
2018-01-11 19:32:54 +01:00
David Rosca
546e777c7c
NavigationContainer: Also add bottom margin with tabs on top
2018-01-11 19:31:33 +01:00
David Rosca
8cbaa19dd1
Use correct margins from style in NavigationBar and BookmarksToolbar
2018-01-11 19:31:17 +01:00
David Rosca
c5b59d1011
ToolButton: Disable showing button menu on right click by default
2018-01-11 19:30:05 +01:00