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

90 Commits

Author SHA1 Message Date
David Rosca
668c8b024a [LocationBar] Fixed showin progress over text. Use opacity with QPainter
Not the best solution, but probably the easiest.
Closes #1261
2014-04-20 11:05:20 +02:00
David Rosca
2138978ab7 [LocationBar] Make sure text format is correct even when text doesn't change
refreshTextFormat() is using page's url to determine which part of
displayed text is host. Url of page may not change immediately when
starting loading.
This commit makes sure that text format is correct with every
WebView::urlChanged() signal.
2014-04-20 09:51:20 +02:00
nowrep
6874df57d7 [Coding Style] Edited coding style (use linux style brackets)
Linux style brackets are now used also for source files.
One line blocks can now be without brackets.

Example:

if (test)
    foo();

Multi-line if statements are now written with conditionals (||, &&, ...)
at the end of line. The last line of if body does not ends with closing
bracket, instead the closing bracket is written on separate line.
One line blocks in multi-line if statements should not be without brackets.

Example:

if (test ||
    test2 &&
    test3
   ) {
    foo();
}

[ci skip]
2014-04-05 14:53:45 +02:00
nowrep
e36697eedf [SearchEngines] Support for loading POST engines from LocationBar
Added new class LoadRequest, that holds network request with its
operation type and POST data.
2014-03-19 21:27:43 +01:00
nowrep
f9f74f3642 [LocationBar] Always show site icon in 16x16px 2014-03-16 14:33:56 +01:00
nowrep
43cb2d6b27 [LocationBar] Fixed crash in setGoIconVisible. Always check for m_webView 2014-03-16 13:56:27 +01:00
nowrep
dbec199ea8 Fixed building with Qt5 2014-03-16 13:55:37 +01:00
nowrep
d464d9bdef [LineEdit] Create context menu in LineEdit
Instead of code duplication in LocationBar and WebSearchBar, create
the context menu from LineEdit.
Also actually create the menu, not just re-use the standardContextMenu.
2014-03-16 13:06:38 +01:00
nowrep
a701079d27 [LocationBar] Cleanup code + fixed showing rss icon 2014-03-16 12:12:49 +01:00
nowrep
6e53add7d7 [LocationBar] Set cursor position at start when showing long url
Also disable animations for Oxygen style, it breaks when changing
text to completely different one (eg. loading foo.com and then bar.com)
and the url is too long to fit in line
2014-03-16 11:21:24 +01:00
nowrep
caabbc237f [LocationBar] Tweaked Linux theme. No longer hardcode height
It is now specified only minimum height.
Fixes issue with locationbar being too small with bigger fonts.
2014-03-16 09:38:28 +01:00
nowrep
72904a80c3 [LocationBar] Major cleanup. New code to change color of text parts
The code to change color of host of url is completely new.
It doesn't use any paint hacks anymore. That means text in
locationbar will now be always rendered pixel perfect, as it would
with normal QLineEdit.

Cleanup in LocationCompleter. It is now using QCompleter in inline
mode to complete domain. It is still not ideal, eg. it refreshes
and show the domain completion with delay (job run in separate thread),
and sometimes it misses it completely.

WebSearchBar: Always complete when receiving suggestions. Fix issue
when suggestions were only showed after typing at least 2 characters.
2014-03-15 23:22:35 +01:00
nowrep
9c7e9a1396 Fixed building with Qt 4 2014-03-15 20:20:39 +01:00
nowrep
7e57cb63f5 [LocationCompleter] Run completions search in separate thread
Currently, there is one issue with inline domain completion. It is
also searched from the separate thread, and thus it gets displayed
after a small delay.

Closes #1135
2014-03-15 19:36:03 +01:00
nowrep
2e9ce1ba90 [CodeCleanup] Major cleanup in MainApplication class 2014-03-10 00:47:07 +01:00
nowrep
a3c3dead87 [CodeCleanup] Get rid of Qz::AppMessage enum 2014-03-09 12:54:07 +01:00
nowrep
edbb87bd1f [CodeCleanup] IconProvider now have static methods for getting icons 2014-03-07 18:03:42 +01:00
nowrep
b826ebc52a [LocationCompleter] Support Ctrl / Shift activation of items
Ctrl activation: Opens url in new tab
Shift activation: Opens url in new window
Closes #1245

Bookmarks: Update visit count also from location completer
BookmarkItem: Added new method updateVisitCount
2014-03-01 14:05:44 +01:00
nowrep
404fa68a1b [Cleanup] Renamed QupZilla class to BrowserWindow 2014-02-19 22:07:21 +01:00
nowrep
5e131033e6 [Flicker] Another set of flicker patches
Old approach caused navigationbar to be empty for a moment while
opening a lot of tabs at once
2014-02-13 17:06:09 +01:00
nowrep
884cde6abf [LocationBar] Don't ever set cursor location to start
Probably fixes #1212
2014-02-13 02:41:13 +01:00
nowrep
4e8c0adbad [LocationBar] Don't incorrectly show about to be loaded url when it was not accepted
It can happen for example when trying to change address on a page that
handles window.onbeforeunload event
2014-02-10 21:58:25 +01:00
nowrep
2ea155560a [Bookmarks] Removed BookmarksTree and renamed BookmarkIcon -> BookmarksIcon 2014-02-09 12:22:49 +01:00
nowrep
d61b72bd87 [SearchShortcuts] Fixed using search shortcuts longer than one character 2014-01-08 10:39:41 +01:00
nowrep
da15e5868d [CodingStyle] Don't use references when assigning to local variable
Let the compiler do the optimization
2013-12-30 13:43:48 +01:00
nowrep
6c747b3c36 [Coding style] It should be only one if statement... 2013-12-23 20:32:42 +01:00
S. Razi Alavizadeh
bff614144b Added TabStackedWidget + ComboTabBar
Set of patches:
Introduce TabStackedWidget+ComboTabbar
[Windows] Fix enabling blur background in fullscreen
[ComboTabBar] Fix some issues with pinned tabs
[ComboTabBar] Don't use pointer to integer,
Implement TabStackedWidget::keyPressEvent() and fix changing tab by wheel event
Fix animation delay of dragged tab's buttons.
[ComboTabBar] Add themable scrollButtons
2013-12-23 20:30:54 +01:00
nowrep
ed8ec5ab4a [LocationBar] Fixed rendering selected text with visible popup completer. 2013-12-23 19:21:47 +01:00
S. Razi Alavizadeh
1cca824d66 [LocationBar] Don't move the cursor to the end if inline completion is empty. 2013-08-07 02:02:06 +04:30
S. Razi Alavizadeh
5d48edc7a3 [LocationBar][StatusBar] show precent decoded version of non-latin link and draw RTL path correctly.
- also fixed a compile issue
2013-07-05 02:51:07 +04:30
nowrep
d17b06ff65 [LocationBar] Delete key to hide inline completion 2013-06-09 12:27:25 +02:00
nowrep
c305811334 Correctly hide/show rss icon with "Always show go icon" option.
Regression from 05ca29715f
Closes #926
2013-06-06 11:54:22 +02:00
nowrep
05ca29715f [LocationBar] Option to always show go icon.
Also removed unused m_drawCursor member variable.
Closes #914
2013-06-05 00:02:43 +02:00
nowrep
4d01cfc9fa [LocationBar] Improved cursor painting when completion popup is visible. 2013-05-11 13:22:16 +02:00
nowrep
49ed4d05c4 Fixes in inline completion + enter completed text with left arrow key. 2013-05-11 00:17:38 +02:00
nowrep
77aa5b0f07 [LocationCompleter] Hide completion popup after Alt+Enter.
Hides completion popup after opening new tab with Alt+Enter shortcut.
2013-05-10 22:34:51 +02:00
nowrep
f651125c5c [LocationBar] Added inline completion for domains.
Closes #880
2013-05-10 22:33:36 +02:00
nowrep
d4c6dbd6c2 [Fix] WebSearchBar not respecting "select all on click" option
Closes #752
2013-03-15 11:46:07 +01:00
nowrep
5f5cf7417d [Code] Updated coding style with patched Astyle + normalized signals.
Code was formatted with patched astyle that correctly formats
foreach macro.
Normalize tool is now used to normalize all signal/slots signatures
to normalized format. It saves few reallocations on connections.
2013-03-06 09:08:29 +01:00
S. Razi Alavizadeh
825e14140c [Mac] fixed search highlighting on Mac, see #756, also don't paint cursor when showing popup. 2013-02-24 15:37:14 +03:30
nowrep
b4b1ce03d6 LocationBar: Proper fix for determing when to draw cursor.
Cursor will be properly drawn by Qt when starting writing
into empty lineedit (eg. select all and start typing).
After the completion popup is hidden for the first time, Qt will stop
drawing cursor and will only paint it again after losing and gaining
focus.
2013-02-22 15:20:28 +01:00
nowrep
64e6c36ed4 LocationBar: Fixed drawing cursor at correct position with popup opened. 2013-02-22 00:25:13 +01:00
S. Razi Alavizadeh
72c66cb218 [Mac] RSSManager/AdBlockDialog documentMode was disabled and fixed double cursor problem. 2013-02-21 00:20:07 +03:30
nowrep
789b4c8600 Select all on (double) click also available for websearchbar.
Closes #752
2013-02-12 08:16:05 +01:00
nowrep
09cf53a292 LocationBar: Don't paint cursor when showing most visited in popup. 2013-02-11 13:33:02 +01:00
nowrep
49b1e4c43c [code cleanup] Moved logic of locationbar's icon into separate classes. 2013-02-10 12:28:53 +01:00
nowrep
fcbf1e636b [Fix] Bad behaviour on clicking into selected text in locationbar.
Closes #751
2013-02-09 21:55:23 +01:00
nowrep
67d6d380cd [AutoFill] Added password icon into locationbar to choose username.
Closes #735
2013-02-08 18:44:26 +01:00
S. Razi Alavizadeh
e3db93740b Better RTL support for LocationCompleter and add direction property to dirlist.html 2013-02-04 15:14:56 +03:30
nowrep
780106ddd0 Draw cursor in locationbar when completion popup is shown.
Closes #645
2013-01-28 19:38:03 +01:00