1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-23 02:32:10 +02:00
Commit Graph

156 Commits

Author SHA1 Message Date
David Rosca
b24041cb8e
LocationCompleterDelegate: Don't use selected icon mode for favicons
Same reason as previous commit
2018-02-04 17:21:31 +01:00
David Rosca
5bcffae242
LocationCompleter: Show bookmark as first suggestion when found with keyword 2018-01-27 17:36:13 +01:00
David Rosca
538299116f
LocationCompleterDelegate: Only show Visit action on hovered/active items 2018-01-27 17:36:04 +01:00
David Rosca
0cf48359f9
LocationCompleterDelegate: Draw search engine icon for search shortcuts 2018-01-27 17:36:00 +01:00
David Rosca
51b4a39399
LocationCompleter: Allow to force loading typed text with Shift+Enter
Allow to ignore the suggested search action and instead just
try to load the typed text as url.
2018-01-27 17:35:43 +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
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
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
4dd67cfce6 LocationCompleter: Set BrowserWindow as transient parent 2018-01-11 19:44:30 +01:00
David Rosca
139a8dc8f1 LocationCompleter: Only allow to delete bookmarks and history items 2018-01-11 19:20:16 +01:00
David Rosca
89aa7259f9 LocationCompleter: Only update original text when first item is selected
Fixes issue where search/visit item would be incorrectly updated after
deleting item from completions.
2018-01-11 19:19:28 +01:00
David Rosca
b6dd2a829d LocationCompleter: Fix showing old suggestions for one char search string
When typing a search string and then deleting it up to last character,
old suggestions for 2-character search string would be displayed.
2018-01-01 16:56:03 +01:00
David Rosca
eb92250003 LocationCompleter: Enable suggestions from 2 and more characters 2018-01-01 16:55:57 +01:00
Laurent Cimon
635cb1085c Add an option to disable search suggestions from the address bar.
Differential Revision: https://phabricator.kde.org/D9539
2017-12-31 16:44:02 +01:00
David Rosca
925e3496d9 LocationCompleterModel: Don't set tab position to view/search item 2017-12-30 18:06:26 +01:00
David Rosca
c1c168aae9 Create every QSqlQuery with correct database for current thread
Queries are now always executed on correct database instance.
Databases are also stored in thread local storage instead of in hash
table with mutex.

Closes #2498
2017-12-18 13:06:42 +01:00
David Rosca
ff6de32d3d LocationCompleterModel: Order domain completion result by date
Fixes showing irrelevant (first match) domain completions

Closes #2471
2017-11-08 15:59:24 +01:00
David Rosca
033f701784 LocationCompleter: Fix possibility to be opened at wrong position/time 2017-11-01 17:38:24 +01:00
David Rosca
845d59e5d7 LocationCompleter: Ignore canceled refresh jobs
Skip updating completion model with invalid data from canceled jobs,
which could result in attempt to resize the completer popup to invalid
size (0 height) and when the popup is resized again to valid size kwin
may actually fail to show it with compositing enabled.

Should help with #2480
2017-11-01 17:38:11 +01:00
David Rosca
e267b47fb1 LocationCompleter: Fix searching for text that is not valid QUrl
Closes #2457
2017-10-09 11:57:17 +02:00
Razi Alavizadeh
e5b89fd5f5 LocationCompleterDelegate: Don't align RTL titles to right after new delegate.
- The old delegate was using separate lines for title and link
  after 5f9fe54086 it uses just one line.
2017-08-29 12:26:31 +04:30
David Rosca
d00e769749 Initial rename to Falkon 2017-08-25 17:32:32 +02:00
David Rosca
04df4cbdf8 LocationCompleter: Fix search engine shortcuts 2017-08-25 16:11:58 +02:00
David Rosca
d3153355d7 LocationCompleterView: Make sure focusProxy() is not null
See #2421
2017-08-21 11:16:10 +02:00
David Rosca
0203cab204 LocationCompleterDelegate: Only draw "search with" on selected/hovered items 2017-08-12 15:46:54 +02:00
David Rosca
82700cae38 LocationCompleterDelegate: Draw icons with correct mode 2017-08-12 15:25:36 +02:00
David Rosca
0524bbc1a6 LocationCompleter: Don't allow to delete search/visit completion item 2017-08-12 15:10:39 +02:00
David Rosca
20010eb3c4 LocationCompleter: Fix incorrectly showing search action after domain completion 2017-08-12 15:09:29 +02:00
David Rosca
5f9fe54086 LocationCompleterDelegate: Draw title and address in one line
Also show twice as much available completions.
2017-08-12 15:02:00 +02:00
David Rosca
d7ff9546d6 Fix build 2017-08-11 15:46:19 +02:00