mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +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/";
|
||||
THEMESDIR = DATADIR + "themes/";
|
||||
|
||||
setWindowIcon(QIcon(":/icons/qupzilla.png"));
|
||||
setWindowIcon(QupZilla::qupzillaIcon());
|
||||
bool noAddons = false;
|
||||
QUrl startUrl("");
|
||||
QString message;
|
||||
|
|
|
@ -64,6 +64,18 @@ const QString QupZilla::COPYRIGHT = "2010-2011";
|
|||
const QString QupZilla::WWWADDRESS = "http://qupzilla.ic.cz";
|
||||
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) :
|
||||
QMainWindow(0)
|
||||
,m_tryRestore(tryRestore)
|
||||
|
@ -398,8 +410,6 @@ void QupZilla::loadSettings()
|
|||
m_actionPrivateBrowsing->setChecked( mApp->webSettings()->testAttribute(QWebSettings::PrivateBrowsingEnabled) );
|
||||
m_privateBrowsing->setVisible( mApp->webSettings()->testAttribute(QWebSettings::PrivateBrowsingEnabled) );
|
||||
|
||||
setWindowIcon(QIcon(":/icons/qupzilla.png"));
|
||||
|
||||
if (!makeTransparent)
|
||||
return;
|
||||
//Opacity
|
||||
|
@ -475,8 +485,6 @@ void QupZilla::aboutToShowBookmarksMenu()
|
|||
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->addSeparator();
|
||||
if (m_tabWidget->count() == 1)
|
||||
m_menuBookmarks->actions().at(1)->setEnabled(false);
|
||||
QSqlQuery query;
|
||||
query.exec("SELECT title, url, icon FROM bookmarks WHERE folder='bookmarksMenu'");
|
||||
while(query.next()) {
|
||||
|
|
|
@ -83,6 +83,7 @@ public:
|
|||
static const QString COPYRIGHT;
|
||||
static const QString WWWADDRESS;
|
||||
static const QString WEBKITVERSION;
|
||||
static QIcon qupzillaIcon();
|
||||
|
||||
explicit QupZilla(bool m_tryRestore=true, QUrl startUrl=QUrl());
|
||||
~QupZilla();
|
||||
|
|
|
@ -384,7 +384,6 @@ void BookmarksManager::insertAllTabs()
|
|||
combo->addItem(style()->standardIcon(QStyle::SP_DirIcon), query.value(0).toString());
|
||||
|
||||
label->setText(tr("Choose folder for bookmarks:"));
|
||||
dialog->setWindowIcon(QIcon(":/icons/qupzilla.png"));
|
||||
dialog->setWindowTitle(tr("Bookmark All Tabs"));
|
||||
|
||||
QSize size = dialog->size();
|
||||
|
|
|
@ -13,10 +13,6 @@
|
|||
<property name="windowTitle">
|
||||
<string>Bookmarks</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="../data/icons.qrc">
|
||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0" colspan="6">
|
||||
<widget class="TreeWidget" name="bookmarksTree">
|
||||
|
@ -98,8 +94,6 @@
|
|||
<header>clickablelabel.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources>
|
||||
<include location="../data/icons.qrc"/>
|
||||
</resources>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
@ -13,10 +13,6 @@
|
|||
<property name="windowTitle">
|
||||
<string>Cookies</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="../data/icons.qrc">
|
||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
|
@ -232,6 +228,11 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>TreeWidget</class>
|
||||
<extends>QTreeWidget</extends>
|
||||
<header>treewidget.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>LineEdit</class>
|
||||
<extends>QLineEdit</extends>
|
||||
|
@ -242,14 +243,7 @@
|
|||
<extends>QLabel</extends>
|
||||
<header>squeezelabelv2.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>TreeWidget</class>
|
||||
<extends>QTreeWidget</extends>
|
||||
<header>treewidget.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources>
|
||||
<include location="../data/icons.qrc"/>
|
||||
</resources>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
@ -57,6 +57,11 @@
|
|||
<file>icons/menu/dot.png</file>
|
||||
<file>icons/preferences/appereance.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>
|
||||
</RCC>
|
||||
|
|
|
@ -19,10 +19,6 @@
|
|||
<property name="windowTitle">
|
||||
<string>Download Manager</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="../data/icons.qrc">
|
||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
|
@ -127,8 +123,6 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../data/icons.qrc"/>
|
||||
</resources>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
@ -13,10 +13,6 @@
|
|||
<property name="windowTitle">
|
||||
<string>Opening</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="../data/icons.qrc">
|
||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0" colspan="6">
|
||||
<widget class="QLabel" name="label">
|
||||
|
@ -178,9 +174,7 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../data/icons.qrc"/>
|
||||
</resources>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
|
|
|
@ -13,10 +13,6 @@
|
|||
<property name="windowTitle">
|
||||
<string>History</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="../data/icons.qrc">
|
||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0" colspan="4">
|
||||
<widget class="TreeWidget" name="historyTree">
|
||||
|
@ -98,8 +94,6 @@
|
|||
<header>clickablelabel.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources>
|
||||
<include location="../data/icons.qrc"/>
|
||||
</resources>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
@ -13,10 +13,6 @@
|
|||
<property name="windowTitle">
|
||||
<string>About QupZilla</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="../data/icons.qrc">
|
||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
|
|
|
@ -13,10 +13,6 @@
|
|||
<property name="windowTitle">
|
||||
<string>Library</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="../data/icons.qrc">
|
||||
<normaloff>:/qupzilla.png</normaloff>:/qupzilla.png</iconset>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
|
@ -97,8 +93,6 @@
|
|||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources>
|
||||
<include location="../data/icons.qrc"/>
|
||||
</resources>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
@ -13,10 +13,6 @@
|
|||
<property name="windowTitle">
|
||||
<string>Clear Recent History</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="../data/icons.qrc">
|
||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="1" column="0" colspan="3">
|
||||
<widget class="QLabel" name="label_2">
|
||||
|
|
|
@ -2,13 +2,17 @@
|
|||
<ui version="4.0">
|
||||
<class>CloseDialog</class>
|
||||
<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">
|
||||
<string>There are still open tabs</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="../data/icons.qrc">
|
||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="textLabel">
|
||||
|
@ -46,9 +50,7 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../data/icons.qrc"/>
|
||||
</resources>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
|
|
|
@ -13,10 +13,6 @@
|
|||
<property name="windowTitle">
|
||||
<string notr="true"/>
|
||||
</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">
|
||||
<item>
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
|
@ -139,8 +135,6 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../data/icons.qrc"/>
|
||||
</resources>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
@ -13,10 +13,6 @@
|
|||
<property name="windowTitle">
|
||||
<string>Preferences</string>
|
||||
</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">
|
||||
<item row="0" column="0" rowspan="5">
|
||||
<widget class="QListWidget" name="listWidget">
|
||||
|
|
|
@ -13,10 +13,6 @@
|
|||
<property name="windowTitle">
|
||||
<string>SSL Manager</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="../data/icons.qrc">
|
||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="1" column="0">
|
||||
<widget class="QListWidget" name="list"/>
|
||||
|
@ -61,8 +57,6 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../data/icons.qrc"/>
|
||||
</resources>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
@ -13,10 +13,6 @@
|
|||
<property name="windowTitle">
|
||||
<string>RSS Reader</string>
|
||||
</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">
|
||||
<property name="spacing">
|
||||
<number>6</number>
|
||||
|
@ -119,8 +115,6 @@
|
|||
<header>clickablelabel.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources>
|
||||
<include location="../data/icons.qrc"/>
|
||||
</resources>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
@ -13,10 +13,6 @@
|
|||
<property name="windowTitle">
|
||||
<string>Site Info</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="../data/icons.qrc">
|
||||
<normaloff>:/icons/qupzilla.png</normaloff>:/icons/qupzilla.png</iconset>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="6" column="1">
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
|
|
Loading…
Reference in New Issue
Block a user