mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Added multiple sizes for window icon + fixed bookmark all tabs always
disabled issue
This commit is contained in:
parent
334348b8db
commit
8f296c0f51
@ -69,7 +69,7 @@ MainApplication::MainApplication(const QList<CommandLineOptions::ActionPair> &cm
|
|||||||
TRANSLATIONSDIR = DATADIR + "locale/";
|
TRANSLATIONSDIR = DATADIR + "locale/";
|
||||||
THEMESDIR = DATADIR + "themes/";
|
THEMESDIR = DATADIR + "themes/";
|
||||||
|
|
||||||
setWindowIcon(QIcon(":/icons/qupzilla.png"));
|
setWindowIcon(QupZilla::qupzillaIcon());
|
||||||
bool noAddons = false;
|
bool noAddons = false;
|
||||||
QUrl startUrl("");
|
QUrl startUrl("");
|
||||||
QString message;
|
QString message;
|
||||||
|
@ -64,6 +64,18 @@ const QString QupZilla::COPYRIGHT = "2010-2011";
|
|||||||
const QString QupZilla::WWWADDRESS = "http://qupzilla.ic.cz";
|
const QString QupZilla::WWWADDRESS = "http://qupzilla.ic.cz";
|
||||||
const QString QupZilla::WEBKITVERSION = qWebKitVersion();
|
const QString QupZilla::WEBKITVERSION = qWebKitVersion();
|
||||||
|
|
||||||
|
QIcon QupZilla::qupzillaIcon()
|
||||||
|
{
|
||||||
|
QIcon i;
|
||||||
|
i.addFile(":icons/exeicons/qupzilla16.png");
|
||||||
|
i.addFile(":icons/exeicons/qupzilla32.png");
|
||||||
|
i.addFile(":icons/exeicons/qupzilla48.png");
|
||||||
|
i.addFile(":icons/exeicons/qupzilla64.png");
|
||||||
|
i.addFile(":icons/exeicons/qupzilla128.png");
|
||||||
|
i.addFile(":icons/exeicons/qupzilla256.png");
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
|
||||||
QupZilla::QupZilla(bool tryRestore, QUrl startUrl) :
|
QupZilla::QupZilla(bool tryRestore, QUrl startUrl) :
|
||||||
QMainWindow(0)
|
QMainWindow(0)
|
||||||
,m_tryRestore(tryRestore)
|
,m_tryRestore(tryRestore)
|
||||||
@ -398,8 +410,6 @@ void QupZilla::loadSettings()
|
|||||||
m_actionPrivateBrowsing->setChecked( mApp->webSettings()->testAttribute(QWebSettings::PrivateBrowsingEnabled) );
|
m_actionPrivateBrowsing->setChecked( mApp->webSettings()->testAttribute(QWebSettings::PrivateBrowsingEnabled) );
|
||||||
m_privateBrowsing->setVisible( mApp->webSettings()->testAttribute(QWebSettings::PrivateBrowsingEnabled) );
|
m_privateBrowsing->setVisible( mApp->webSettings()->testAttribute(QWebSettings::PrivateBrowsingEnabled) );
|
||||||
|
|
||||||
setWindowIcon(QIcon(":/icons/qupzilla.png"));
|
|
||||||
|
|
||||||
if (!makeTransparent)
|
if (!makeTransparent)
|
||||||
return;
|
return;
|
||||||
//Opacity
|
//Opacity
|
||||||
@ -475,8 +485,6 @@ void QupZilla::aboutToShowBookmarksMenu()
|
|||||||
m_menuBookmarks->addAction(tr("Bookmark &All Tabs"), this, SLOT(bookmarkAllTabs()));
|
m_menuBookmarks->addAction(tr("Bookmark &All Tabs"), this, SLOT(bookmarkAllTabs()));
|
||||||
m_menuBookmarks->addAction(QIcon::fromTheme("user-bookmarks"), tr("Organize &Bookmarks"), this, SLOT(showBookmarksManager()))->setShortcut(QKeySequence("Ctrl+Shift+O"));
|
m_menuBookmarks->addAction(QIcon::fromTheme("user-bookmarks"), tr("Organize &Bookmarks"), this, SLOT(showBookmarksManager()))->setShortcut(QKeySequence("Ctrl+Shift+O"));
|
||||||
m_menuBookmarks->addSeparator();
|
m_menuBookmarks->addSeparator();
|
||||||
if (m_tabWidget->count() == 1)
|
|
||||||
m_menuBookmarks->actions().at(1)->setEnabled(false);
|
|
||||||
QSqlQuery query;
|
QSqlQuery query;
|
||||||
query.exec("SELECT title, url, icon FROM bookmarks WHERE folder='bookmarksMenu'");
|
query.exec("SELECT title, url, icon FROM bookmarks WHERE folder='bookmarksMenu'");
|
||||||
while(query.next()) {
|
while(query.next()) {
|
||||||
|
@ -83,6 +83,7 @@ public:
|
|||||||
static const QString COPYRIGHT;
|
static const QString COPYRIGHT;
|
||||||
static const QString WWWADDRESS;
|
static const QString WWWADDRESS;
|
||||||
static const QString WEBKITVERSION;
|
static const QString WEBKITVERSION;
|
||||||
|
static QIcon qupzillaIcon();
|
||||||
|
|
||||||
explicit QupZilla(bool m_tryRestore=true, QUrl startUrl=QUrl());
|
explicit QupZilla(bool m_tryRestore=true, QUrl startUrl=QUrl());
|
||||||
~QupZilla();
|
~QupZilla();
|
||||||
|
@ -384,7 +384,6 @@ void BookmarksManager::insertAllTabs()
|
|||||||
combo->addItem(style()->standardIcon(QStyle::SP_DirIcon), query.value(0).toString());
|
combo->addItem(style()->standardIcon(QStyle::SP_DirIcon), query.value(0).toString());
|
||||||
|
|
||||||
label->setText(tr("Choose folder for bookmarks:"));
|
label->setText(tr("Choose folder for bookmarks:"));
|
||||||
dialog->setWindowIcon(QIcon(":/icons/qupzilla.png"));
|
|
||||||
dialog->setWindowTitle(tr("Bookmark All Tabs"));
|
dialog->setWindowTitle(tr("Bookmark All Tabs"));
|
||||||
|
|
||||||
QSize size = dialog->size();
|
QSize size = dialog->size();
|
||||||
|
@ -13,10 +13,6 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Bookmarks</string>
|
<string>Bookmarks</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
|
||||||
<iconset resource="../data/icons.qrc">
|
|
||||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0" colspan="6">
|
<item row="0" column="0" colspan="6">
|
||||||
<widget class="TreeWidget" name="bookmarksTree">
|
<widget class="TreeWidget" name="bookmarksTree">
|
||||||
@ -98,8 +94,6 @@
|
|||||||
<header>clickablelabel.h</header>
|
<header>clickablelabel.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources>
|
<resources/>
|
||||||
<include location="../data/icons.qrc"/>
|
|
||||||
</resources>
|
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
@ -13,10 +13,6 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Cookies</string>
|
<string>Cookies</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
|
||||||
<iconset resource="../data/icons.qrc">
|
|
||||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
@ -232,6 +228,11 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>TreeWidget</class>
|
||||||
|
<extends>QTreeWidget</extends>
|
||||||
|
<header>treewidget.h</header>
|
||||||
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>LineEdit</class>
|
<class>LineEdit</class>
|
||||||
<extends>QLineEdit</extends>
|
<extends>QLineEdit</extends>
|
||||||
@ -242,14 +243,7 @@
|
|||||||
<extends>QLabel</extends>
|
<extends>QLabel</extends>
|
||||||
<header>squeezelabelv2.h</header>
|
<header>squeezelabelv2.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
|
||||||
<class>TreeWidget</class>
|
|
||||||
<extends>QTreeWidget</extends>
|
|
||||||
<header>treewidget.h</header>
|
|
||||||
</customwidget>
|
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources>
|
<resources/>
|
||||||
<include location="../data/icons.qrc"/>
|
|
||||||
</resources>
|
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
@ -57,6 +57,11 @@
|
|||||||
<file>icons/menu/dot.png</file>
|
<file>icons/menu/dot.png</file>
|
||||||
<file>icons/preferences/appereance.png</file>
|
<file>icons/preferences/appereance.png</file>
|
||||||
<file>icons/preferences/style-default.png</file>
|
<file>icons/preferences/style-default.png</file>
|
||||||
<file>icons/other/background.png</file>
|
<file>icons/exeicons/qupzilla16.png</file>
|
||||||
|
<file>icons/exeicons/qupzilla32.png</file>
|
||||||
|
<file>icons/exeicons/qupzilla48.png</file>
|
||||||
|
<file>icons/exeicons/qupzilla64.png</file>
|
||||||
|
<file>icons/exeicons/qupzilla128.png</file>
|
||||||
|
<file>icons/exeicons/qupzilla256.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
@ -19,10 +19,6 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Download Manager</string>
|
<string>Download Manager</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
|
||||||
<iconset resource="../data/icons.qrc">
|
|
||||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
|
||||||
</property>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
@ -127,8 +123,6 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources/>
|
||||||
<include location="../data/icons.qrc"/>
|
|
||||||
</resources>
|
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
@ -13,10 +13,6 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Opening</string>
|
<string>Opening</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
|
||||||
<iconset resource="../data/icons.qrc">
|
|
||||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0" colspan="6">
|
<item row="0" column="0" colspan="6">
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
@ -178,9 +174,7 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources/>
|
||||||
<include location="../data/icons.qrc"/>
|
|
||||||
</resources>
|
|
||||||
<connections>
|
<connections>
|
||||||
<connection>
|
<connection>
|
||||||
<sender>buttonBox</sender>
|
<sender>buttonBox</sender>
|
||||||
|
@ -13,10 +13,6 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>History</string>
|
<string>History</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
|
||||||
<iconset resource="../data/icons.qrc">
|
|
||||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0" colspan="4">
|
<item row="0" column="0" colspan="4">
|
||||||
<widget class="TreeWidget" name="historyTree">
|
<widget class="TreeWidget" name="historyTree">
|
||||||
@ -98,8 +94,6 @@
|
|||||||
<header>clickablelabel.h</header>
|
<header>clickablelabel.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources>
|
<resources/>
|
||||||
<include location="../data/icons.qrc"/>
|
|
||||||
</resources>
|
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
@ -13,10 +13,6 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>About QupZilla</string>
|
<string>About QupZilla</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
|
||||||
<iconset resource="../data/icons.qrc">
|
|
||||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
|
||||||
</property>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
|
@ -13,10 +13,6 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Library</string>
|
<string>Library</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
|
||||||
<iconset resource="../data/icons.qrc">
|
|
||||||
<normaloff>:/qupzilla.png</normaloff>:/qupzilla.png</iconset>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<property name="margin">
|
<property name="margin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
@ -97,8 +93,6 @@
|
|||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources>
|
<resources/>
|
||||||
<include location="../data/icons.qrc"/>
|
|
||||||
</resources>
|
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
@ -13,10 +13,6 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Clear Recent History</string>
|
<string>Clear Recent History</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
|
||||||
<iconset resource="../data/icons.qrc">
|
|
||||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="1" column="0" colspan="3">
|
<item row="1" column="0" colspan="3">
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="label_2">
|
||||||
|
@ -2,13 +2,17 @@
|
|||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>CloseDialog</class>
|
<class>CloseDialog</class>
|
||||||
<widget class="QDialog" name="CloseDialog">
|
<widget class="QDialog" name="CloseDialog">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>208</width>
|
||||||
|
<height>98</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>There are still open tabs</string>
|
<string>There are still open tabs</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
|
||||||
<iconset resource="../data/icons.qrc">
|
|
||||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QLabel" name="textLabel">
|
<widget class="QLabel" name="textLabel">
|
||||||
@ -46,9 +50,7 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources/>
|
||||||
<include location="../data/icons.qrc"/>
|
|
||||||
</resources>
|
|
||||||
<connections>
|
<connections>
|
||||||
<connection>
|
<connection>
|
||||||
<sender>buttonBox</sender>
|
<sender>buttonBox</sender>
|
||||||
|
@ -13,10 +13,6 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string notr="true"/>
|
<string notr="true"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
|
||||||
<iconset resource="../data/icons.qrc">
|
|
||||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
|
||||||
</property>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="tabWidget">
|
||||||
@ -139,8 +135,6 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources/>
|
||||||
<include location="../data/icons.qrc"/>
|
|
||||||
</resources>
|
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
@ -13,10 +13,6 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Preferences</string>
|
<string>Preferences</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
|
||||||
<iconset resource="../data/icons.qrc">
|
|
||||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout_5">
|
<layout class="QGridLayout" name="gridLayout_5">
|
||||||
<item row="0" column="0" rowspan="5">
|
<item row="0" column="0" rowspan="5">
|
||||||
<widget class="QListWidget" name="listWidget">
|
<widget class="QListWidget" name="listWidget">
|
||||||
|
@ -13,10 +13,6 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>SSL Manager</string>
|
<string>SSL Manager</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
|
||||||
<iconset resource="../data/icons.qrc">
|
|
||||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QListWidget" name="list"/>
|
<widget class="QListWidget" name="list"/>
|
||||||
@ -61,8 +57,6 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources/>
|
||||||
<include location="../data/icons.qrc"/>
|
|
||||||
</resources>
|
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
@ -13,10 +13,6 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>RSS Reader</string>
|
<string>RSS Reader</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
|
||||||
<iconset resource="../data/icons.qrc">
|
|
||||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
|
||||||
</property>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
@ -119,8 +115,6 @@
|
|||||||
<header>clickablelabel.h</header>
|
<header>clickablelabel.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources>
|
<resources/>
|
||||||
<include location="../data/icons.qrc"/>
|
|
||||||
</resources>
|
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
@ -13,10 +13,6 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Site Info</string>
|
<string>Site Info</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
|
||||||
<iconset resource="../data/icons.qrc">
|
|
||||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="6" column="1">
|
<item row="6" column="1">
|
||||||
<widget class="QDialogButtonBox" name="buttonBox">
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||||||
|
Loading…
Reference in New Issue
Block a user