1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Added ReloadAndByPassCache function, binded to Ctrl+F5 key sequence

This commit is contained in:
nowrep 2011-05-08 14:12:35 +02:00
parent 871edfd20c
commit ff34a62a79
3 changed files with 10 additions and 3 deletions

View File

@ -79,7 +79,6 @@ SOURCES += main.cpp\
plugins/plugins.cpp \
preferences/pluginslist.cpp \
plugins/pluginproxy.cpp \
app/appui.cpp \
tools/clickablelabel.cpp \
downloads/downloadoptionsdialog.cpp \
tools/treewidget.cpp \
@ -117,7 +116,8 @@ SOURCES += main.cpp\
desktopnotifications/desktopnotificationsfactory.cpp \
tools/progressbar.cpp \
tools/iconprovider.cpp \
network/networkproxyfactory.cpp
network/networkproxyfactory.cpp \
tools/closedtabsmanager.cpp
HEADERS += 3rdparty/squeezelabel.h \
3rdparty/qtwin.h \
@ -193,7 +193,8 @@ HEADERS += 3rdparty/squeezelabel.h \
desktopnotifications/desktopnotificationsfactory.h \
tools/progressbar.h \
tools/iconprovider.h \
network/networkproxyfactory.h
network/networkproxyfactory.h \
tools/closedtabsmanager.h
FORMS += \
preferences/autofillmanager.ui \

View File

@ -374,6 +374,11 @@ void QupZilla::setupMenu()
connect(m_actionRestoreTab, SIGNAL(triggered()), m_tabWidget, SLOT(restoreClosedTab()));
addAction(m_actionRestoreTab);
QAction* reloadByPassCacheAction = new QAction(this);
reloadByPassCacheAction->setShortcut(QKeySequence("Ctrl+F5"));
connect(reloadByPassCacheAction, SIGNAL(triggered()), this, SLOT(reloadByPassCache()));
addAction(reloadByPassCacheAction);
//Make shortcuts available even in fullscreen (menu hidden)
QList<QAction*> actions = menuBar()->actions();
foreach (QAction* action, actions) {

View File

@ -137,6 +137,7 @@ private slots:
void goHome() { loadAddress(m_homepage); }
void stop() { weView()->stop(); }
void reload() { weView()->reload(); }
void reloadByPassCache() { weView()->page()->triggerAction(QWebPage::ReloadAndBypassCache); }
void urlEnter();
void aboutQupZilla();
void addTab() { m_tabWidget->addView(QUrl(), tr("New tab"), TabWidget::NewTab, true); }