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

356 Commits

Author SHA1 Message Date
David Rosca
23279f6e10 GreaseMonkey: Move icon from statusbar to navigationbar as tool button 2018-01-11 19:29:35 +01:00
David Rosca
6824ea17f2 NavigationBar: Add support for adding additional tool buttons 2018-01-11 19:28:32 +01:00
David Rosca
0b8a693bca NavigationBar: Add Tools button
It now contains toolbars and sidebars menus and configure
action that doesn't work yet.
2018-01-11 19:25:54 +01:00
David Rosca
65d1493f0a Fix closing tabs - regression from last commits
Closes #2534
2018-01-11 19:25:48 +01:00
David Rosca
d380d54ef8 NavigationBar: Add support for loading layout from config
There is no ui to configure it for now.
2018-01-11 19:25:41 +01:00
David Rosca
2e7a77a6b4 NavigationBar: Remove exit fullscreen button 2018-01-11 19:24:58 +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
f3b7be2b5e LocationBar: Fix correctly loading "localhost" instead of launching search
Closes #2028
2018-01-01 17:02:12 +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
40d42f1230 LoadRequest: Replace isEmpty with isValid
Also test for QUrl being valid, not just not empty
2017-10-09 12:06:25 +02: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
David Rosca
7e6600bb48 Change wording "Search on" -> "Search with"
Also don't show "URL" in interface, "address" is enough.
2017-08-11 15:29:15 +02:00
David Rosca
2867f9fed5 LocationCompleter: Show search suggestions 2017-08-11 15:29:09 +02:00
David Rosca
c3bead5ed7 LocationCompleterView: Completely remove the hovered index tracking logic 2017-08-11 13:01:41 +02:00
David Rosca
6bceef43e2 LocationCompleter: Don't change selected index with mouseover
Also render proper item state (selected / under mouse) in delegate.
2017-08-11 12:56:55 +02:00
David Rosca
9e8614447e LocationCompleterDelegate: Better logic for limiting URL length 2017-08-11 12:42:07 +02:00
David Rosca
029aa6823b LocationCompleterView: Don't propagate Esc key press 2017-08-11 12:32:23 +02:00
David Rosca
16b3a74aa1 LocationCompleter: Add persistent first item that shows used search engine
Or in case searching from location bar is disabled or entered text
is valid URL, it indicates that this URL will be loaded.
2017-08-11 12:32:18 +02:00
David Rosca
d0f6a3f909 WebSearchBar: Search when clicking on search suggestion
Closes #2281
2017-07-19 13:27:30 +02:00
David Rosca
05492a89e6 LocationCompleterView: Fix selecting items with mouse
See #2365
2017-07-19 12:39:36 +02:00
David Rosca
9f266ac1e0 LocationCompleterView: Only use special window flags on xcb platform 2017-07-19 12:26:26 +02:00
Elvis Angelaccio
2a2c49ca47 Ensure transient parent window for LocationCompleterView
This makes sure that the completer listview is properly positioned on
wayland. Tested with Qt 5.9 RC.

Closes #2344.
2017-06-08 09:47:39 +02:00
David Rosca
281919fc4d LocationCompleterView: Use custom window type only on X11
Closes #2287
2017-04-02 16:35:38 +02:00
David Rosca
b95a8be600 LocationCompleterView: Fix window type on Wayland
Closes #2236
2017-02-26 20:27:37 +01:00
David Rosca
3045cf28b2 Merge branch 'v2.1' 2017-02-20 17:20:39 +01:00
David Rosca
e86f96878e Fix clicking on go icon when location completer popup is visible
Closes #2225
2017-02-20 17:20:00 +01:00
David Rosca
71b06197ef LocationCompleterView: Use better window type
It is no longer modal, so it doesn't break shortcuts.

Closes #2213
2017-02-13 21:01:21 +01:00
David Rosca
85f8cf881e Fix drawing text with correct color in item delegates on Windows 2017-02-07 15:47:41 +01:00
David Rosca
c44b8b9309 LocationBarPopup: Use QFrame::Raised 2017-01-27 13:42:05 +01:00
David Rosca
9b3fc5f404 Update ignored schemes for saving history and icons 2016-12-31 14:53:06 +01:00
David Rosca
e21636c661 Add more HighDPI ready icons in data/icons/menu 2016-12-29 15:07:34 +01:00
David Rosca
82e9d0c0ee LocationBar: Complete domain when going back to original text 2016-12-29 12:11:40 +01:00
David Rosca
23af6c3af7 Fix drawing correct text color in custom item views 2016-12-26 19:41:06 +01:00
David Rosca
1a0ec338de LocationBar: Replace all contents when dropping text 2016-12-24 11:41:50 +01:00
David Rosca
c7fa3101db LocationCompleterRefreshJob: Use IconProvider to load icons
IconProvider can now be used from different threads
2016-12-20 12:19:51 +01:00
David Rosca
c2d38dfb7d SqlDatabase::query now modifies the passed SqlQuery 2016-12-20 11:22:31 +01:00
David Rosca
38bf9d2b4a Use QWebEngineView::icon() instead of custom icon downloading 2016-10-24 21:19:27 +02:00
blaze
bc47a9aba5 Show Bookmark Toolbar when Location Bar gets focus
Optional behaviour providing quick access to bookmarks without
wasting the vertical space
2016-08-23 08:57:11 +02:00
David Rosca
1a183e590b Merge branch 'v2.0' 2016-08-15 14:25:26 +02:00
David Rosca
cce94944f7 Don't hide supermenu button in fullscreen
Also make the supermenu button as last button in toolbar
2016-08-15 14:24:53 +02:00
David Rosca
c004d52db1 Run js code in ApplicationWorld with QtWebEngine 5.7 2016-05-10 10:47:35 +02:00
David Rosca
f93ea0e199 Fix use of deprecated QStyleOptions 2016-04-24 10:49:54 +02:00
David Rosca
56399c0fab Fix use of deprecated QStyleOptions 2016-04-24 10:17:13 +02:00
David Rosca
3d2001a249 LocationBar: Use normal timer for hiding progress 2016-02-27 17:12:39 +01:00
David Rosca
11601f866e NavigationContainer: Add small top margin top with tabs on top 2016-01-31 13:05:43 +01:00
David Rosca
2f80ca55ef IconProvider: Prefer theme icon for bookmarks 2016-01-27 12:44:19 +01:00
David Rosca
2c04ebba63 LocationBarPopup: Show the popup relative to locationbar 2016-01-25 14:21:17 +01:00
David Rosca
a90c35223d LocationBar: Show encrypted site icon on https sites 2016-01-24 13:49:15 +01:00
Kevin Kofler
fcae1fd3f5 Make automatic searching from the address bar optional
Some users (like me) really don't like it when their typos get sent to a
search engine without asking.
2016-01-14 03:29:47 +01:00
David Rosca
3e0583377d Fix handling Enter key in keypad in shortcuts
Closes #1792
2016-01-02 19:58:54 +01:00
David Rosca
072f459ba5 Fix crash when using locationbar with show switch tab option disabled
Closes #1749
2015-12-03 10:01:30 +01:00
David Rosca
d1a15906b5 LocationBar: Drop "Add .co.uk when pressing ALT" feature
It doesn't work when completer popup is displayed and also it was
weird feature that could confuse users (Why was .co.uk added to the
text when I pressed ALT?).
2015-11-06 17:44:33 +01:00
David Rosca
aa0ec8cbc0 LocationBar: Fix Ctrl+Enter when text already ends with .com
Don't append another .com when the text in locationbar already
ends with .com.

Closes #1737
2015-11-06 17:37:15 +01:00
David Rosca
35fd959315 HighDpi: Save site icons to database with 32x32px size 2015-10-24 12:50:42 +02:00
David Rosca
97ce417798 Fix use of QList::first() 2015-10-23 12:26:27 +02:00
David Rosca
387aee12c2 SiteInfo: Only show on non-internal pages 2015-10-14 12:50:30 +02:00
David Rosca
af93ecf81e AdBlock: Show error page when the whole page was blocked 2015-10-14 12:41:42 +02:00
David Rosca
800cc14dcd Bring back support for searching one-word terms from locationbar 2015-10-01 19:25:55 +02:00
David Rosca
5f6cfdc62a Remove WebView::guessUrlFromString and use QUrl::fromUserInput instead
This also fixes setting homepage and new tab urls in preferences.

Closes #1710
2015-10-01 18:37:45 +02:00
David Rosca
ced9c8553c SearchEngines: Bring back support to add engine from page 2015-09-25 17:41:46 +02:00
David Rosca
1756c51546 Remove remaining RSS code 2015-08-30 10:40:45 +02:00
David Rosca
8d7cfb0e2a Remove some Qt 4 specific code 2015-02-26 12:17:47 +01:00
David Rosca
e3deb6cfd5 More cleanups + remove now unusued WebHistoryInterface 2015-02-08 11:51:19 +01:00
David Rosca
b94135ead5 WebView: Implement icon loading 2015-02-08 11:13:12 +01:00
David Rosca
60b2386a6e Initial port to QtWebEngine
This is first quick port to QtWebEngine, most of advanced features
are not working yet. Please read README.

For now, it will use separate profile directory as well as browser
session, that means you can use both QtWebEngine and QtWebKit versions
at the same time.
2015-01-27 11:01:52 +01:00
David Rosca
04d4555b47 Don't duplicate convertUrlToText function in WebView 2015-01-21 12:38:12 +01:00
David Rosca
b75e8a8451 Actually, this is much better solution to previous commit. 2015-01-21 12:32:41 +01:00
David Rosca
7384ed2685 Fix searching for strings with non-ascii characters from locationbar
Closes #1587
2015-01-21 12:21:54 +01:00
S. Razi Alavizadeh
ab368f647f Assume "about:blank" as an empty URL.
- Closes #1539
2014-12-13 03:37:41 +03:30
David Rosca
b1c12998c7 LocationBar: Fix Del key removing all right part of the url 2014-11-18 12:45:37 +01:00
David Rosca
478b5ddb84 Use open() instead of exec() in all dialogs
Avoid blocking exec().

Closes #1515
2014-11-07 18:08:12 +01:00
David Rosca
2c0582b9a1 LineEdit: Cleanup text edit actions code 2014-10-18 16:33:37 +02:00
David Rosca
eec67d1941 Fix building with Qt 4.7 2014-09-26 19:28:24 +02:00
David Rosca
56dcdfe4a2 Mac: SuperMenu button is now available on Mac 2014-09-25 14:42:36 +02:00
David Rosca
13b1614e11 Use std::sort instead of obsolete qSort 2014-09-25 14:13:26 +02:00
David Rosca
f55dcdf63c [LocationCompleter] Force updates of inline domain completer
Model for inline domain completion is updated asynchronously, so it is
needed to force the update of completer.

This was last regression of completer after switch to threaded searching
in history/bookmarks.
2014-06-26 15:42:38 +02:00
David Rosca
5558d32d82 Merge pull request #1376 from srazi/loc-highlighter
New highlighter algorithm using QTextLayout that fixes rendering of RTL strings.
2014-06-17 14:56:51 +02:00
David Rosca
7cbc588cc1 [LocationCompleter] Sort results by last visit date
Closes #1390
2014-06-17 14:55:32 +02:00
S. Razi Alavizadeh
5bd24400e1 [LocationCompleter] Cancel unneeded refresh jobs 2014-06-13 23:55:49 +04:30
S. Razi Alavizadeh
a32e809bf6 Escape SQLite wildcards when using LIKE clause 2014-06-13 23:52:44 +04:30
S. Razi Alavizadeh
5a183a1a8d [LocationCompleter] Correctly elide text also fixed compile on Qt5. 2014-06-06 07:00:30 +04:30
David Rosca
59b893075a [LocationCompleter] Fix showing icons after last commit 2014-05-30 22:06:58 +02:00