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

705 Commits

Author SHA1 Message Date
David Rosca
cf3fa88942 Require Qt 5.7 2016-10-24 20:11:50 +02:00
David Rosca
ce9d3983a0 Bring back Save Page action
Only with Qt >= 5.7

Closes #2083
2016-09-18 12:09:38 +02:00
Kevin Kofler
b9bd2338e4 Add initial printing support with QtWebEngine >= 5.7.0 (#2068)
* Add initial printing support with QtWebEngine >= 5.7.0

This works by printing to PDF first, then sending the PDF to a printer
if printing to a physical printer was requested.

On *nix (including Mac OS X), we use the lpr command, which is typically
provided by CUPS nowadays. Currently, no options beyond the printer name
are passed, there is room for improvement there. (Okular has a
FilePrinter class that handles this in a more sophisticated way.)

On Windows, we use ShellExecuteW with the "printto" verb. In that case,
the printer name is unfortunately the only thing that can be passed. The
user experience may also be suboptimal depending on the PDF viewer
installed on the system. (E.g., Adobe Reader is reported to ignore
SW_HIDE.) And if there is no PDF viewer installed at all, it will of
course not work at all. But it is the best we can do without bundling
something like GhostScript (or requiring the user to install it).

* Printing: Let lpr autoremove the temporary file instead of QTemporaryFile

Only lpr knows for sure when it is safe to delete the temporary file.

* Printing: Use the callback version of printToPdf instead of the file one

The file version is also asynchronous and does not report when it is
done.

* Printing: Use async QProcess API instead of QProcess::execute to run lpr

This also required making tempFile a QTemporaryFile * instead of a
QTemporaryFile on the stack, because QTemporaryFile is a QObject and
cannot be copied.

* Printing: Adapt the FilePrinter from Okular to pass correct lpr args

The license of those files is GPLv2+, which is compatible with
QupZilla's GPLv3+ licensing.
2016-09-14 14:07:07 +02:00
David Rosca
35657e6005 Mac: Fix opening urls from FileOpen event 2016-09-04 15:42:51 +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
Vlad
9ae6c12a3c Show navigation in new tab in fullscreen mode (#2055) 2016-08-15 14:24:35 +02:00
spaeps
757c6525f5 Add short command line for all options (#2036) 2016-08-15 14:24:11 +02:00
Vlad
8e12480dc9 Show navigation in new tab in fullscreen mode (#2055) 2016-08-15 13:54:54 +02:00
spaeps
cf5702260c Add short command line for all options (#2036) 2016-07-25 10:24:49 +02:00
David Rosca
7ac832c689 Merge branch 'v2.0' 2016-07-10 17:26:42 +02:00
David Rosca
c12e473ab4 Use setWindowState to toggle fullscreen mode
Use setWindowState instead of showNormal() / showFullScreen()
as that may cause issues in some cases.
2016-07-10 17:26:07 +02:00
David Rosca
ec64be807b Merge branch 'v2.0' 2016-06-14 12:15:48 +02:00
David Rosca
a1cf84572d Use platformName() to check for X11 platform 2016-06-14 11:58:38 +02:00
David Rosca
521d058d71 Merge branch 'v2.0' 2016-06-08 16:25:36 +02:00
David Rosca
4832028600 Version 2.0.1 2016-06-08 16:24:44 +02:00
David Rosca
d1f266cc49 AdBlock: Apply all css rules in WebPage::cleanBlockedObjects 2016-05-27 15:58:21 +02:00
David Rosca
00df74bd64 Don't add user stylesheet script when usercss is empty 2016-05-27 15:57:40 +02:00
David Rosca
509c913cbe AdBlock: Apply all css rules in WebPage::cleanBlockedObjects 2016-05-27 15:55:30 +02:00
David Rosca
a515d92211 Don't add user stylesheet script when usercss is empty 2016-05-27 11:03:40 +02:00
David Rosca
c004d52db1 Run js code in ApplicationWorld with QtWebEngine 5.7 2016-05-10 10:47:35 +02:00
Vlad
be72477855 Remove redundant mkdir instruction (#1963) 2016-05-03 16:49:09 +02:00
David Rosca
9497013197 CommandLineOptions: Don't exit on unknown option
Makes it possible to pass options to Chromium
2016-04-23 09:46:49 +02:00
David Rosca
9a415bf40a Enable updates check only on Windows 2016-04-05 10:20:20 +02:00
David Rosca
055210ca0a Hide "Inspect Element" when web inspector is not enabled
Closes #1905
2016-04-05 09:30:43 +02:00
ravas
effda91f7c ensured the window geometry is remembered on OS X
* ensured the window geometry is remembered on OS X

It was always starting based on:
int windowWidth = desktop->availableGeometry().width() / 1.3;
int windowHeight = desktop->availableGeometry().height() / 1.3;

because quitApp isn’t called on OS X.

* ensured the window geometry is remembered on OS X (v2)

* tweaked coding style
2016-04-05 09:07:40 +02:00
David Rosca
5f84f29c4b Also backup settings.ini when incompatible profile is detected 2016-03-30 14:10:57 +02:00
David Rosca
a66e179b40 Misc fixes
Correctly initialize QJsonParserError
2016-03-30 11:53:41 +02:00
David Rosca
71b6d922be WebView: Handle create WebBrowserWindow
Instead of custom handling of shift + mouse click, use
QWebEngineView::createWindow. It should fix the issue with
JavaScript catching the mouse click performing some action
and QupZilla trying to open new window.

Closes #1898
2016-03-30 09:10:57 +02:00
David Rosca
91e6c2eb71 Mac: Fix crash on startup when showing incompatible profile dialog
QEvent::ApplicationActivate is sent when incompatible profile
warning QMessageBox is shown. We should not create new BrowserWindow
at this point as the initialization is not yet completed.

New window should really be only created when there is no
application window at all.

Closes #1890
2016-03-21 11:09:44 +01:00
trnkava1
89d565da6a Mac: Fixed opening Main Menu from button 2016-03-19 14:04:25 +01:00
David Rosca
f46364bc55 Fix typo changeOcurred -> changeOccurred 2016-02-26 10:43:34 +01:00
David Rosca
96bc812c50 Update copyright year to 2016 2016-02-25 18:50:49 +01:00
David Rosca
be110d2d8f Don't focus locationbar of non-empty tab when restoring session 2016-02-25 18:47:46 +01:00
David Rosca
54f3e78396 Fix grammar "Are you sure to..." -> "Are you sure you want to..." 2016-02-15 09:58:14 +01:00
David Rosca
06b2414d80 Focus locationbar on startup if url of current tab is empty 2016-01-27 13:23:28 +01:00
David Rosca
6c30379077 Enable Qt 5.6 HighDpiScaling 2016-01-27 13:05:25 +01:00
David Rosca
007d68a027 Pass only current profile when starting private browsing
Fix starting private browsing when qupzilla is run eg. with

  qupzilla -p profile_name
2016-01-25 13:52:12 +01:00
David Rosca
a49f1e2763 DataPaths: Use QStandardPaths 2016-01-25 12:13:43 +01:00
David Rosca
59ac47b08c Hide statusbar and menubar by default 2016-01-24 16:29:46 +01:00
David Rosca
7391a6403c Change qupzilla.com links to https 2016-01-02 12:38:16 +01:00
David Rosca
2bda7e54c4 Remove QString include from qzcommon.h
Closes #1781
2015-11-24 18:11:23 +01:00
David Rosca
9f6ec040bb QzTools: Add actionShortcut function 2015-11-12 17:00:43 +01:00
David Rosca
ac3d9b0f9b Fix showing webview with Breeze style
Closes #1686
2015-11-12 16:38:39 +01:00
David Rosca
c0809dc0b3 Fix exiting HTML fullscreen with F11 2015-11-06 17:55:57 +01:00
David Rosca
97ce417798 Fix use of QList::first() 2015-10-23 12:26:27 +02:00
David Rosca
6780335dc9 Drop showing build time in version info
Build time was a nice idea, but it only saved build time for
qzcommon.cpp (which was builded only with clean build) and it
also breaks reproducible builds.

A variation of this patch is already used by some distros.
2015-10-22 20:56:59 +02:00
srazi
3fd23a54cb Plugins: Added interface for extension's submenu to Tools menu, 2015-10-15 17:43:47 +02:00
srazi
ac48237eca Fix a rare crash. 2015-10-15 17:42:27 +02:00
David Rosca
5b82102075 Don't show "WebKit version: QtWebEngine" anywhere 2015-10-15 10:34:49 +02:00
David Rosca
96cc2d41e2 Remove non-working Work Offline option 2015-10-15 10:28:03 +02:00
srazi
dd5c5db142 Windows: After showing QZ window (1s delay) try to check as default and show dialogs as child of QZ window.
- Closes #1632
2015-10-15 10:10:29 +02:00
David Rosca
ccabc336c0 Fix crash when application style is externally changed
Closes #1707
2015-10-14 17:06:03 +02:00
David Rosca
387aee12c2 SiteInfo: Only show on non-internal pages 2015-10-14 12:50:30 +02:00
David Rosca
1a068e8c7d Use QWebEnginePage::RequestClose action to close tabs
It is no longer to use hacky onbeforeunload javascript handling when
closing tabs.
2015-10-12 12:07:01 +02:00
David Rosca
c3e0f39c9b ProfileManager: Drop support for old profiles 2015-10-08 11:52:40 +02:00
David Rosca
54f31237a5 Fix build 2015-10-08 11:49:22 +02:00
David Rosca
db058ff194 Remove use of QNetworkRequest in LoadRequest 2015-10-06 09:46:23 +02:00
David Rosca
1a87d443c0 WebTab: Fix pinning tabs that are not yet restored 2015-10-05 23:39:59 +02:00
David Rosca
8778ddc2dd Bring back support for setting AcceptLanguage header 2015-10-05 22:21:14 +02:00
David Rosca
4d05c1105a Bring back support for managing cookies 2015-10-05 22:03:53 +02:00
David Rosca
949faa5856 Add support for HTML FullScreen
Esc is used to leave fullscreen
2015-10-05 18:08:14 +02:00
David Rosca
637f38684d Settings: Bring back support for plugins (eg. Flash) 2015-10-05 17:29:09 +02:00
David Rosca
9cb66878ff Port to Qt 5.6 2015-10-05 17:20:53 +02:00
David Rosca
c24b0e92fd Remove TODO comment 2015-10-04 20:02:16 +02:00
David Rosca
a1d9740caf Allow to start more instances of the same profile with --no-remote 2015-10-04 19:54:59 +02:00
David Rosca
7a512918f8 WebView: Prevent handling input events twice
This fixes site info being opened twice when pressing Ctrl+I while
having focus in webview.

This makes the input events handling code very fragile, so let's hope
this won't break anything .. and QtWebEngine won't change the behavior
in following releases.
2015-10-04 19:04:25 +02:00
David Rosca
939ebeb2c9 Guard against null QProxyStyle::baseStyle()
See #1686 #1707
2015-10-01 20:25:22 +02:00
David Rosca
9f36401be9 Use QWebEngineSettings::defaultSettings instead of globalSettings 2015-10-01 18:02:36 +02:00
David Rosca
5e0ca7fed8 Preferences: Bring back external download manager option 2015-09-30 18:43:58 +02:00
David Rosca
942299e649 Remove Page Screen action from menus
Page screen functionality will hardly ever come back with QtWebEngine.
2015-09-30 13:28:18 +02:00
David Rosca
36929a45bf Another cleanups
Removed printPage() functions + removed SslManager
2015-09-29 23:41:08 +02:00
David Rosca
730577c0e4 BrowserWindow: showWebInspector -> toggleWebInspector
Using the Web Inspector action while inspector is already visible
will close it.
2015-09-29 23:35:16 +02:00
David Rosca
b0da5ba755 Bring back NetworkManager class 2015-09-29 11:45:39 +02:00
David Rosca
fcaa2b4559 EncodingMenu: Fix showing duplicate codecs in other menu
Also use alphanumeric sorting with QCollator
2015-09-29 11:14:20 +02:00
David Rosca
16b28a3a90 Preferences: Remove not working options
Also fix disabling local cache
2015-09-29 10:55:24 +02:00
David Rosca
5ba8f4dbb6 ProfileManager: Make appropriate functions static 2015-09-28 20:44:15 +02:00
David Rosca
24de161ad1 DataPaths: Use XDG paths + add Cache path
Also drop support for old deprecated config paths.

Closes #1411
2015-09-28 20:41:01 +02:00
David Rosca
7adc31337b Make afterLaunch settings enum 2015-09-28 14:51:38 +02:00
David Rosca
f28da4407f Remove pinnedtabs.dat on startup, not when saving session 2015-09-28 14:34:21 +02:00
David Rosca
6d37ab5ce4 Save pinned tabs per window if restoring session on start
No more pinned tabs restoring on wrong window. Also it is now possible
to have different pinned tabs on each window.
2015-09-27 18:54:19 +02:00
David Rosca
94bac52e1f Changed CookieManager, SiteInfo and Preferences to QWidget
For some reason, QzTools::setWmClass on SiteInfo resulted
in all webviews turning black.
2015-09-25 22:31:04 +02:00
David Rosca
748e6ce020 Ported all X11 specific code to xcb
It now also runtime checks for X11 platform, so it should
work on Wayland without recompilation;
2015-09-25 22:08:09 +02:00
David Rosca
f0408e9c13 Bring back SiteInfo
Security and Databases tabs are removed. Image previews only
works for local images.
2015-09-25 18:31:05 +02:00
David Rosca
a115d91564 Remove Caret Browsing option
No longer available with QtWebEngine
2015-09-25 17:45:47 +02:00
David Rosca
67b5a5337b Another cleanups
Includes enabling again SpeedDial integration in Bookmarks
star icon in locationbar.
2015-09-25 17:02:14 +02:00
David Rosca
02f5e032fc Bring back qupzilla:restore page
For now, it doesn't support selecting which windows/tabs not to
restore. It is only possible to start new session or restore previous.
2015-09-24 22:46:35 +02:00
David Rosca
cde3ed179b Always show restore page when starting after crash 2015-09-24 19:37:40 +02:00
David Rosca
8521b782bd CommandLineOptions: Port to QCommandLineParser
This comes with removing all 2-chars short options,
only long options are now available.
That means there are no longer both "-nw, --new-window" options,
only "--new-window".
2015-09-09 23:37:43 +02:00
David Rosca
ff28f1f211 Another cleanup
- bring back support for Speed Dial Ctrl shortcuts
 - bring back support for one key shortcuts
2015-08-31 22:14:45 +02:00
David Rosca
86a4f3d724 Remove support for transparent background 2015-08-31 21:40:08 +02:00
David Rosca
32a0db31b3 AutoFill: Initial port to QtWebEngine
There are still issues with completing forms in frames
2015-08-31 18:56:52 +02:00
David Rosca
758fd6c687 Fix all build warnings 2015-08-30 17:42:58 +02:00
David Rosca
1756c51546 Remove remaining RSS code 2015-08-30 10:40:45 +02:00
David Rosca
495ebc785e Don't link to unused Qt modules 2015-08-29 18:32:57 +02:00
David Rosca
ef71be2a0e Scripts: Only emit created Event when external is not null 2015-08-29 18:22:45 +02:00
David Rosca
fc204b3b46 SpeedDial: Fix to work with QWebChannel
Page thumbnails are not yet implemented, otherwise it more or less
works.
2015-08-28 19:25:45 +02:00
David Rosca
b9d5851ef5 Renamed src/webkit -> src/webengine 2015-08-28 16:17:29 +02:00
David Rosca
43a15ff547 Fix creating new config directory 2015-08-18 10:13:44 +02:00
David Rosca
a745e4776f Fix build with Qt 5.5rc 2015-06-24 10:46:57 +02:00
David Rosca
f747ce3e9d Use better fallback for styleName() when proxy style is null 2015-06-11 21:11:10 +02:00
David Rosca
431610215d AdBlock: Bring back domain specific element hiding rules 2015-05-27 19:17:29 +02:00
David Rosca
c75eb32367 Bring back support for user style sheet
This also means that AdBlock global hiding rules are
working again.
2015-05-27 18:48:45 +02:00
David Rosca
bb995d7984 Fix some warnings 2015-05-25 10:39:39 +02:00
David Rosca
7d9a07b379 Bring back show source support (using view-source: url) 2015-05-24 21:28:45 +02:00
David Rosca
89dedf0a0e Bring back qupzilla: scheme pages 2015-05-24 20:41:49 +02:00
David Rosca
278b725571 Bring back support for downloading files
All files are now automatically downloaded to the specified
directory. Due to QtWebEngine API changes, it is not possible
to ask user where to save the file.
2015-05-24 19:22:32 +02:00
David Rosca
6da67fc53d Correctly create off-the-record profile for private browsing 2015-05-24 17:29:41 +02:00
David Rosca
c08a584333 Set correct paths for cache and persistent data
Also disable persistent data storage when in private mode
2015-05-22 21:49:00 +02:00
David Rosca
8d34cbc02e SuperMenu: Fix enabling Select All and Find actions 2015-04-09 20:07:56 +02:00
Javier Llorente
44af6ef806 fix for bug #1625 2015-03-19 23:22:05 +01:00
David Rosca
8d7cfb0e2a Remove some Qt 4 specific code 2015-02-26 12:17:47 +01:00
David Rosca
7f27f95a1a Fix build 2015-02-08 11:52:09 +01:00
David Rosca
e3deb6cfd5 More cleanups + remove now unusued WebHistoryInterface 2015-02-08 11:51:19 +01:00
David Rosca
226c721d57 BrowserWindow: Remove static WEBKITVERSION 2015-02-08 11:45:15 +01:00
David Rosca
f366dbd11f Encoding: Make character encoding menu working again 2015-02-08 11:42:01 +01:00
David Rosca
e4852e7d88 MainApp: Fix loading fonts settings 2015-02-08 11:32:00 +01:00
David Rosca
81639ea923 Port settings to use QWebEngineSettings 2015-01-27 12:15:00 +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
Mladen Pejaković
fbc7c73616 Update fix 2014-12-30 14:51:36 +01:00
Mladen Pejaković
b86081cb66 Correct profile path. Fixes #1570 2014-12-29 18:28:14 +01:00
David Rosca
c1901cd81d Don't try to load translations for C locale 2014-12-27 12:32:16 +01:00
S. Razi Alavizadeh
393009f4d1 Show navigation bar when calling openLocation() in full screen mode.
- Closes #1464
2014-12-25 00:10:30 +03:30
S. Razi Alavizadeh
94afd29d67 Windows,Qt5: Fixed compile issue.
- It fixes: error: C2308: concatenating mismatched strings Concatenating wide
- See: http://blog.qt.digia.com/blog/2014/06/13/qt-weekly-13-qstringliteral/
2014-12-24 23:38:38 +03:30
S. Razi Alavizadeh
d28154c3d2 ProxyStyle: Set tabbar alignment to left
Closes #1547
2014-12-16 15:18:57 +01:00
S. Razi Alavizadeh
8a7af28165 MainApplication: The getWindow() try to return the current active or last activated window 2014-12-02 22:05:17 +03:30
Eion Robb
f5606e9326 Fix for compiling Windows version with mingw 2014-11-24 09:28:12 +13:00
David Rosca
1e3556696c Qt5: Enable HighDPI pixmaps 2014-11-14 09:28:42 +01:00
David Rosca
24ff9285f5 Use desktop availableGeometry for default window size calculation 2014-11-10 12:15:23 +01:00
David Rosca
03c875b229 Set default window size to be desktop size / 1.3 2014-11-10 11:50:53 +01:00
David Rosca
476bd93f55 Mac: Open new window when clicking on Dock icon
Closes #1517
2014-11-08 10:21:01 +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
05c1fec5c6 Preferences: Prevent opening more than one window 2014-11-07 17:16:22 +01:00
David Rosca
b81c45486f Fix build on Mac with Qt4
QKeySequence::FullScreen was only added in Qt5

Closes #1513
2014-11-04 10:29:04 +01:00
David Rosca
1ff1969941 Mac: Fix Preferences... action in application menu
Make sure the Configuration Information action won't be
detected as "Preferences..." action.

Also use native shortcut for fullscreen (Ctrl+Meta+F)

Closes #1332
2014-11-01 23:19:52 +01:00
David Rosca
3a9f2f9e78 Settings: Allow nesting instances without breaking groups
Closes #1511
2014-11-01 17:50:26 +01:00
David Rosca
5779b6b835 Adjust default font sizes 2014-11-01 10:01:29 +01:00
David Rosca
160190dfb3 master branch is now 1.9.0 development version 2014-10-11 13:11:49 +02:00
David Rosca
ee3322c64a Fix crash when passing messages to running instance from commandline 2014-10-10 13:40:31 +02:00
David Rosca
30146476d6 Use bigger default font sizes 2014-10-08 22:12:22 +02:00
David Rosca
21fb7bff31 Preferences: Don't crash when opening with null BrowserWindow
Closes #1488
2014-10-07 16:15:23 +02:00
David Rosca
6390eb215b Mac: Fix crash on startup due to invalid m_mainMenu pointer
Closes #1485
2014-10-07 11:10:31 +02:00
David Rosca
aac873bbb6 Show error message when QSQLITE plugin is not available 2014-10-05 16:13:00 +02:00
David Rosca
6d06975ccb DataPaths: Coding style fixes 2014-10-03 09:21:40 +02:00
David Rosca
021b90f7b3 CookieManager: Switch to QDialog
This fixes issue when Cookie Manager may have been opened
under current window (eg. in Preferences)
2014-10-03 09:19:39 +02:00
S. Razi Alavizadeh
768e3ac143 Correct fix for #1479 and finally fix compile issue from two recent commits.
- Closes #1482
2014-10-03 04:04:59 +03:30
S. Razi Alavizadeh
a21d803b94 Fix compile issue after last commit. 2014-10-03 03:54:37 +03:30
S. Razi Alavizadeh
04721c6478 Make sure the Config and Temp pathes exist.
- Closes #1479
2014-10-03 00:34:09 +03:30
David Rosca
52f3811916 SpeedDial: Save using AutoSaver
Prevents losing dials in case of crash.
2014-09-29 18:23:42 +02:00
David Rosca
dc29f6bde5 QzTools: Add function to obtain url of QWebFrame
QWebFrame::url() may be empty, and in that case QWebFrame::baseUrl()
should be used

The issue with empty frame url caused AutoFill to not complete
such frames.

Closes #1465
2014-09-29 16:14:49 +02:00
David Rosca
eec67d1941 Fix building with Qt 4.7 2014-09-26 19:28:24 +02:00
David Rosca
cf044356fa Version 1.8.0 2014-09-26 10:35:35 +02:00
David Rosca
35b2fb22b4 Remove unnecessary qDebugs 2014-09-26 09:53:45 +02:00
David Rosca
b4f9a354d7 Plugins: Load plugins before creating first window 2014-09-25 17:51:38 +02:00
David Rosca
01b4fd971f MainMenu: Fix shortcuts for toggling sidebars 2014-09-25 17:36:51 +02:00
David Rosca
68087d5a3f QzCommon: Export all static strings (appname, buildtime, ..) 2014-09-25 15:00:56 +02:00
David Rosca
56dcdfe4a2 Mac: SuperMenu button is now available on Mac 2014-09-25 14:42:36 +02:00
David Rosca
e83d75f251 Mac: Re-enable system-wide menu menu bar 2014-09-25 14:27:25 +02:00
David Rosca
13b1614e11 Use std::sort instead of obsolete qSort 2014-09-25 14:13:26 +02:00
David Rosca
767e01fd22 Mac: Re-enable dock menu with New Tab, New Window and New Private Window actions 2014-09-25 14:09:26 +02:00
David Rosca
c607a2f717 FileMenu: Fix showing state of Work offline action 2014-09-25 14:05:54 +02:00
David Rosca
8c8789a05f BrowserWindow: Always set "private" property to browser window
Set this property also when private mode is disabled
2014-09-17 16:19:27 +02:00
David Rosca
8b3da86976 Unix: Use /tmp/qupzilla-$USER as temp path
It makes it possible to run QupZilla on more accounts at the same time
2014-08-31 12:52:01 +02:00
David Rosca
de4f7115f8 Merge pull request #1431 from kdave/preferences-ctrl-q
[Preferences] add option to set Ctrl-Q behaviour (Quit or nothing)
2014-07-23 21:36:48 +02:00
Oleg Shparber
272c0c7807 Refactor encoding menu creation
* Use of codec MIBs instead of names significantly decreases
  number of iterations
* Remove duplicated codecs
* Fix memory leaks which were caused by wrong parenting and
  empty menus
* Do not add separator if menu is empty
2014-07-22 01:02:08 -07:00
David Sterba
ed9625ab5e [Preferences] add option to set Ctrl-Q behaviour (Quit or nothing)
Motivated by #695 which targets broader task, Ctrl-Q behaviour is one
that stands out. Accidentally pressing it instead of Ctrl-W can have
disasterous consequences or is annoying. Other browsers provide either
generic keyboard shortcuts configuration (Opera) or an extension/plugin
to disable the behaviour (FF).

For the record of the usability demand:
https://code.google.com/p/chromium/issues/detail?id=59621
https://bugzilla.mozilla.org/show_bug.cgi?id=550559
2014-07-17 23:05:38 +02:00
David Rosca
9ed63f6323 [CloseDialog] Change text - there will always be more than 1 tab opened 2014-07-08 19:27:17 +02:00
David Rosca
6d66c5a470 [Fonts] Use own default font sizes 2014-07-08 18:38:02 +02:00
S. Razi Alavizadeh
4ea5974914 [Windows] Fixed some issue with the blur background effect,
- Also moved all of codes related to blur effect of tabbar to ComboTabBar.
2014-05-29 01:08:42 +04:30
Mladen Pejaković
0fc6a30933 Implement offline mode. Closes #1241 2014-05-20 18:35:49 +02:00
Mladen Pejaković
ce7ea04f4a Language strings fixes. Closes #1318 #1329 #1337 2014-05-14 18:29:20 +02:00
David Rosca
39430458b3 [WebInspector] Add F12 shortcuto to show Web Inspector 2014-05-11 14:25:57 +02:00
David Rosca
d534062cdd [Windows] Load font.tff (if exists) and set it as default font
This is needed for N'ko translation as default Windows fonts
doesn't contain glyphs for N'ko language.

Closes #1223
2014-05-04 20:21:41 +02:00
David Rosca
e379b1b655 [MainApp] Open a new window when starting app while already running
Open a new browser window when attempting to start another instance.

See #1315
2014-05-01 14:08:06 +02:00
David Rosca
e007620da4 Merge pull request #1305 from char101/bug/fix-compile-error-1
Fix compile error with vc++ 2013
2014-04-29 08:23:00 +02:00
David Rosca
dc48ddbf47 [DataPaths] Use classic array instead of QHash for storing paths 2014-04-26 12:35:14 +02:00
David Rosca
d29abb4e54 [Mac] Use ~/Library/Application Support/QupZilla as ConfigPath
+ little cleanup in variable naming (homePath -> oldConfPath)

See #1302
2014-04-26 12:23:06 +02:00
David Rosca
5b25b4bda6 [DataPaths] USE_LIBPATH is always defined on Unix
No need to add "/usr/lib/qupzilla" to the Plugins path if
USE_LIBPATH is not set, as "/usr/lib/qupzilla" won't exist on
non-Unix platform.

[ci skip]
2014-04-24 12:03:18 +02:00
Charles
3175840126 Fix compile error with vc++ 2013
Qz::VERSION is not exported
2014-04-23 15:12:32 +07:00
David Rosca
0a8337758e [Themes] Fix loading linux.css and mac.css on Mac/Linux 2014-04-20 12:28:33 +02:00
David Rosca
b3a9b99ac7 [ToolButton] Manually handle showing menu
ToolButtons now don't have menu indicators.
This fixes issue with Back/Forward buttons in Navigation Toolbar
being more wide than other buttons.
2014-04-19 13:12:04 +02:00
David Rosca
8283a5a42e [Styles] Don't mention to use [style=QtStyle] selectors in comment
It is not available in current Qt releases

QzSchemeHandler+AboutDialog: Fixed coding style
2014-04-19 12:06:16 +02:00
David Rosca
535cc3e73a [QzCommon] Move constants initialization into source file (.cpp)
Plugins are now checking for a match of version that were built with
in Plugin::testPlugin() function.
2014-04-17 15:20:54 +02:00
David Rosca
cd5ea7d66a [Build] Fixed build after last commit 2014-04-16 09:17:57 +02:00
David Rosca
72f5d49074 [MainApp] Try to use windowIcon from icon theme 2014-04-16 09:13:17 +02:00
David Sterba
f7552e42aa [BrowserWindow] Add slash as a single key shortcut for search 2014-04-10 11:09:29 +02:00
nowrep
a560b7f498 [TabWidget] Make sure current tab is loaded on session restore
Fixes issue with current tab not being loaded on session restore
with "don't load tabs until selected" option.
It was needed to switch to other tab and then switch back to first tab
to actually load it.

Also pause updates of the whole browser window when restoring session.
2014-04-08 15:51:00 +02:00
David Sterba
683ec42736 [BrowserWindow] Enable single key shortcuts
Translate single keys to shortcuts:

1 - previous tab
2 - next tab
(basic Opera compatibility)

There are more to choose from, but 1 and 2 are probably the most used.
Full list:
http://help.opera.com/Windows/9.50/en/keyboard.html#single-key

Configurable in preferences/Keyboard shortcuts, off by default.

Closes #1172
2014-04-07 14:50:38 +02:00
nowrep
78ba3875d9 [IconTheme] Fixed setting fallback icon theme
Closes #1274

[ci skip]
2014-04-07 09:31:13 +02:00
nowrep
7824f3862e [Windows] Correctly fix building after 6473bace10 2014-04-07 08:25:07 +02:00
S. Razi Alavizadeh
39c9fec3dd [Windows] Fixed compile issues after aa248893 and 7f3d8ee7 2014-04-06 17:38:36 +04:30
nowrep
db664184d0 [AdBlock] Improved performance of loading rules
Don't use regexps for parsing rules.
Added benchmark for loading subscriptions

Before:

********* Start testing of AdBlockParseRule *********
Config: Using QTest library 4.8.6, Qt 4.8.6
PASS   : AdBlockParseRule::initTestCase()
RESULT : AdBlockParseRule::parseEasyList():
     596.3 msecs per iteration (total: 2,982, iterations: 5)
PASS   : AdBlockParseRule::parseEasyList()
PASS   : AdBlockParseRule::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped
********* Finished testing of AdBlockParseRule *********

After:

********* Start testing of AdBlockParseRule *********
Config: Using QTest library 4.8.6, Qt 4.8.6
PASS   : AdBlockParseRule::initTestCase()
RESULT : AdBlockParseRule::parseEasyList():
     481.8 msecs per iteration (total: 2,409, iterations: 5)
PASS   : AdBlockParseRule::parseEasyList()
PASS   : AdBlockParseRule::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped
********* Finished testing of AdBlockParseRule *********
2014-04-06 13:36:42 +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
aa248893c1 [TabWidget] Renamed getTabBar() to just tabBar() 2014-04-04 17:14:31 +02:00
nowrep
7469aced65 [Cleanup] Deleted unused ActionCopy class
Also added myself to ComboTabBar copyright
2014-04-02 20:42:29 +02:00
nowrep
98907c2055 [WebTab] Reworked tab attaching/detaching.
This also fixes crash on detach
2014-04-01 18:47:19 +02:00
nowrep
551ccd6e3c [BrowserWindow] Make sure window is created with at least one tab 2014-04-01 16:34:08 +02:00
nowrep
7369e86a0a [SearchAction] Don't block Ctrl+F shortcut from pages
It is now possible to search in WebInspector with Ctrl+F

[ci skip]
2014-03-31 18:03:35 +02:00
nowrep
2d9dfa9db7 [WebInspector] WebInspector is now displayed inside WebTab
It no longer uses QDockWidget. Instead, it is plain QWidget with
close button in top right corner.
2014-03-31 17:57:35 +02:00