msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-01-22 14:47-0700\n"
+"POT-Creation-Date: 2022-01-29 11:34-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-#: src/mainwindow.cpp:46
-#, kde-format
-msgctxt "@action"
-msgid "Switch Colors"
-msgstr ""
-
-#: src/mainwindow.cpp:80
+#: src/mainwindow.cpp:74
#, kde-format
msgctxt "@title:tab"
msgid "General"
msgstr ""
-#: src/main.cpp:44
+#: src/main.cpp:46
#, kde-format
msgid "Privacy Browser"
msgstr ""
-#: src/main.cpp:47
+#: src/main.cpp:49
#, kde-format
msgid "Soren Stoutner"
msgstr ""
-#: src/main.cpp:47
+#: src/main.cpp:49
#, kde-format
msgid "Principal developer"
msgstr ""
-#: src/main.cpp:51
+#: src/main.cpp:53
#, kde-format
msgid "Copyright © 2016-2017,2021-2022 Soren Stoutner <soren@stoutner.com>"
msgstr ""
-#: src/main.cpp:56
+#: src/main.cpp:58
#, kde-format
msgid "A web browser that respects your privacy."
msgstr ""
-#: src/mainview.cpp:44
-#, kde-format
-msgid "This project is %1 days old"
-msgstr ""
-
#: rc.cpp:3
#, kde-format
-msgid "Background color:"
+msgid "Zoom factor"
msgstr ""
#: rc.cpp:6
#, kde-format
-msgid "Choose a new background color"
+msgid "Set the zoom factor between 0.25 and 5.00."
msgstr ""
#: rc.cpp:9
#, kde-format
-msgid ""
-"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css"
-"\">\n"
-"p, li { white-space: pre-wrap; }\n"
-"</style></head><body style=\" font-family:'DejaVu Serif'; font-size:9pt; "
-"font-weight:400; font-style:normal;\">\n"
-"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-"
-"right:0px; -qt-block-indent:0; text-indent:0px;\">Change the <span style=\" "
-"font-weight:600;\">background</span> color by clicking here and choose the "
-"new <span style=\" color:#ff0000;\">color</span> in the <span style=\" font-"
-"style:italic;\">color dialog</span>.</p></body></html>"
-msgstr ""
-
-#: rc.cpp:15
-#, kde-format
-msgid "Foreground color:"
-msgstr ""
-
-#: rc.cpp:18
-#, kde-format
-msgid "Choose a new foreground color"
-msgstr ""
-
-#: rc.cpp:21
-#, kde-format
-msgid ""
-"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css"
-"\">\n"
-"p, li { white-space: pre-wrap; }\n"
-"</style></head><body style=\" font-family:'DejaVu Serif'; font-size:9pt; "
-"font-weight:400; font-style:normal;\">\n"
-"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-"
-"right:0px; -qt-block-indent:0; text-indent:0px;\">Change the <span style=\" "
-"font-weight:600;\">foreground</span> color by clicking here and choose the "
-"new <span style=\" color:#ff0000;\">color</span> in the <span style=\" font-"
-"style:italic;\">color dialog</span>.</p></body></html>"
-msgstr ""
-
-#: rc.cpp:27
-#, kde-format
-msgid "Project age:"
-msgstr ""
-
-#: rc.cpp:30
-#, kde-format
-msgid "Set the project age (in days)"
-msgstr ""
-
-#: rc.cpp:33
-#, kde-format
-msgid "Change the project age (in days) by choosing a new number of days."
-msgstr ""
-
-#: rc.cpp:36
-#, kde-format
-msgid "color of the background"
+msgid "Set the zoom factor between 0.25 and 5.00. The default is 1.00."
msgstr ""
-#: rc.cpp:39
-#, kde-format
-msgid "color of the foreground"
-msgstr ""
-
-#: rc.cpp:42
-#, kde-format
-msgid "age of the project"
-msgstr ""
-
-#: rc.cpp:45
+#: rc.cpp:12
#, kde-format
msgid "Main Toolbar"
msgstr ""
-#: rc.cpp:48
-#, kde-format
-msgid "hello, world"
-msgstr ""
-
-#: rc.cpp:49
+#: rc.cpp:13
#, kde-format
msgctxt "NAME OF TRANSLATORS"
msgid "Your names"
msgstr ""
-#: rc.cpp:50
+#: rc.cpp:14
#, kde-format
msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails"
connect(webEngineViewPointer, SIGNAL(loadProgress(int)), this, SLOT(updateUrlLineEdit()));
connect(webEngineViewPointer, SIGNAL(loadFinished(bool)), this, SLOT(updateUrlLineEdit()));
+ // Set the zoom factor.
+ webEngineViewPointer->setZoomFactor(Settings::zoomFactor());
+
// Load a website.
webEngineViewPointer->setUrl(QUrl(QStringLiteral("https://www.stoutner.com/")));
}
void MainView::updateUrlLineEdit()
{
// Update the URL line edit.
- urlLineEditPointer->setText(webEngineViewPointer->url().toString());
+ urlLineEditPointer->setUrl(webEngineViewPointer->url().toString());
+
+ // Reapply the zoom factor. This is a bug in QWebEngineView that resets the zoom with every load. Hopefully it will be fixed in Qt6. <https://bugreports.qt.io/browse/QTBUG-51992>
+ webEngineViewPointer->setZoomFactor(Settings::zoomFactor());
}
KConfigDialog *configDialogPointer = new KConfigDialog(this, QStringLiteral("settings"), Settings::self());
// Add the general settings widget page.
- configDialogPointer->addPage(generalSettingsWidgetPointer, i18nc("@title:tab", "General"), QStringLiteral("package_setting"));
+ configDialogPointer->addPage(generalSettingsWidgetPointer, i18nc("@title:tab", "General"), QStringLiteral("breeze-settings"));
// Delete the config dialog when it is closed.
configDialogPointer->setAttribute(Qt::WA_DeleteOnClose);
<ToolBar name="mainToolBar" noMerge="1">
<text>Main Toolbar</text>
- <Action name="switch_action"/>
-
- <Separator/>
-
<Action name="options_configure"/>
</ToolBar>
</gui>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
- <kcfgfile name="privacybrowserpc"/>
+ <kcfgfile name="settings"/>
- <group name="Preferences">
- <entry name="colorBackground" type="Color">
- <label>color of the background</label>
- <default>black</default>
- </entry>
-
- <entry name="colorForeground" type="Color">
- <label>color of the foreground</label>
- <default>yellow</default>
- </entry>
-
- <entry name="ageInDays" type="Int">
- <label>age of the project</label>
- <default>2</default>
+ <group name="General">
+ <entry name="zoomFactor" type="Double">
+ <default>1.00</default>
</entry>
</group>
</kcfg>
# Make the generated class a singleton. TODO, the default is false. This may not be needed.
Singleton=true
-
-# Allow mutating (making changes to) the listed variables.
-Mutators=colorBackground,colorForeground
<layout class="QFormLayout">
<item row="0" column="0">
- <widget class="QLabel" name="backgroundLabel">
+ <widget class="QLabel" name="zoomFactorLabel">
<property name="text">
- <string>Background color:</string>
+ <string>Zoom factor</string>
</property>
</widget>
</item>
<item row="0" column="1">
- <widget class="KColorButton" name="kcfg_colorBackground">
+ <widget class="QDoubleSpinBox" name="kcfg_zoomFactor">
<property name="toolTip">
- <string>Choose a new background color</string>
+ <string>Set the zoom factor between 0.25 and 5.00.</string>
</property>
<property name="whatsThis">
- <string><html><head><meta name="qrichtext" content="1" /><style type="text/css">
- p, li { white-space: pre-wrap; }
- </style></head><body style=" font-family:'DejaVu Serif'; font-size:9pt; font-weight:400; font-style:normal;">
- <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Change the <span style=" font-weight:600;">background</span> color by clicking here and choose the new <span style=" color:#ff0000;">color</span> in the <span style=" font-style:italic;">color dialog</span>.</p></body></html></string>
- </property>
-
- <property name="text">
- <string/>
- </property>
- </widget>
- </item>
-
- <item row="1" column="0">
- <widget class="QLabel" name="foregroundLabel">
- <property name="text">
- <string>Foreground color:</string>
- </property>
- </widget>
- </item>
-
- <item row="1" column="1">
- <widget class="KColorButton" name="kcfg_colorForeground">
- <property name="toolTip">
- <string>Choose a new foreground color</string>
- </property>
-
- <property name="whatsThis">
- <string><html><head><meta name="qrichtext" content="1" /><style type="text/css">
- p, li { white-space: pre-wrap; }
- </style></head><body style=" font-family:'DejaVu Serif'; font-size:9pt; font-weight:400; font-style:normal;">
- <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Change the <span style=" font-weight:600;">foreground</span> color by clicking here and choose the new <span style=" color:#ff0000;">color</span> in the <span style=" font-style:italic;">color dialog</span>.</p></body></html></string>
- </property>
-
- <property name="text">
- <string/>
- </property>
- </widget>
- </item>
-
- <item row="2" column="0">
- <widget class="QLabel" name="projectLabel">
- <property name="text">
- <string>Project age:</string>
- </property>
- </widget>
- </item>
-
- <item row="2" column="1">
- <widget class="QSpinBox" name="kcfg_ageInDays">
- <property name="toolTip">
- <string>Set the project age (in days)</string>
- </property>
-
- <property name="whatsThis">
- <string>Change the project age (in days) by choosing a new number of days.</string>
+ <string>Set the zoom factor between 0.25 and 5.00. The default is 1.00.</string>
</property>
<property name="minimum">
- <number>1</number>
+ <double>0.250000000000000</double>
</property>
- <property name="value">
- <number>2</number>
+ <property name="maximum">
+ <double>5.000000000000000</double>
</property>
</widget>
</item>
</layout>
</widget>
- <customwidgets>
- <customwidget>
- <class>KColorButton</class>
-
- <extends>QPushButton</extends>
-
- <header>kcolorbutton.h</header>
- </customwidget>
- </customwidgets>
-
<resources/>
<connections/>