+# Version 0.5 (11 October 2023)
+ * Add bookmarks.
+ * Add zoom controls to the status bar and a default zoom shortcut.
+ * Add keyboard shortcuts for the URL toolbar actions.
+ * Add an action to view page source.
+ * Change the domain settings combo boxes to list enabled above disabled.
+ * File downloads can now show the size before the download begins.
+ * Add PIE (Position Independent Executable) compiler flags.
+ * Fix a bug that sometimes allowed multiple domain settings to be created.
+ * Fix the download notification not being cleared on Xfce.
+
# Version 0.4 (13 June 2023)
* Add a setting to control spatial navigation.
* Add an action to reload and bypass cache.
<legalnotice>&FDLNotice;</legalnotice>
<!-- Last update. -->
- <date>2023-10-10</date>
+ <date>2023-10-11</date>
<!-- The version of Privacy Browser this documentation is written for. -->
<releaseinfo>&privacybrowser; version 0.5</releaseinfo>
</listitem>
</varlistentry>
- <!-- Add Bookmark. -->
- <varlistentry id="add-bookmark">
+ <!-- View Bookmarks Toolbar. -->
+ <varlistentry id="view-bookmarks-toolbar">
<term>
<menuchoice>
<shortcut>
- <keycombo action="simul">&Ctrl;<keycap>B</keycap></keycombo>
+ <keycombo action="simul">&Ctrl;&Alt;<keycap>B</keycap></keycombo>
</shortcut>
<guimenu>Bookmarks</guimenu>
- <guimenuitem>Add Bookmark</guimenuitem>
+ <guimenuitem>View Bookmarks Toolbar</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
- Add a new bookmark.
+ Toggle the visibility of the bookmarks toolbar.
</para>
</listitem>
</varlistentry>
- <!-- Add Folder. -->
- <varlistentry id="add-folder">
+ <!-- Add Bookmark. -->
+ <varlistentry id="add-bookmark">
<term>
<menuchoice>
<shortcut>
- <keycombo action="simul">&Meta;<keycap>F</keycap></keycombo>
+ <keycombo action="simul">&Ctrl;<keycap>B</keycap></keycombo>
</shortcut>
<guimenu>Bookmarks</guimenu>
- <guimenuitem>Add Folder</guimenuitem>
+ <guimenuitem>Add Bookmark</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
- Add a bookmark folder. The meta key on most keyboards is the Windows key.
+ Add a new bookmark.
</para>
</listitem>
</varlistentry>
- <!-- View Bookmarks Toolbar. -->
- <varlistentry id="view-bookmarks-toolbar">
+ <!-- Add Folder. -->
+ <varlistentry id="add-folder">
<term>
<menuchoice>
<shortcut>
- <keycombo action="simul">&Ctrl;&Alt;<keycap>B</keycap></keycombo>
+ <keycombo action="simul">&Meta;<keycap>F</keycap></keycombo>
</shortcut>
<guimenu>Bookmarks</guimenu>
- <guimenuitem>View Bookmarks Toolbar</guimenuitem>
+ <guimenuitem>Add Folder</guimenuitem>
</menuchoice>
</term>
<listitem>
<para>
- Toggle the visibility of the bookmarks toolbar.
+ Add a bookmark folder. The meta key on most keyboards is the Windows key.
</para>
</listitem>
</varlistentry>
</sect2>
</sect1>
- <!-- Cookies Dialog. -->
- <sect1 id="cookies-dialog">
- <title>Cookies Dialog</title>
+ <!-- Cookies Dialog. -->
+ <sect1 id="cookies-dialog">
+ <title>Cookies Dialog</title>
- <para>
- The cookies dialog is accessed through <xref linkend="settings-cookies"/> (see <xref linkend="cookies"/>).
- </para>
+ <para>
+ The cookies dialog is accessed through <xref linkend="settings-cookies"/> (see <xref linkend="cookies"/>).
+ </para>
- <sect2 id="cookies-dialog-commands">
- <title>Commands</title>
+ <sect2 id="cookies-dialog-commands">
+ <title>Commands</title>
- <variablelist>
- <!-- Add Cookie. -->
- <varlistentry id="add-cookie">
- <term>
- <command>
- <keycap>A</keycap>
- </command>
- </term>
+ <variablelist>
+ <!-- Add Cookie. -->
+ <varlistentry id="add-cookie">
+ <term>
+ <command>
+ <keycap>A</keycap>
+ </command>
+ </term>
- <listitem>
- <para>
- Open the add cookie dialog.
- </para>
- </listitem>
- </varlistentry>
+ <listitem>
+ <para>
+ Open the add cookie dialog.
+ </para>
+ </listitem>
+ </varlistentry>
- <!-- Edit Cookie. -->
- <varlistentry id="edit-cookie">
- <term>
- <command>
- <keycap>E</keycap>
- </command>
- </term>
+ <!-- Edit Cookie. -->
+ <varlistentry id="edit-cookie">
+ <term>
+ <command>
+ <keycap>E</keycap>
+ </command>
+ </term>
- <listitem>
- <para>
- Open the edit cookie dialog. This command is only valid if a cookie is currently selected.
- </para>
- </listitem>
- </varlistentry>
+ <listitem>
+ <para>
+ Open the edit cookie dialog. This command is only valid if a cookie is currently selected.
+ </para>
+ </listitem>
+ </varlistentry>
- <!-- Delete Cookies. -->
- <varlistentry id="delete-cookies">
- <term>
- <command>
- <keycap>D</keycap> or <keycap>∇</keycap>
- </command>
- </term>
+ <!-- Delete Cookies. -->
+ <varlistentry id="delete-cookies">
+ <term>
+ <command>
+ <keycap>D</keycap> or <keycap>∇</keycap>
+ </command>
+ </term>
- <listitem>
- <para>
- Delete the currently selected cookies. A dialog will confirm the deletion before it is processed.
- </para>
- </listitem>
- </varlistentry>
+ <listitem>
+ <para>
+ Delete the currently selected cookies. A dialog will confirm the deletion before it is processed.
+ </para>
+ </listitem>
+ </varlistentry>
- <!-- Delete All Cookies. -->
- <varlistentry id="delete-all-cookie">
- <term>
- <command>
- <keycap>L</keycap>
- </command>
- </term>
+ <!-- Delete All Cookies. -->
+ <varlistentry id="delete-all-cookie">
+ <term>
+ <command>
+ <keycap>L</keycap>
+ </command>
+ </term>
- <listitem>
- <para>
- Delete all the cookies. A dialog will confirm the deletion before it is processed.
- </para>
- </listitem>
- </varlistentry>
+ <listitem>
+ <para>
+ Delete all the cookies. A dialog will confirm the deletion before it is processed.
+ </para>
+ </listitem>
+ </varlistentry>
- <!-- Close. -->
- <varlistentry id="close-cookies-dialog">
- <term>
- <command>
- <keycap>C</keycap> or <keycombo action="simul">&Ctrl;<keycap>Q</keycap></keycombo>
- </command>
- </term>
+ <!-- Close. -->
+ <varlistentry id="close-cookies-dialog">
+ <term>
+ <command>
+ <keycap>C</keycap> or <keycombo action="simul">&Ctrl;<keycap>Q</keycap></keycombo>
+ </command>
+ </term>
- <listitem>
- <para>
- Close the cookies dialog.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- </sect2>
- </sect1>
+ <listitem>
+ <para>
+ Close the cookies dialog.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </sect2>
+ </sect1>
- <!-- Save Dialog. -->
- <sect1 id="save-dialog">
- <title>Save Dialog</title>
+ <!-- Save Dialog. -->
+ <sect1 id="save-dialog">
+ <title>Save Dialog</title>
- <para>
- The save dialog pops up when a download is initiated.
- </para>
+ <para>
+ The save dialog pops up when a download is initiated.
+ </para>
- <sect2 id="save-dialog-commands">
- <title>Commands</title>
+ <sect2 id="save-dialog-commands">
+ <title>Commands</title>
- <variablelist>
- <!-- Save. -->
- <varlistentry id="save-dialog-save">
- <term>
- <command>
- <keycap>S</keycap>
- </command>
- </term>
+ <variablelist>
+ <!-- Save. -->
+ <varlistentry id="save-dialog-save">
+ <term>
+ <command>
+ <keycap>S</keycap>
+ </command>
+ </term>
- <listitem>
- <para>
- Save the file.
- </para>
- </listitem>
- </varlistentry>
+ <listitem>
+ <para>
+ Save the file.
+ </para>
+ </listitem>
+ </varlistentry>
- <!-- Close. -->
- <varlistentry id="save-dialog-close">
- <term>
- <command>
- <keycap>C</keycap> or <keycombo action="simul">&Ctrl;<keycap>Q</keycap></keycombo>
- </command>
- </term>
+ <!-- Close. -->
+ <varlistentry id="save-dialog-close">
+ <term>
+ <command>
+ <keycap>C</keycap> or <keycombo action="simul">&Ctrl;<keycap>Q</keycap></keycombo>
+ </command>
+ </term>
- <listitem>
- <para>
- Close the save dialog without saving the file.
- </para>
- </listitem>
- </varlistentry>
- </variablelist>
- </sect2>
- </sect1>
+ <listitem>
+ <para>
+ Close the save dialog without saving the file.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </sect2>
+ </sect1>
</chapter>
<!-- Changelog. -->
<chapter id="changelog">
<title>Changelog</title>
+ <!-- Version 0.5. -->
+ <sect1 id="version_0.5">
+ <title>0.5 - 11 October 2023</title>
+
+ <itemizedlist>
+ <listitem><para>Add <ulink url="https://redmine.stoutner.com/issues/968">bookmarks</ulink>.</para></listitem>
+ <listitem><para>Add <ulink url="https://redmine.stoutner.com/issues/1031">zoom controls</ulink> to the status bar and a
+ <ulink url="https://redmine.stoutner.com/issues/1044">default zoom shortcut</ulink>.</para></listitem>
+ <listitem><para>Add <ulink url="https://redmine.stoutner.com/issues/1037">keyboard shortcuts</ulink> for the URL toolbar actions.</para></listitem>
+ <listitem><para>Add an action to <ulink url="https://redmine.stoutner.com/issues/1022">view page source</ulink>.</para></listitem>
+ <listitem><para>Change the <ulink url="https://redmine.stoutner.com/issues/1019">domain settings combo boxes</ulink> to list
+ <code>enabled</code> above <code>disabled</code>.</para></listitem>
+ <listitem><para>File downloads can now <ulink url="https://redmine.stoutner.com/issues/869">show the size</ulink> before the download begins.</para></listitem>
+ <listitem><para>Add PIE (<ulink url="https://redmine.stoutner.com/issues/1021">Position Independent Executable</ulink>) compiler flags.</para></listitem>
+ <listitem><para>Fix a bug that sometimes allowed <ulink url="https://redmine.stoutner.com/issues/1018">multiple domain settings to be created</ulink>.</para></listitem>
+ <listitem><para>Fix the download notification <ulink url="https://redmine.stoutner.com/issues/1017">not being cleared on Xfce</ulink>.</para></listitem>
+ </itemizedlist>
+ </sect1>
+
<!-- Version 0.4. -->
<sect1 id="version_0.4">
<title><ulink url="https://www.stoutner.com/privacy-browser-pc-0-4/">0.4</ulink> -
<launchable type="desktop-id">com.stoutner.privacybrowser.desktop</launchable>
<releases>
+ <release version="0.5" date="2023-10-11">
+ <description>
+ <p>Add bookmarks.</p>
+ <p>Add zoom controls to the status bar and a default zoom shortcut.</p>
+ <p>Add keyboard shortcuts for the URL toolbar actions.</p>
+ <p>Add an action to view page source.</p>
+ <p>Change the domain settings combo boxes to list enabled above disabled.</p>
+ <p>File downloads can now show the size before the download begins.</p>
+ <p>Add PIE (Position Independent Executable) compiler flags.</p>
+ <p>Fix a bug that sometimes allowed multiple domain settings to be created.</p>
+ <p>Fix the download notification not being cleared on Xfce.</p>
+ </description>
+ </release>
+
<release version="0.4" date="2023-06-13">
<description>
<p>Add a setting to control spatial navigation.</p>
addBookmarkDialogUi.setupUi(this);
// Get handles for the widgets.
- defaultFavoriteIconRadioButtonPointer = addBookmarkDialogUi.defaultFavoriteIconRadioButton;
+ websiteFavoriteIconRadioButtonPointer = addBookmarkDialogUi.websiteFavoriteIconRadioButton;
customFavoriteIconRadioButtonPointer = addBookmarkDialogUi.customFavoriteIconRadioButton;
parentFolderTreeWidgetPointer = addBookmarkDialogUi.parentFolderTreeWidget;
bookmarkNameLineEditPointer = addBookmarkDialogUi.bookmarkNameLineEdit;
QPushButton *browseButtonPointer = addBookmarkDialogUi.browseButton;
QDialogButtonBox *dialogButtonBoxPointer = addBookmarkDialogUi.dialogButtonBox;
- // Set the default favorite icon.
- defaultFavoriteIconRadioButtonPointer->setIcon(favoriteIcon);
+ // Set the icons.
+ websiteFavoriteIconRadioButtonPointer->setIcon(favoriteIcon);
+ customFavoriteIconRadioButtonPointer->setIcon(QIcon::fromTheme(QLatin1String("globe"), QIcon::fromTheme(QLatin1String("applications-internet"))));
// Instantiate a folder helper.
folderHelperPointer = new FolderHelper();
// Populate the bookmarks tree widget item.
bookmarksTreeWidgetItemPointer->setText(folderHelperPointer->FOLDER_NAME_COLUMN, i18nc("The bookmarks root tree widget name", "Bookmarks"));
- bookmarksTreeWidgetItemPointer->setIcon(folderHelperPointer->FOLDER_NAME_COLUMN, QIcon::fromTheme("bookmarks"));
+ bookmarksTreeWidgetItemPointer->setIcon(folderHelperPointer->FOLDER_NAME_COLUMN, QIcon::fromTheme(QLatin1String("bookmarks"), QIcon::fromTheme(QLatin1String("bookmark-new"))));
bookmarksTreeWidgetItemPointer->setText(folderHelperPointer->FOLDER_ID_COLUMN, QLatin1String("0"));
// Add the bookmarks tree widget item to the root of the tree.
QTreeWidgetItem *selectedFolderPointer = selectedFoldersList.first();
// Get the favorite icon.
- QIcon favoriteIcon = defaultFavoriteIconRadioButtonPointer->isChecked() ? defaultFavoriteIconRadioButtonPointer->icon() : customFavoriteIconRadioButtonPointer->icon();
+ QIcon favoriteIcon = websiteFavoriteIconRadioButtonPointer->isChecked() ? websiteFavoriteIconRadioButtonPointer->icon() : customFavoriteIconRadioButtonPointer->icon();
// Create a bookmark struct.
BookmarkStruct *bookmarkStructPointer = new BookmarkStruct;
QLineEdit *bookmarkNameLineEditPointer;
QLineEdit *bookmarkUrlLineEditPointer;
QRadioButton *customFavoriteIconRadioButtonPointer;
- QRadioButton *defaultFavoriteIconRadioButtonPointer;
QTreeWidget *parentFolderTreeWidgetPointer;
+ QRadioButton *websiteFavoriteIconRadioButtonPointer;
};
#endif
// Populate the bookmarks tree widget item.
bookmarksTreeWidgetItemPointer->setText(folderHelperPointer->FOLDER_NAME_COLUMN, i18nc("The bookmarks root tree widget name", "Bookmarks"));
- bookmarksTreeWidgetItemPointer->setIcon(folderHelperPointer->FOLDER_NAME_COLUMN, QIcon::fromTheme("bookmarks"));
+ bookmarksTreeWidgetItemPointer->setIcon(folderHelperPointer->FOLDER_NAME_COLUMN, QIcon::fromTheme(QLatin1String("bookmarks"), QIcon::fromTheme(QLatin1String("bookmark-new"))));
bookmarksTreeWidgetItemPointer->setText(folderHelperPointer->FOLDER_ID_COLUMN, QLatin1String("0"));
// Add the bookmarks tree widget item to the root of the tree.
QList<QStandardItem*> bookmarksRootItemList;
// Create the root items.
- QStandardItem *rootItemNamePointer = new QStandardItem(QIcon::fromTheme("bookmarks"), i18nc("The bookmarks root tree widget name", "Bookmarks"));
+ QStandardItem *rootItemNamePointer = new QStandardItem(QIcon::fromTheme(QLatin1String("bookmarks"), QIcon::fromTheme(QLatin1String("bookmark-new"))),
+ i18nc("The bookmarks root tree widget name", "Bookmarks"));
QStandardItem *rootItemUrlPointer = new QStandardItem(QLatin1String(""));
QStandardItem *rootItemDatabaseIdPonter = new QStandardItem(QLatin1String("-1")); // The root item doesn't have a database ID.
QStandardItem *rootItemDisplayOrderPointer = new QStandardItem(QLatin1String("-1")); // The root item doesn't have a display order.
QDialogButtonBox::ActionRole);
// Set the button icons.
- durableCookiesButtonPointer->setIcon(QIcon::fromTheme("view-visible"));
+ durableCookiesButtonPointer->setIcon(QIcon::fromTheme("view-visible", QIcon::fromTheme(QLatin1String("appointment-new"))));
// Connect the buttons.
connect(addCookieButtonPointer, SIGNAL(clicked()), this, SLOT(showAddCookieDialog()));
// Set the favorite icons.
currentFavoriteIconRadioButtonPointer->setIcon(bookmarkStructPointer->favoriteIcon);
currentWebsiteFavoriteIconRadioButtonPointer->setIcon(currentWebsiteFavoriteIcon);
+ customFavoriteIconRadioButtonPointer->setIcon(QIcon::fromTheme(QLatin1String("globe"), QIcon::fromTheme(QLatin1String("applications-internet"))));
// Instantiate a folder helper.
folderHelperPointer = new FolderHelper();
// Populate the bookmarks tree widget item.
bookmarksTreeWidgetItemPointer->setText(folderHelperPointer->FOLDER_NAME_COLUMN, i18nc("The bookmarks root tree widget name", "Bookmarks"));
- bookmarksTreeWidgetItemPointer->setIcon(folderHelperPointer->FOLDER_NAME_COLUMN, QIcon::fromTheme("bookmarks"));
+ bookmarksTreeWidgetItemPointer->setIcon(folderHelperPointer->FOLDER_NAME_COLUMN, QIcon::fromTheme(QLatin1String("bookmarks"), QIcon::fromTheme(QLatin1String("bookmark-new"))));
bookmarksTreeWidgetItemPointer->setText(folderHelperPointer->FOLDER_ID_COLUMN, QLatin1String("0"));
// Add the bookmarks tree widget item to the root of the tree.
// Populate the bookmarks tree widget item.
bookmarksTreeWidgetItemPointer->setText(folderHelperPointer->FOLDER_NAME_COLUMN, i18nc("The bookmarks root tree widget name", "Bookmarks"));
- bookmarksTreeWidgetItemPointer->setIcon(folderHelperPointer->FOLDER_NAME_COLUMN, QIcon::fromTheme("bookmarks"));
+ bookmarksTreeWidgetItemPointer->setIcon(folderHelperPointer->FOLDER_NAME_COLUMN, QIcon::fromTheme(QLatin1String("bookmarks"), QIcon::fromTheme(QLatin1String("bookmark-new"))));
bookmarksTreeWidgetItemPointer->setText(folderHelperPointer->FOLDER_ID_COLUMN, QLatin1String("0"));
// Add the bookmarks tree widget item to the root of the tree.
// Define the public user agent constants.
const QString UserAgentHelper::PRIVACY_BROWSER_USER_AGENT = QLatin1String("PrivacyBrowser/1.0");
-const QString UserAgentHelper::FIREFOX_LINUX_USER_AGENT = QLatin1String("Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0");
-const QString UserAgentHelper::CHROMIUM_LINUX_USER_AGENT = QLatin1String("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36");
-const QString UserAgentHelper::FIREFOX_WINDOWS_USER_AGENT = QLatin1String("Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0");
-const QString UserAgentHelper::CHROME_WINDOWS_USER_AGENT = QLatin1String("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36");
-const QString UserAgentHelper::EDGE_WINDOWS_USER_AGENT = QLatin1String("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.37");
+const QString UserAgentHelper::FIREFOX_LINUX_USER_AGENT = QLatin1String("Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0");
+const QString UserAgentHelper::CHROMIUM_LINUX_USER_AGENT = QLatin1String("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36");
+const QString UserAgentHelper::FIREFOX_WINDOWS_USER_AGENT = QLatin1String("Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0");
+const QString UserAgentHelper::CHROME_WINDOWS_USER_AGENT = QLatin1String("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36");
+const QString UserAgentHelper::EDGE_WINDOWS_USER_AGENT = QLatin1String("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.60");
const QString UserAgentHelper::SAFARI_MACOS_USER_AGENT = QLatin1String("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Safari/605.1.15");
// Construct the class.
.\" along with Privacy Browser PC. If not, see <http://www.gnu.org/licenses/>.
.\" Title Header.
-.TH "Privacy Browser" 1 "13 June 2023" "version 0.4" "Privacy Browser User Manual"
+.TH "Privacy Browser" 1 "11 October 2023" "version 0.5" "Privacy Browser User Manual"
.\" Section Header - Name.
.SH NAME
<Action name="hide_find_actions" />
</ToolBar>
- <!-- The bookmarks toolbar. -->
+ <!-- The bookmarks toolbar. The newline aspect of this doesn't currently work. -->
<ToolBar name="bookmarks_toolbar" iconText="icontextright" newline="true" hidden="true"> <text>Bookmarks Toolbar</text> </ToolBar>
</gui>
<number>10</number>
</property>
- <!-- First row, default favorite icon. -->
+ <!-- First row, website favorite icon. -->
<item>
- <widget class="QRadioButton" name="defaultFavoriteIconRadioButton">
+ <widget class="QRadioButton" name="websiteFavoriteIconRadioButton">
<property name="text">
- <string>Default favorite icon</string>
+ <string>Website favorite icon</string>
</property>
<property name="checked">
<string>Custom favorite icon</string>
</property>
- <property name="icon">
- <iconset theme="globe"/>
- </property>
-
<property name="iconSize">
<size>
<height>32</height>
</property>
<property name="icon">
- <iconset theme="edit-entry" />
+ <iconset theme="document-edit" />
</property>
</widget>
</item>
</property>
<property name="icon">
- <iconset theme="edit-entry" />
+ <iconset theme="document-edit" />
</property>
</widget>
</item>
</property>
<property name="icon">
- <iconset theme="delete" />
+ <iconset theme="edit-delete" />
</property>
</widget>
</item>
<string>Custom favorite icon</string>
</property>
- <property name="icon">
- <iconset theme="globe"/>
- </property>
-
<property name="iconSize">
<size>
<height>32</height>
// The public variables.
std::list<QNetworkCookie> *cookieListPointer = new std::list<QNetworkCookie>;
double defaultZoomFactor = 1.00;
- QString domainSettingsName = QStringLiteral("");
- QIcon favoriteIcon = QIcon::fromTheme(QStringLiteral("globe"));
+ QString domainSettingsName = QLatin1String("");
+ QIcon favoriteIcon = QIcon::fromTheme(QLatin1String("globe"), QIcon::fromTheme(QLatin1String("applications-internet")));
bool findCaseSensitive = false;
- QString findString = QStringLiteral("");
+ QString findString = QLatin1String("");
QWebEngineFindTextResult findTextResult = QWebEngineFindTextResult();
bool isLoading = false;
int loadProgressInt = -1;
// Prevent the notification from being autodeleted if it is closed. Otherwise, the updates to the notification below cause a crash.
fileDownloadNotificationPointer->setAutoDelete(false);
- // Display the notification.
- fileDownloadNotificationPointer->sendEvent();
-
// Handle clicks on the cancel button.
connect(fileDownloadNotificationPointer, &KNotification::action1Activated, [webEngineDownloadItemPointer, saveFileName] ()
{
fileDownloadNotificationPointer->update();
});
+ // Display the notification.
+ fileDownloadNotificationPointer->sendEvent();
+
// Start the download.
webEngineDownloadItemPointer->accept();
}
QWebEnginePage *currentWebEnginePagePointer;
QWebEngineProfile *currentWebEngineProfilePointer;
QWebEngineSettings *currentWebEngineSettingsPointer;
- QIcon defaultFavoriteIcon = QIcon::fromTheme(QStringLiteral("globe"));
+ QIcon defaultFavoriteIcon = QIcon::fromTheme(QLatin1String("globe"), QIcon::fromTheme(QLatin1String("applications-internet")));
bool isRunningKde = false;
QMovie *loadingFavoriteIconMoviePointer;
QString searchEngineUrl;
searchEngineYahooActionPointer->setIcon(QIcon::fromTheme(QLatin1String("im-yahoo"), QIcon::fromTheme(QLatin1String("edit-find"))));
searchEngineCustomActionPointer->setIcon(QIcon::fromTheme(QLatin1String("edit-find")));
zoomFactorActionPointer->setIcon(QIcon::fromTheme(QLatin1String("zoom-fit-best")));
+ editBookmarksActionPointer->setIcon(QIcon::fromTheme(QLatin1String("bookmark-edit"), QIcon::fromTheme(QLatin1String("bookmark-new"))));
viewBookmarksToolBarActionPointer->setIcon(QIcon::fromTheme(QLatin1String("bookmarks")));
domainSettingsActionPointer->setIcon(QIcon::fromTheme(QLatin1String("settings-configure"), QIcon::fromTheme(QLatin1String("preferences-desktop"))));
cookiesActionPointer->setIcon(QIcon::fromTheme(QLatin1String("preferences-web-browser-cookies"), QIcon::fromTheme(QLatin1String("appointment-new"))));
connect(findCaseSensitiveActionPointer, SIGNAL(triggered()), this, SLOT(toggleFindCaseSensitive()));
connect(hideFindTextActionPointer, SIGNAL(triggered()), this, SLOT(hideFindTextActions()));
+
+
// Setup the GUI based on the browserwindowui.rc file.
setupGUI(StandardWindowOption::Default, ("browserwindowui.rc"));
// Add the edit folder action to the menu if this is not the root bookmark menu.
if (folderId != 0)
{
- QAction *editFolderActionPointer = menuPointer->addAction(QIcon::fromTheme(QLatin1String("edit-entry")), i18nc("The edit folder action", "Edit Folder"), [=]
+ QAction *editFolderActionPointer = menuPointer->addAction(QIcon::fromTheme(QLatin1String("document-edit")), i18nc("The edit folder action", "Edit Folder"), [=]
{
// Get the current tab favorite icon.
QIcon currentTabFavoriteIcon = tabWidgetPointer->getCurrentTabFavoritIcon();
}
// Add the delete folder action to the menu.
- QAction *deleteFolderActionPointer = menuPointer->addAction(QIcon::fromTheme(QLatin1String("delete")), i18nc("Delete folder context menu entry", "Delete Folder"), [=]
+ QAction *deleteFolderActionPointer = menuPointer->addAction(QIcon::fromTheme(QLatin1String("edit-delete")), i18nc("Delete folder context menu entry", "Delete Folder"), [=]
{
// Create an items to delete list.
QList<int>* itemsToDeleteListPointer = new QList<int>;
bookmarkContextMenuPointer->addSeparator();
// Add the edit action to the menu.
- bookmarkContextMenuPointer->addAction(QIcon::fromTheme(QLatin1String("edit-entry")), i18nc("Edit bookmark context menu entry", "Edit"), [=]
+ bookmarkContextMenuPointer->addAction(QIcon::fromTheme(QLatin1String("document-edit")), i18nc("Edit bookmark context menu entry", "Edit"), [=]
{
// Get the current tab favorite icon.
QIcon currentTabFavoriteIcon = tabWidgetPointer->getCurrentTabFavoritIcon();
bookmarkContextMenuPointer->addSeparator();
// Add the delete action to the menu.
- bookmarkContextMenuPointer->addAction(QIcon::fromTheme(QLatin1String("delete")), i18nc("Delete bookmark context menu entry", "Delete"), [=]
+ bookmarkContextMenuPointer->addAction(QIcon::fromTheme(QLatin1String("edit-delete")), i18nc("Delete bookmark context menu entry", "Delete"), [=]
{
// Get the parent folder ID.
double parentFolderId = BookmarksDatabase::getParentFolderId(databaseId);