mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Added ReloadAndByPassCache function, binded to Ctrl+F5 key sequence
This commit is contained in:
parent
871edfd20c
commit
ff34a62a79
@ -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 \
|
||||
|
@ -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) {
|
||||
|
@ -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); }
|
||||
|
Loading…
Reference in New Issue
Block a user