1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00
Commit Graph

4696 Commits

Author SHA1 Message Date
90ec7bcf99
Only try to save data when they changed
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:24 +02:00
9628b4b7c5
Use SiteSettings struct to move the settings data
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:24 +02:00
90181a0606
Update loops in getSiteSettings method
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:24 +02:00
5e0a779d53
Add preparations for handling Private mode setting
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:24 +02:00
653e7aa429
Rewrite permissions in SiteInfo window
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:24 +02:00
5032c504fb
Clean the unused code
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:24 +02:00
942608b780
Rework attributes
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:24 +02:00
d433b2292f
More work and rewrites of ideas
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:24 +02:00
8a07a7f724
Remove unneeded method
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
2df74f2f05
Update database column names
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
25261d5402
Clean and set default attributes for falkon pages
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
59e0517683
Always update default value for attribute
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
a2380e0b24
Add a little framework for webAttributes
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
4c9213bc30
A small step to add full nice Attribute support
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
bbad4d86a8
Start working on QWESettings Attributes
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
6f0249f78b
GIT_SILENT SiteSettings: Remove unused method
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
2e3e3749b4
Add implementation for SiteInfo Permissions
Done in nasty way which generates a lot of requests to database and
needs to be optimized.

Fixed an error when reading set permission.

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
13ab031a5e
Tighten switches, remove empty lines between cases
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
a2eb0ad5ba
Fix typo "ASK" > "Ask"
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
109f8e0d3a
Show Ask for Default permission if set to Default
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
226c1acbd1
Show current default value beside the default option in site info
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
9f6527ce21
Change default permission to ask
Default value of default was set to default, silly me.

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
9365cdce41
Add mockup permissions UI into SiteInfo window
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
e6a6a64d68
Enable alternateRowColors in Html5PermissionDialog
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
5b473b6866
Remove Q_UNREACHABLE from my new code
It is not used anywhere in Falkon code, and it seems to close program
when it is reached (at least the compiled as debug version).

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
ab0ff451c2
Add implementation of default permissions dialog
Still work in progress

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
5eff4dc0e5
Asdd UI for default HTML5 permission settings
- It is a dummy UI, may change in the future.

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
0c462f0a1c
SiteSettings add Ask option for permission
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
b3e5c716dd
Constify things a bit
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
81eaf7c32f
Add data cache in HTML5PermDialog
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
f8da0b0048
Update HTML5 permissions dialog
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
7c28f6e73d
Rewrite HTML5 permissions to use database
- The permission dialog in preferences is broken

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
d0b9510b73
Rewrite JS and IMGs to use SiteSettingManager
- The set* functions needs a redesign
- There is a chance that the database update will take longer than the
  time it takes to start reloading, need to stress test or redesign.
- Might still need to look ar StatusBarIcons plugin for optimizations
  and potential changes
- I am still unsure how to store data in the database, so far I use
  numbers which is good I believe since I want to have 3 states,
  (default, allow, deny)
- Might need to add overloaded functions with bool arguments to make the
  rest of the code simpler.

PS: I believe it is fine to have a bit more complicated logic in
backend while the frontend will stay simple.

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
b10b310d11
Add numRowsAffected support to SqlQueryJob
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
dc9ff73693
Initial introduction of SiteSettingsManager
- New database SQL querry
- Update current database
- Preparation for setting site settings

WIP: This is an initial draft and the design of the database table might
change as the development goes on.
WIP2: Even this commit and commit message will be scraped.

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:22 +02:00
l10n daemon script
60fc262bc0 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-05-14 01:17:03 +00:00
l10n daemon script
0c0de256d5 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-05-12 01:19:01 +00:00
l10n daemon script
57e867035a SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-05-04 01:21:00 +00:00
l10n daemon script
c938385c07 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-04-29 01:18:23 +00:00
Emir SARI
48133ea417 Apply i18n to file size and download speed values 2024-04-02 21:28:25 +00:00
l10n daemon script
3e935e6779 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-03-28 01:17:46 +00:00
l10n daemon script
d302dab557 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-03-09 01:14:16 +00:00
l10n daemon script
6ca937e668 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-02-05 01:12:58 +00:00
l10n daemon script
518b65037c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-02-03 01:14:13 +00:00
l10n daemon script
56c9abbebc SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-01-26 01:13:08 +00:00
ea46326c2e SpeedDial: Add option to lock the dials position
BUG: 403684
FIXED-IN: 24.04.0

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-01-13 10:16:04 +00:00
08f7a45021
Accept back and forward mouse button events
QtWebEngine engine seems to has its own binding for these buttons in the
mouse release event while Falkon mostly works with mousePress events.

This causes double action on the same button click.

BUG: 479550

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-01-10 00:54:10 +01:00
Daozhong Ma
435962a9ae Fix addressbar dropdown is compressed
BUG: 478748
2023-12-31 06:35:37 +00:00
Yifan Zhu
aba225af72 GIT_SILENT format changed lines 2023-12-22 20:03:08 +00:00
Yifan Zhu
0681dccfcc Fix compilation against Qt 6.7
QUrl::fromEncoded(const QByteArray &url...) is removed in Qt 6.7 in
favor of QUrl::fromEncoded(QByteArrayView input...).
Wrap the corresponding argument in QByteArray() to make the cast explicit.
This is backwards-compatible with old Qt versions.

See qt/qtbase commit aa481854a98b1be0a061257ae4e817adcf1f77fc

BUG: 478857
2023-12-22 20:03:08 +00:00
6ed4af8197
Fix loading of SpeedDial userscript
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-12-20 09:38:50 +01:00
1922ac6cda
Port away from deprecated event::pos()
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-12-17 12:00:00 +01:00
69fa7d48e8
Port away from QApplication::fontMetrics
GIT_SILENT

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-12-17 12:00:00 +01:00
6cc870be1d
Port away from old QContextMenuEvent constructor
GIT_SILENT

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-12-17 12:00:00 +01:00
71e37d7985
Port away from deprecated addAction() syntax
GIT_SILENT

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-12-17 12:00:00 +01:00
62a3fb5f3d
Qt6 Replace + operator with | operator
GIT_SILENT

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-12-17 12:00:00 +01:00
5264255af2
Port to Qt6, wrap in QByteArrayView
GIT_SILENT

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-12-17 12:00:00 +01:00
e7d9ecaa3a
Qt6 Port position related functions
GIT_SILENT

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-12-17 11:59:59 +01:00
01e1fa61b4
Port from QVariant::Type to QMetaType::Type
GIT_SILENT

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-12-17 11:59:59 +01:00
8f64c610ce
Display correct URL in urlBar after window restore
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-12-16 23:19:29 +01:00
5b31acc7f5
Python: Port from Pyside2 to Pyside6
BUG: 477234
FIXED-IN: 24.02.0

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-12-07 22:08:37 +01:00
Martin Rodriguez Reboredo
bfba0a5d5e
MainApplication: Enable localStorage for private
Signed-off-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
2023-12-07 12:07:19 -03:00
84bda27f30
SBI: Fix "Proxy Manager" configuration dialog.
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-12-05 20:50:29 +01:00
759b3f5ea5
History: Store addresses with custom schemes
BUG: 406375
FIXED-IN: 24.02.0

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-12-04 21:32:20 +01:00
63bf4a5cce
SpeedDial: Fix tooltip on Reload button
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-12-03 18:35:03 +01:00
Laurent Montel
3a31ea79b2 It's qt6 only 2023-11-29 08:35:11 +01:00
a11233cd5c
Process the "--help-all" CLI argument
BUG: 477492
FIXED-IN: 23.08.4

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-11-27 07:43:47 +01:00
f2460c1f8e
Fix StartPage search engine default configuration
BUG: 419530
FIXED-IN: 23.08.4

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-11-26 23:13:08 +01:00
fe3c55b3d0
Removed deprecated: AA_DisableHighDpiScaling
NO_CHANGELOG

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-11-23 22:34:20 +01:00
36b13e452d
Fix crash when starting new session after crash
BUG: 408701
FIXED-IN: 23.08.4

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-11-23 20:37:28 +01:00
5ab952e68f
Qt6 - Fix Session restore
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-11-23 17:19:29 +01:00
845c241f21
Port to std::as_const
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-11-21 21:05:09 +01:00
4699c80baf
Fix building PyFalkon with KF6
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-11-21 01:22:07 +01:00
883f24aeba
Always use nullptr for zero pointer
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-11-21 01:12:28 +01:00
eb5b015a5d
Update ECM to KF 5.240.0 version
Update code to make it compile.

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-11-20 23:50:18 +01:00
e02a8ee664
Remove Qt5 support 2023-11-20 23:50:18 +01:00
1e9b37bccb
GnomeKeyring: Port to Qt6
Limit the timestamp to 32 bits.

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-11-13 22:02:14 +01:00
l10n daemon script
77db3f2fc7 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-11-07 02:11:52 +00:00
l10n daemon script
fae380f409 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-11-04 11:52:13 +00:00
27c59ed16a
Fix form detection for password managerä
Original Author: Davide

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-10-17 21:40:27 +02:00
70bf79e371
Qt6 - Fix thumbnailer
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-09-28 22:55:50 +02:00
b0541447c5
Small Qt6 port adjustments
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-09-28 21:06:10 +02:00
Tiernan Hubble
f403472a8c
Fix X11 xcb integration in Qt6. 2023-09-28 21:06:10 +02:00
Tiernan Hubble
f4efa66417
Apply qt6 changes to KDE download manager integration. 2023-09-28 21:06:10 +02:00
Tiernan Hubble
d9c8524cdd
Make Qt 6 builds use a custom profile instead of the QtWebEngine defaultProfile. In Qt 6, defaultProfile is off-the-record which means every session would behave like private/incognito mode. 2023-09-28 21:06:10 +02:00
Tiernan Hubble
f8c14a7671
Fix warning about unregistering URL handlers. 2023-09-28 21:06:10 +02:00
Tiernan Hubble
306d4addd0
Fix mouse events with Qt 6. 2023-09-28 21:06:10 +02:00
Tiernan Hubble
777789f509
Fix Python plugin build with Qt 6.5. 2023-09-28 21:06:10 +02:00
Tiernan Hubble
405295b4e1
Support KDE Frameworks 6 integration. 2023-09-28 21:06:10 +02:00
Tiernan Hubble
0152a9cdeb
Fix and re-enable remaining plugins. 2023-09-28 21:06:10 +02:00
Tiernan Hubble
73554c230b
Build with pyside6. 2023-09-28 21:06:10 +02:00
Tiernan Hubble
d10379268b
Remove a couple of extra lines and unnecessary changes, and make TODOs searchable. 2023-09-28 21:06:10 +02:00
Tiernan Hubble
632cd4c4ba
Initial support for building with Qt6/KF6. 2023-09-28 21:06:09 +02:00
c32c3a8aaf
Remove keyboard shortcut for removed RssReader
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-09-01 15:57:54 +02:00
80bd47ef46
Port away from many deprecated things
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-08-21 22:18:27 +02:00
8acab0295a SessionRestore: Set tab title after at the end
This change saves a lot of recalculations which is done after each tab
is added.

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-07-29 20:50:37 +00:00
8b2721e85c Skip show/hide close button when restoring session
BUG: 455012

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-07-29 20:50:37 +00:00
l10n daemon script
f127711f36 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2023-07-28 01:41:35 +00:00
205018775c
Add support for custom url schemes
BUG: 434099
FIXED_IN: 23.08.0

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-07-25 00:04:34 +02:00
b48132a806
ZoomLabel - Make the label text translateable
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2023-07-16 18:10:19 +02:00