mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Final modifications for 1.0.0-b1 version release
This commit is contained in:
parent
d77499aa28
commit
fb8be5dad0
@ -248,9 +248,11 @@ void QupZilla::setupMenu()
|
|||||||
|
|
||||||
m_actionShowBookmarksSideBar = new QAction(tr("Bookmarks"), this);
|
m_actionShowBookmarksSideBar = new QAction(tr("Bookmarks"), this);
|
||||||
m_actionShowBookmarksSideBar->setCheckable(true);
|
m_actionShowBookmarksSideBar->setCheckable(true);
|
||||||
|
m_actionShowBookmarksSideBar->setShortcut(QKeySequence("Ctrl+B"));
|
||||||
connect(m_actionShowBookmarksSideBar, SIGNAL(triggered()), this, SLOT(showBookmarksSideBar()));
|
connect(m_actionShowBookmarksSideBar, SIGNAL(triggered()), this, SLOT(showBookmarksSideBar()));
|
||||||
m_actionShowHistorySideBar = new QAction(tr("History"), this);
|
m_actionShowHistorySideBar = new QAction(tr("History"), this);
|
||||||
m_actionShowHistorySideBar->setCheckable(true);
|
m_actionShowHistorySideBar->setCheckable(true);
|
||||||
|
m_actionShowHistorySideBar->setShortcut(QKeySequence("Ctrl+H"));
|
||||||
connect(m_actionShowHistorySideBar, SIGNAL(triggered()), this, SLOT(showHistorySideBar()));
|
connect(m_actionShowHistorySideBar, SIGNAL(triggered()), this, SLOT(showHistorySideBar()));
|
||||||
// m_actionShowRssSideBar = new QAction(tr("RSS Reader"), this);
|
// m_actionShowRssSideBar = new QAction(tr("RSS Reader"), this);
|
||||||
// m_actionShowRssSideBar->setCheckable(true);
|
// m_actionShowRssSideBar->setCheckable(true);
|
||||||
|
@ -203,6 +203,8 @@ void MainApplication::loadSettings()
|
|||||||
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));
|
||||||
|
#else
|
||||||
|
m_websettings->setWebGraphic(QWebSettings::DefaultFrameIconGraphic, QPixmap(":icons/locationbar/unknownpage.png");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (allowPersistentStorage) m_websettings->enablePersistentStorage(m_activeProfil);
|
if (allowPersistentStorage) m_websettings->enablePersistentStorage(m_activeProfil);
|
||||||
@ -613,8 +615,8 @@ bool MainApplication::checkSettingsDir()
|
|||||||
versionFile.write(QupZilla::VERSION.toAscii());
|
versionFile.write(QupZilla::VERSION.toAscii());
|
||||||
versionFile.close();
|
versionFile.close();
|
||||||
|
|
||||||
if (rData.contains("0.9.") || rData.contains("0.9.7") || rData.contains("0.9.8")) // Data not changed from this version
|
// if (rData.contains("0.9.9") || rData.contains("0.9.7") || rData.contains("0.9.8")) // Data not changed from this version
|
||||||
return true;
|
// return true;
|
||||||
|
|
||||||
dir.mkdir("profiles");
|
dir.mkdir("profiles");
|
||||||
dir.cd("profiles");
|
dir.cd("profiles");
|
||||||
|
@ -348,7 +348,7 @@ void QupZilla::aboutToShowHistoryMenu()
|
|||||||
if (!weView()->history()->canGoForward())
|
if (!weView()->history()->canGoForward())
|
||||||
m_menuHistory->actions().at(1)->setEnabled(false);
|
m_menuHistory->actions().at(1)->setEnabled(false);
|
||||||
|
|
||||||
m_menuHistory->addAction(QIcon(":/icons/menu/history.png"), tr("Show &All History"), this, SLOT(showHistoryManager()))->setShortcut(QKeySequence("Ctrl+H"));
|
m_menuHistory->addAction(QIcon(":/icons/menu/history.png"), tr("Show &All History"), this, SLOT(showHistoryManager()));
|
||||||
m_menuHistory->addSeparator();
|
m_menuHistory->addSeparator();
|
||||||
|
|
||||||
QSqlQuery query;
|
QSqlQuery query;
|
||||||
|
@ -19,8 +19,7 @@
|
|||||||
#define QUPZILLA_H
|
#define QUPZILLA_H
|
||||||
|
|
||||||
//Comment for release building
|
//Comment for release building
|
||||||
#define DEVELOPING
|
//#define DEVELOPING
|
||||||
//Check if i don't fuck anything
|
|
||||||
|
|
||||||
#ifdef QT_NO_DEBUG
|
#ifdef QT_NO_DEBUG
|
||||||
#ifdef DEVELOPING
|
#ifdef DEVELOPING
|
||||||
|
@ -57,8 +57,8 @@ void DesktopNotificationsFactory::notify(const QPixmap &icon, const QString &hea
|
|||||||
m_desktopNotif->move(m_position);
|
m_desktopNotif->move(m_position);
|
||||||
m_desktopNotif->show();
|
m_desktopNotif->show();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DesktopNative:
|
case DesktopNative:
|
||||||
|
#ifdef Q_WS_X11
|
||||||
QFile tmp(QDir::tempPath() + "/qupzilla_notif.png");
|
QFile tmp(QDir::tempPath() + "/qupzilla_notif.png");
|
||||||
tmp.open(QFile::WriteOnly);
|
tmp.open(QFile::WriteOnly);
|
||||||
icon.save(tmp.fileName());
|
icon.save(tmp.fileName());
|
||||||
@ -77,6 +77,7 @@ void DesktopNotificationsFactory::notify(const QPixmap &icon, const QString &hea
|
|||||||
QVariantList list = message.arguments();
|
QVariantList list = message.arguments();
|
||||||
if (list.count() > 0)
|
if (list.count() > 0)
|
||||||
m_uint = list.at(0).toInt();
|
m_uint = list.at(0).toInt();
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,9 @@
|
|||||||
#define DESKTOPNOTIFICATIONSFACTORY_H
|
#define DESKTOPNOTIFICATIONSFACTORY_H
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
#ifdef Q_WS_X11
|
||||||
#include <QDBusInterface>
|
#include <QDBusInterface>
|
||||||
|
#endif
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QPoint>
|
#include <QPoint>
|
||||||
|
@ -211,8 +211,11 @@ void DownloadManager::downloadFinished(bool success)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (downloadingAllFilesFinished) {
|
if (downloadingAllFilesFinished) {
|
||||||
if (success)
|
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 has been successfuly downloaded."));
|
||||||
|
raise();
|
||||||
|
activateWindow();
|
||||||
|
}
|
||||||
ui->speedLabel->clear();
|
ui->speedLabel->clear();
|
||||||
setWindowTitle(tr("Download Manager"));
|
setWindowTitle(tr("Download Manager"));
|
||||||
#ifdef W7API
|
#ifdef W7API
|
||||||
|
@ -248,7 +248,7 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent) :
|
|||||||
#ifdef Q_WS_X11
|
#ifdef Q_WS_X11
|
||||||
notifyType = settings.value("UseNativeDesktop", true).toBool() ? DesktopNotificationsFactory::DesktopNative : DesktopNotificationsFactory::PopupWidget;
|
notifyType = settings.value("UseNativeDesktop", true).toBool() ? DesktopNotificationsFactory::DesktopNative : DesktopNotificationsFactory::PopupWidget;
|
||||||
#else
|
#else
|
||||||
notifTyype = DesktopNotificationsFactory::PopupWidget;
|
notifyType = DesktopNotificationsFactory::PopupWidget;
|
||||||
#endif
|
#endif
|
||||||
if (notifyType == DesktopNotificationsFactory::DesktopNative)
|
if (notifyType == DesktopNotificationsFactory::DesktopNative)
|
||||||
ui->useNativeSystemNotifications->setChecked(true);
|
ui->useNativeSystemNotifications->setChecked(true);
|
||||||
|
@ -73,7 +73,7 @@ QIcon IconProvider::iconForUrl(const QUrl &url)
|
|||||||
#ifdef Q_WS_X11
|
#ifdef Q_WS_X11
|
||||||
return QIcon::fromTheme("text-plain");
|
return QIcon::fromTheme("text-plain");
|
||||||
#else
|
#else
|
||||||
return QIcon(":icons/other/unknownpage.png");
|
return QIcon(":icons/locationbar/unknownpage.png");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user