1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

Added option to load user stylesheet on every pages, some small fixes in

download manager, crash fix on clicktoflash and updated translations
This commit is contained in:
nowrep 2011-05-10 21:25:31 +02:00
parent 85daf062d4
commit bac1f5d78d
15 changed files with 1101 additions and 1037 deletions

Binary file not shown.

View File

@ -53,7 +53,7 @@ void CommandLineOptions::parseActions()
using namespace std; using namespace std;
bool found = false; bool found = false;
// Skip first argument (program itself) // Skip first argument (it should be program itself)
for (int i = 1; i < m_argc; i++) { for (int i = 1; i < m_argc; i++) {
QString arg(m_argv[i]); QString arg(m_argv[i]);
if (arg == "-h" || arg == "-help") { if (arg == "-h" || arg == "-help") {

View File

@ -71,6 +71,7 @@ MainApplication::MainApplication(int &argc, char **argv)
QUrl startUrl(""); QUrl startUrl("");
QString message; QString message;
QString startProfile; QString startProfile;
if (argc > 1) { if (argc > 1) {
CommandLineOptions cmd(argc, argv); CommandLineOptions cmd(argc, argv);
QList<QPair<int, QString> > cmdActions = cmd.getActions(); QList<QPair<int, QString> > cmdActions = cmd.getActions();
@ -179,6 +180,7 @@ void MainApplication::loadSettings()
bool printElBg = settings.value("PrintElementBackground", true).toBool(); bool printElBg = settings.value("PrintElementBackground", true).toBool();
int maxCachedPages = settings.value("maximumCachedPages",3).toInt(); int maxCachedPages = settings.value("maximumCachedPages",3).toInt();
int scrollingLines = settings.value("wheelScrollLines", wheelScrollLines()).toInt(); int scrollingLines = settings.value("wheelScrollLines", wheelScrollLines()).toInt();
QUrl userStyleSheet = settings.value("userStyleSheet", QUrl()).toUrl();
settings.endGroup(); settings.endGroup();
m_websettings->setAttribute(QWebSettings::DeveloperExtrasEnabled, true); m_websettings->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
@ -202,6 +204,7 @@ void MainApplication::loadSettings()
m_websettings->setFontSize(QWebSettings::DefaultFontSize, settings.value("DefaultFontSize", m_websettings->fontSize(QWebSettings::DefaultFontSize)).toInt() ); m_websettings->setFontSize(QWebSettings::DefaultFontSize, settings.value("DefaultFontSize", m_websettings->fontSize(QWebSettings::DefaultFontSize)).toInt() );
m_websettings->setFontSize(QWebSettings::DefaultFixedFontSize, settings.value("FixedFontSize", m_websettings->fontSize(QWebSettings::DefaultFixedFontSize)).toInt() ); m_websettings->setFontSize(QWebSettings::DefaultFixedFontSize, settings.value("FixedFontSize", m_websettings->fontSize(QWebSettings::DefaultFixedFontSize)).toInt() );
m_websettings->setUserStyleSheetUrl(userStyleSheet);
m_websettings->setDefaultTextEncoding("System"); m_websettings->setDefaultTextEncoding("System");
#ifdef Q_WS_X11 #ifdef Q_WS_X11
m_websettings->setWebGraphic(QWebSettings::DefaultFrameIconGraphic, QIcon::fromTheme("text-plain").pixmap(16,16)); m_websettings->setWebGraphic(QWebSettings::DefaultFrameIconGraphic, QIcon::fromTheme("text-plain").pixmap(16,16));

View File

@ -69,9 +69,10 @@ public:
inline QString getActiveLanguage() { return m_activeLanguage; } inline QString getActiveLanguage() { return m_activeLanguage; }
inline bool isClosing() { return m_isClosing; } inline bool isClosing() { return m_isClosing; }
inline bool isExited() { return m_isExited; } inline bool isExited() { return m_isExited; }
inline int windowCount() { return m_mainWindows.count(); }
bool checkSettingsDir(); bool checkSettingsDir();
void checkProfile(QString path); void checkProfile(QString path);
inline int windowCount() { return m_mainWindows.count(); }
QupZilla* getWindow(); QupZilla* getWindow();
BookmarksManager* bookmarksManager(); BookmarksManager* bookmarksManager();

View File

@ -204,9 +204,11 @@ void QupZilla::setupUi()
m_actionExitFullscreen = new QAction(tr("Exit Fullscreen"),this); m_actionExitFullscreen = new QAction(tr("Exit Fullscreen"),this);
m_actionExitFullscreen->setVisible(false); m_actionExitFullscreen->setVisible(false);
QWidget* _spacer = new QWidget();
_spacer->setMinimumWidth(4);
m_navigation->addWidget(_spacer); //Elegant spacer -,-
m_navigation->addAction(m_actionExitFullscreen); m_navigation->addAction(m_actionExitFullscreen);
m_navigation->addWidget(m_supMenu); m_navigation->addWidget(m_supMenu);
m_navigation->addWidget(new QLabel()); //Elegant spacer -,-
m_navigation->setContextMenuPolicy(Qt::CustomContextMenu); m_navigation->setContextMenuPolicy(Qt::CustomContextMenu);
m_progressBar = new ProgressBar(statusBar()); m_progressBar = new ProgressBar(statusBar());
@ -446,7 +448,7 @@ void QupZilla::loadSettings()
m_bookmarksToolbar->setVisible(showBookmarksToolbar); m_bookmarksToolbar->setVisible(showBookmarksToolbar);
m_navigation->setVisible(showNavigationToolbar); m_navigation->setVisible(showNavigationToolbar);
menuBar()->setVisible(showMenuBar); menuBar()->setVisible(showMenuBar);
m_navigation->actions().at(m_navigation->actions().count()-2)->setVisible(!showMenuBar); m_navigation->actions().at(m_navigation->actions().count() - 1)->setVisible(!showMenuBar);
m_buttonHome->setVisible(showHomeIcon); m_buttonHome->setVisible(showHomeIcon);
m_buttonBack->setVisible(showBackForwardIcons); m_buttonBack->setVisible(showBackForwardIcons);
@ -974,7 +976,7 @@ void QupZilla::showMenubar()
showNavigationToolbar(); showNavigationToolbar();
menuBar()->setVisible(!menuBar()->isVisible()); menuBar()->setVisible(!menuBar()->isVisible());
m_navigation->actions().at(m_navigation->actions().count()-2)->setVisible(!menuBar()->isVisible()); m_navigation->actions().at(m_navigation->actions().count() - 1)->setVisible(!menuBar()->isVisible());
QSettings settings(activeProfil()+"settings.ini", QSettings::IniFormat); QSettings settings(activeProfil()+"settings.ini", QSettings::IniFormat);
settings.setValue("Browser-View-Settings/showMenubar", menuBar()->isVisible()); settings.setValue("Browser-View-Settings/showMenubar", menuBar()->isVisible());

View File

@ -24,13 +24,14 @@
//#define DOWNMANAGER_DEBUG //#define DOWNMANAGER_DEBUG
DownloadItem::DownloadItem(QListWidgetItem* item, QNetworkReply* reply, QString path, QString fileName, QPixmap fileIcon, bool openAfterFinishedDownload, QWidget* parent) DownloadItem::DownloadItem(QListWidgetItem* item, QNetworkReply* reply, QString path, QString fileName, QPixmap fileIcon, QTime* timer, bool openAfterFinishedDownload, QWidget* parent)
: QWidget(parent) : QWidget(parent)
,ui(new Ui::DownloadItem) ,ui(new Ui::DownloadItem)
,m_item(item) ,m_item(item)
,m_reply(reply) ,m_reply(reply)
,m_path(path) ,m_path(path)
,m_fileName(fileName) ,m_fileName(fileName)
,m_downTimer(timer)
,m_downUrl(reply->url()) ,m_downUrl(reply->url())
,m_downloadPage(QUrl()) ,m_downloadPage(QUrl())
,m_downloading(false) ,m_downloading(false)
@ -72,7 +73,6 @@ DownloadItem::DownloadItem(QListWidgetItem* item, QNetworkReply* reply, QString
connect(ui->button, SIGNAL(clicked(QPoint)), this, SLOT(stop())); connect(ui->button, SIGNAL(clicked(QPoint)), this, SLOT(stop()));
m_downloading = true; m_downloading = true;
m_downTimer.start();
m_timer.start(1000*1, this); m_timer.start(1000*1, this);
readyRead(); readyRead();
QTimer::singleShot(500, this, SLOT(updateDownload())); QTimer::singleShot(500, this, SLOT(updateDownload()));
@ -147,7 +147,7 @@ void DownloadItem::downloadProgress(qint64 received, qint64 total)
} }
ui->progressBar->setValue(currentValue); ui->progressBar->setValue(currentValue);
ui->progressBar->setMaximum(totalValue); ui->progressBar->setMaximum(totalValue);
m_currSpeed = received * 1000.0 / m_downTimer.elapsed(); m_currSpeed = received * 1000.0 / m_downTimer->elapsed();
m_received = received; m_received = received;
m_total = total; m_total = total;
} }
@ -370,4 +370,5 @@ DownloadItem::~DownloadItem()
{ {
delete ui; delete ui;
delete m_item; delete m_item;
delete m_downTimer;
} }

View File

@ -42,7 +42,7 @@ class DownloadItem : public QWidget
Q_OBJECT Q_OBJECT
public: public:
explicit DownloadItem(QListWidgetItem* item, QNetworkReply* reply ,QString path, QString fileName, QPixmap fileIcon, bool openAfterFinishedDownload, QWidget* parent = 0); explicit DownloadItem(QListWidgetItem* item, QNetworkReply* reply, QString path, QString fileName, QPixmap fileIcon, QTime* timer, bool openAfterFinishedDownload, QWidget* parent = 0);
bool isDownloading() { return m_downloading; } bool isDownloading() { return m_downloading; }
bool isCancelled(); bool isCancelled();
QTime remainingTime() { return m_remTime; } QTime remainingTime() { return m_remTime; }
@ -84,7 +84,7 @@ private:
QNetworkReply* m_reply; QNetworkReply* m_reply;
QString m_path; QString m_path;
QString m_fileName; QString m_fileName;
QTime m_downTimer; QTime* m_downTimer;
QTime m_remTime; QTime m_remTime;
QBasicTimer m_timer; QBasicTimer m_timer;
QFile m_outputFile; QFile m_outputFile;

View File

@ -144,6 +144,8 @@ void DownloadManager::download(const QNetworkRequest &request, bool askWhatToDo)
////////////////////////////////////////////////////// //////////////////////////////////////////////////////
void DownloadManager::handleUnsupportedContent(QNetworkReply* reply, bool askWhatToDo) void DownloadManager::handleUnsupportedContent(QNetworkReply* reply, bool askWhatToDo)
{ {
m_htimer = new QTime();
m_htimer->start();
m_h_fileName = getFileName(reply); m_h_fileName = getFileName(reply);
m_hreply = reply; m_hreply = reply;
@ -167,6 +169,8 @@ void DownloadManager::optionsDialogAccepted(int finish)
m_hOpenFileChoosed = false; m_hOpenFileChoosed = false;
switch (finish) { switch (finish) {
case 0: //Cancelled case 0: //Cancelled
if (m_htimer)
delete m_htimer;
return; return;
break; break;
case 1: //Open case 1: //Open
@ -201,6 +205,8 @@ void DownloadManager::fileNameChoosed(const QString &name)
m_huserFileName = name; m_huserFileName = name;
if (m_huserFileName.isEmpty()) { if (m_huserFileName.isEmpty()) {
m_hreply->abort(); m_hreply->abort();
if (m_htimer)
delete m_htimer;
return; return;
} }
@ -220,7 +226,7 @@ void DownloadManager::fileNameChoosed(const QString &name)
settings.endGroup(); settings.endGroup();
QListWidgetItem* item = new QListWidgetItem(ui->list); QListWidgetItem* item = new QListWidgetItem(ui->list);
DownloadItem* downItem = new DownloadItem(item, m_hreply, m_hpath, m_hfileName, m_hfileIcon, m_hOpenFileChoosed, this); DownloadItem* downItem = new DownloadItem(item, m_hreply, m_hpath, m_hfileName, m_hfileIcon, m_htimer, m_hOpenFileChoosed, this);
connect(downItem, SIGNAL(deleteItem(DownloadItem*)), this, SLOT(deleteItem(DownloadItem*))); connect(downItem, SIGNAL(deleteItem(DownloadItem*)), this, SLOT(deleteItem(DownloadItem*)));
connect(downItem, SIGNAL(downloadFinished(bool)), this, SLOT(downloadFinished(bool))); connect(downItem, SIGNAL(downloadFinished(bool)), this, SLOT(downloadFinished(bool)));
ui->list->setItemWidget(item, downItem); ui->list->setItemWidget(item, downItem);
@ -253,7 +259,7 @@ void DownloadManager::downloadFinished(bool success)
if (downloadingAllFilesFinished) { if (downloadingAllFilesFinished) {
if (success && qApp->activeWindow() != this) { if (success && qApp->activeWindow() != this) {
mApp->desktopNotifications()->notify(QPixmap(":icons/notifications/download.png"), tr("Download Finished"), tr("All files has been successfuly downloaded.")); mApp->desktopNotifications()->notify(QPixmap(":icons/notifications/download.png"), tr("Download Finished"), tr("All files have been successfuly downloaded."));
raise(); raise();
activateWindow(); activateWindow();
} }

View File

@ -92,6 +92,7 @@ private:
bool m_isClosing; bool m_isClosing;
// Variables used by HandleUnsupportContent: // Variables used by HandleUnsupportContent:
QTime* m_htimer;
QString m_hpath; QString m_hpath;
QString m_hfileName; QString m_hfileName;
QString m_huserFileName; QString m_huserFileName;

View File

@ -51,16 +51,6 @@ ClickToFlash::ClickToFlash(const QUrl &pluginUrl, const QStringList &argumentNam
, m_argumentValues(argumentValues) , m_argumentValues(argumentValues)
, m_url(pluginUrl) , m_url(pluginUrl)
{ {
//AdBlock
AdBlockManager* manager = AdBlockManager::instance();
if (manager->isEnabled()) {
QString urlString = pluginUrl.toEncoded();
AdBlockSubscription* subscription = manager->subscription();
if (!subscription->allow(urlString) && subscription->block(urlString)) {
QTimer::singleShot(200, this, SLOT(hideAdBlocked()));
return;
}
}
QHBoxLayout* horizontalLayout; QHBoxLayout* horizontalLayout;
QFrame* frame; QFrame* frame;
QHBoxLayout* horizontalLayout_2; QHBoxLayout* horizontalLayout_2;
@ -71,6 +61,18 @@ ClickToFlash::ClickToFlash(const QUrl &pluginUrl, const QStringList &argumentNam
frame->setContentsMargins(0,0,0,0); frame->setContentsMargins(0,0,0,0);
horizontalLayout_2 = new QHBoxLayout(frame); horizontalLayout_2 = new QHBoxLayout(frame);
toolButton = new QToolButton(frame); toolButton = new QToolButton(frame);
//AdBlock
AdBlockManager* manager = AdBlockManager::instance();
if (manager->isEnabled()) {
QString urlString = pluginUrl.toEncoded();
AdBlockSubscription* subscription = manager->subscription();
if (!subscription->allow(urlString) && subscription->block(urlString)) {
QTimer::singleShot(200, this, SLOT(hideAdBlocked()));
return;
}
}
toolButton->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); toolButton->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
toolButton->setStyleSheet("QToolButton { background: url(:/icons/other/flash.png) no-repeat;\n" toolButton->setStyleSheet("QToolButton { background: url(:/icons/other/flash.png) no-repeat;\n"
"background-position: center; border: none;}\n" "background-position: center; border: none;}\n"

View File

@ -207,6 +207,10 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent) :
ui->deleteCookiesOnClose->setChecked( settings.value("deleteCookiesOnClose", false).toBool() ); ui->deleteCookiesOnClose->setChecked( settings.value("deleteCookiesOnClose", false).toBool() );
ui->matchExactly->setChecked( settings.value("allowCookiesFromVisitedDomainOnly",false).toBool() ); ui->matchExactly->setChecked( settings.value("allowCookiesFromVisitedDomainOnly",false).toBool() );
ui->filterTracking->setChecked( settings.value("filterTrackingCookie",false).toBool() ); ui->filterTracking->setChecked( settings.value("filterTrackingCookie",false).toBool() );
//CSS Style
ui->userStyleSheet->setText( settings.value("userStyleSheet", "").toString() );
connect(ui->chooseUserStylesheet, SIGNAL(clicked()), this, SLOT(chooseUserStyleClicked()));
settings.endGroup(); settings.endGroup();
//DOWNLOADS //DOWNLOADS
@ -396,6 +400,14 @@ void Preferences::chooseBackgroundPath()
updateBgLabel(); updateBgLabel();
} }
void Preferences::chooseUserStyleClicked()
{
QString file = QFileDialog::getOpenFileName(p_QupZilla, tr("Choose stylesheet location..."), QDir::homePath(), "*.css");
if (file.isEmpty())
return;
ui->userStyleSheet->setText(file);
}
void Preferences::newTabChanged() void Preferences::newTabChanged()
{ {
if (ui->newTab->currentIndex() == 2) if (ui->newTab->currentIndex() == 2)
@ -633,6 +645,8 @@ void Preferences::saveSettings()
//Cache //Cache
settings.setValue("AllowLocalCache", ui->allowCache->isChecked()); settings.setValue("AllowLocalCache", ui->allowCache->isChecked());
settings.setValue("LocalCacheSize", ui->cacheMB->value()); settings.setValue("LocalCacheSize", ui->cacheMB->value());
//CSS Style
settings.setValue("userStyleSheet", ui->userStyleSheet->text());
//PRIVACY //PRIVACY
//Web storage //Web storage

View File

@ -56,6 +56,7 @@ private slots:
void resetBackground(); void resetBackground();
void chooseColor(); void chooseColor();
void openSslManager(); void openSslManager();
void chooseUserStyleClicked();
void allowJavaScriptChanged(bool stat); void allowJavaScriptChanged(bool stat);
void saveHistoryChanged(bool stat); void saveHistoryChanged(bool stat);

View File

@ -784,124 +784,62 @@
</widget> </widget>
<widget class="QWidget" name="stackedWidgetPage4"> <widget class="QWidget" name="stackedWidgetPage4">
<layout class="QGridLayout" name="gridLayout_9"> <layout class="QGridLayout" name="gridLayout_9">
<item row="0" column="0" colspan="2"> <item row="0" column="0">
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>Web Configuration</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_18">
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="6" column="1" colspan="2"> <item row="5" column="0" colspan="2">
<widget class="QCheckBox" name="loadImages"> <widget class="QCheckBox" name="loadImages">
<property name="text"> <property name="text">
<string>Load images</string> <string>Load images</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1" colspan="2"> <item row="4" column="0" colspan="2">
<widget class="QCheckBox" name="allowJava"> <widget class="QCheckBox" name="allowJava">
<property name="text"> <property name="text">
<string>Allow JAVA</string> <string>Allow JAVA</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1" colspan="2"> <item row="2" column="0" colspan="2">
<widget class="QCheckBox" name="allowJavaScript"> <widget class="QCheckBox" name="allowJavaScript">
<property name="text"> <property name="text">
<string>Allow JavaScript</string> <string>Allow JavaScript</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0" colspan="4"> <item row="0" column="0" colspan="2">
<widget class="QLabel" name="label_9">
<property name="text">
<string>&lt;b&gt;WebKit&lt;/b&gt;</string>
</property>
</widget>
</item>
<item row="1" column="1" colspan="2">
<widget class="QCheckBox" name="allowPlugins"> <widget class="QCheckBox" name="allowPlugins">
<property name="text"> <property name="text">
<string>Allow Plugins (Flash plugin)</string> <string>Allow Plugins (Flash plugin)</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="1" colspan="2"> <item row="3" column="0" colspan="2">
<widget class="QCheckBox" name="blockPopup"> <widget class="QCheckBox" name="blockPopup">
<property name="text"> <property name="text">
<string>Block PopUp windows</string> <string>Block PopUp windows</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="0"> <item row="1" column="0" colspan="2">
<spacer name="horizontalSpacer_10">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="1" colspan="2">
<widget class="QCheckBox" name="allowDNSPrefetch"> <widget class="QCheckBox" name="allowDNSPrefetch">
<property name="text"> <property name="text">
<string>Allow DNS Prefetch</string> <string>Allow DNS Prefetch</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="3"> <item row="5" column="2">
<widget class="QCheckBox" name="jscanAccessClipboard">
<property name="text">
<string>JavaScript can access clipboard</string>
</property>
</widget>
</item>
<item row="2" column="3">
<widget class="QCheckBox" name="linksInFocusChain">
<property name="text">
<string>Include links in focus chain</string>
</property>
</widget>
</item>
<item row="3" column="3">
<widget class="QCheckBox" name="zoomTextOnly">
<property name="text">
<string>Zoom text only</string>
</property>
</widget>
</item>
<item row="4" column="3">
<widget class="QCheckBox" name="printEBackground">
<property name="text">
<string>Print element background</string>
</property>
</widget>
</item>
<item row="6" column="3">
<layout class="QHBoxLayout" name="horizontalLayout_7"> <layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<widget class="QLabel" name="label_14">
<property name="text">
<string>Wheel scrolls</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="wheelScroll">
<property name="minimum">
<number>1</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_26">
<property name="text">
<string>lines</string>
</property>
</widget>
</item>
<item> <item>
<spacer name="horizontalSpacer_28"> <spacer name="horizontalSpacer_28">
<property name="orientation"> <property name="orientation">
@ -917,48 +855,110 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="5" column="3"> <item row="6" column="0" colspan="2">
<widget class="QCheckBox" name="jscanAccessClipboard">
<property name="text">
<string>JavaScript can access clipboard</string>
</property>
</widget>
</item>
<item row="7" column="0" colspan="2">
<widget class="QCheckBox" name="doNotTrack"> <widget class="QCheckBox" name="doNotTrack">
<property name="text"> <property name="text">
<string>Send Do Not Track header to servers</string> <string>Send Do Not Track header to servers</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> <item row="1" column="2">
</item> <widget class="QCheckBox" name="zoomTextOnly">
<item row="1" column="0">
<widget class="QLabel" name="label_22">
<property name="text"> <property name="text">
<string>&lt;b&gt;Network Cache&lt;/b&gt;</string> <string>Zoom text only</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0"> <item row="8" column="0">
<layout class="QGridLayout" name="gridLayout_4"> <widget class="QCheckBox" name="linksInFocusChain">
<item row="0" column="0"> <property name="text">
<spacer name="horizontalSpacer_12"> <string>Include links in focus chain</string>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeType"> </widget>
<enum>QSizePolicy::Fixed</enum> </item>
<item row="0" column="2">
<widget class="QCheckBox" name="printEBackground">
<property name="text">
<string>Print element background</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_11">
<item>
<widget class="QLabel" name="label_14">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Mouse wheel scrolls</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="wheelScroll">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimum">
<number>1</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_26">
<property name="text">
<string>lines on page</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="0">
<spacer name="verticalSpacer_9">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>40</height>
</size> </size>
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="0" column="1" colspan="2"> </layout>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string>Local Storage</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_19">
<item row="0" column="0" colspan="2">
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0" colspan="2">
<widget class="QLabel" name="label_10"> <widget class="QLabel" name="label_10">
<property name="text"> <property name="text">
<string>Maximum pages in cache: </string> <string>Maximum pages in cache: </string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="3"> <item row="0" column="2">
<widget class="QLabel" name="pageCacheLabel"> <widget class="QLabel" name="pageCacheLabel">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred"> <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
@ -977,7 +977,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="4"> <item row="0" column="3">
<widget class="QFrame" name="frame_2"> <widget class="QFrame" name="frame_2">
<property name="frameShape"> <property name="frameShape">
<enum>QFrame::NoFrame</enum> <enum>QFrame::NoFrame</enum>
@ -1011,14 +1011,14 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="1" column="1" colspan="4"> <item row="1" column="0" colspan="4">
<widget class="QCheckBox" name="allowCache"> <widget class="QCheckBox" name="allowCache">
<property name="text"> <property name="text">
<string>Allow storing network cache on disk</string> <string>Allow storing network cache on disk</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="2"> <item row="2" column="1">
<widget class="QFrame" name="cacheFrame"> <widget class="QFrame" name="cacheFrame">
<layout class="QHBoxLayout" name="horizontalLayout_5"> <layout class="QHBoxLayout" name="horizontalLayout_5">
<item> <item>
@ -1038,7 +1038,7 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="2" column="4"> <item row="2" column="3">
<widget class="QSlider" name="cacheMB"> <widget class="QSlider" name="cacheMB">
<property name="minimum"> <property name="minimum">
<number>10</number> <number>10</number>
@ -1053,8 +1053,59 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="3" column="0" colspan="2"> <item row="1" column="0" colspan="2">
<spacer name="verticalSpacer_9"> <layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0" colspan="3">
<widget class="QCheckBox" name="storeIcons">
<property name="text">
<string>Allow storing web icons</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="3">
<widget class="QCheckBox" name="saveHistory">
<property name="text">
<string>Allow saving history</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QCheckBox" name="deleteHistoryOnClose">
<property name="text">
<string>Delete history on close</string>
</property>
</widget>
</item>
<item row="2" column="0">
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="2">
<spacer name="horizontalSpacer_23">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="2" column="0">
<spacer name="verticalSpacer_11">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
@ -1068,6 +1119,152 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="tab_3">
<attribute name="title">
<string>Proxy Configuration</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_20">
<item row="0" column="0" rowspan="2" colspan="2">
<layout class="QGridLayout" name="manualProxyLayout">
<item row="3" column="1">
<widget class="QComboBox" name="proxyType">
<item>
<property name="text">
<string>HTTP</string>
</property>
</item>
<item>
<property name="text">
<string>SOCKS5</string>
</property>
</item>
</widget>
</item>
<item row="3" column="2" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
<widget class="QLineEdit" name="proxyServer"/>
</item>
<item>
<widget class="QLabel" name="label_37">
<property name="text">
<string>Port:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="proxyPort">
<property name="maximumSize">
<size>
<width>50</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item row="4" column="1">
<widget class="QLabel" name="label_38">
<property name="text">
<string>Username:</string>
</property>
</widget>
</item>
<item row="4" column="2">
<widget class="QLineEdit" name="proxyUsername"/>
</item>
<item row="5" column="1">
<widget class="QLabel" name="label_39">
<property name="text">
<string>Password:</string>
</property>
</widget>
</item>
<item row="5" column="2">
<widget class="QLineEdit" name="proxyPassword"/>
</item>
<item row="6" column="2" colspan="2">
<widget class="QLineEdit" name="proxyExceptions"/>
</item>
<item row="4" column="3">
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="6" column="1">
<widget class="QLabel" name="label_40">
<property name="text">
<string>Don't use on:</string>
</property>
</widget>
</item>
<item row="2" column="0" colspan="3">
<widget class="QRadioButton" name="manualProxy">
<property name="text">
<string>Manual configuration</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="3">
<widget class="QRadioButton" name="systemProxy">
<property name="text">
<string>System proxy configuration</string>
</property>
</widget>
</item>
<item row="0" column="0" colspan="3">
<widget class="QRadioButton" name="noProxy">
<property name="text">
<string>Do not use proxy</string>
</property>
</widget>
</item>
<item row="5" column="0">
<spacer name="horizontalSpacer_29">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="2" column="0">
<spacer name="verticalSpacer_14">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="page_2"> <widget class="QWidget" name="page_2">
<layout class="QGridLayout" name="gridLayout_15"> <layout class="QGridLayout" name="gridLayout_15">
<item row="0" column="0" rowspan="2" colspan="3"> <item row="0" column="0" rowspan="2" colspan="3">
@ -1380,93 +1577,6 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="2" column="0">
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0" colspan="4">
<widget class="QLabel" name="label_15">
<property name="text">
<string>&lt;b&gt;Web storage&lt;/b&gt;</string>
</property>
</widget>
</item>
<item row="1" column="1" colspan="3">
<widget class="QCheckBox" name="storeIcons">
<property name="text">
<string>Allow storing web icons</string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="3">
<widget class="QCheckBox" name="saveHistory">
<property name="text">
<string>Allow saving history</string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QCheckBox" name="deleteHistoryOnClose">
<property name="text">
<string>Delete history on close</string>
</property>
</widget>
</item>
<item row="3" column="1">
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0">
<spacer name="horizontalSpacer_22">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="3">
<spacer name="horizontalSpacer_23">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="3" column="0">
<spacer name="verticalSpacer_12">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0"> <item row="0" column="0">
<layout class="QGridLayout" name="gridLayout_2"> <layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0" colspan="4"> <item row="0" column="0" colspan="4">
@ -1787,35 +1897,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="0" colspan="3">
<widget class="QLabel" name="label_36">
<property name="text">
<string>&lt;b&gt;Proxy Configuration&lt;/b&gt;</string>
</property>
</widget>
</item>
<item row="5" column="1" colspan="2">
<widget class="QRadioButton" name="systemProxy">
<property name="text">
<string>System proxy configuration</string>
</property>
</widget>
</item>
<item row="6" column="1" colspan="2">
<widget class="QRadioButton" name="noProxy">
<property name="text">
<string>Do not use proxy</string>
</property>
</widget>
</item>
<item row="7" column="1" colspan="2"> <item row="7" column="1" colspan="2">
<widget class="QRadioButton" name="manualProxy">
<property name="text">
<string>Manual configuration</string>
</property>
</widget>
</item>
<item row="9" column="1" colspan="2">
<spacer name="verticalSpacer_13"> <spacer name="verticalSpacer_13">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
@ -1828,91 +1910,30 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="8" column="1" colspan="3"> <item row="4" column="0" colspan="2">
<layout class="QGridLayout" name="manualProxyLayout"> <widget class="QLabel" name="label_9">
<item row="0" column="0">
<widget class="QComboBox" name="proxyType">
<item>
<property name="text"> <property name="text">
<string>HTTP</string> <string>&lt;b&gt;User CSS StyleSheet&lt;/b&gt;</string>
</property>
</item>
<item>
<property name="text">
<string>SOCKS5</string>
</property>
</item>
</widget>
</item>
<item row="0" column="1" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
<widget class="QLineEdit" name="proxyServer"/>
</item>
<item>
<widget class="QLabel" name="label_37">
<property name="text">
<string>Port:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="5" column="1" colspan="3">
<widget class="QLineEdit" name="proxyPort"> <widget class="QLabel" name="label_15">
<property name="maximumSize">
<size>
<width>50</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_38">
<property name="text"> <property name="text">
<string>Username:</string> <string>StyleSheet automatically loaded with all websites: </string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="6" column="1">
<widget class="QLineEdit" name="proxyUsername"/> <widget class="QLineEdit" name="userStyleSheet"/>
</item> </item>
<item row="2" column="0"> <item row="6" column="2">
<widget class="QLabel" name="label_39"> <widget class="QToolButton" name="chooseUserStylesheet">
<property name="text"> <property name="text">
<string>Password:</string> <string>...</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1">
<widget class="QLineEdit" name="proxyPassword"/>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_40">
<property name="text">
<string>Don't use on:</string>
</property>
</widget>
</item>
<item row="3" column="1" colspan="2">
<widget class="QLineEdit" name="proxyExceptions"/>
</item>
<item row="1" column="2">
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout> </layout>
</widget> </widget>
</widget> </widget>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff