mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
[SpeedDial] Reload all dials menu action. Closes #1209
This commit is contained in:
parent
1a8ca567f9
commit
8f691905f0
@ -195,6 +195,13 @@ function allPages() {
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function reloadAll() {
|
||||||
|
if (confirm("%TITLE-WARN-REL%"))
|
||||||
|
$('div.entry').each(function(i) {
|
||||||
|
onReloadClick($(this));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function addBox(url, title, img_source) {
|
function addBox(url, title, img_source) {
|
||||||
var div = document.createElement('div');
|
var div = document.createElement('div');
|
||||||
div.setAttribute('class', 'entry');
|
div.setAttribute('class', 'entry');
|
||||||
|
@ -307,6 +307,7 @@ QString QupZillaSchemeReply::speeddialPage()
|
|||||||
dPage.replace(QLatin1String("%TITLE-REMOVE%"), tr("Remove"));
|
dPage.replace(QLatin1String("%TITLE-REMOVE%"), tr("Remove"));
|
||||||
dPage.replace(QLatin1String("%TITLE-RELOAD%"), tr("Reload"));
|
dPage.replace(QLatin1String("%TITLE-RELOAD%"), tr("Reload"));
|
||||||
dPage.replace(QLatin1String("%TITLE-WARN%"), tr("Are you sure to remove this speed dial?"));
|
dPage.replace(QLatin1String("%TITLE-WARN%"), tr("Are you sure to remove this speed dial?"));
|
||||||
|
dPage.replace(QLatin1String("%TITLE-WARN-REL%"), tr("Are you sure to reload all speed dials?"));
|
||||||
dPage.replace(QLatin1String("%TITLE-FETCHTITLE%"), tr("Load title from page"));
|
dPage.replace(QLatin1String("%TITLE-FETCHTITLE%"), tr("Load title from page"));
|
||||||
dPage.replace(QLatin1String("%URL%"), tr("Url"));
|
dPage.replace(QLatin1String("%URL%"), tr("Url"));
|
||||||
dPage.replace(QLatin1String("%TITLE%"), tr("Title"));
|
dPage.replace(QLatin1String("%TITLE%"), tr("Title"));
|
||||||
|
@ -1011,6 +1011,8 @@ void WebView::createPageContextMenu(QMenu* menu, const QPoint &pos)
|
|||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
menu->addAction(QIcon::fromTheme("list-add"), tr("&Add New Page"), this, SLOT(addSpeedDial()));
|
menu->addAction(QIcon::fromTheme("list-add"), tr("&Add New Page"), this, SLOT(addSpeedDial()));
|
||||||
menu->addAction(IconProvider::settingsIcon(), tr("&Configure Speed Dial"), this, SLOT(configureSpeedDial()));
|
menu->addAction(IconProvider::settingsIcon(), tr("&Configure Speed Dial"), this, SLOT(configureSpeedDial()));
|
||||||
|
menu->addSeparator();
|
||||||
|
menu->addAction(QIcon::fromTheme(QSL("view-refresh")), tr("Reload All Dials"), this, SLOT(reloadAllSpeedDials()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1238,6 +1240,11 @@ void WebView::configureSpeedDial()
|
|||||||
page()->mainFrame()->evaluateJavaScript("configureSpeedDial()");
|
page()->mainFrame()->evaluateJavaScript("configureSpeedDial()");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void WebView::reloadAllSpeedDials()
|
||||||
|
{
|
||||||
|
page()->mainFrame()->evaluateJavaScript("reloadAll()");
|
||||||
|
}
|
||||||
|
|
||||||
void WebView::wheelEvent(QWheelEvent* event)
|
void WebView::wheelEvent(QWheelEvent* event)
|
||||||
{
|
{
|
||||||
if (mApp->plugins()->processWheelEvent(Qz::ON_WebView, this, event)) {
|
if (mApp->plugins()->processWheelEvent(Qz::ON_WebView, this, event)) {
|
||||||
|
@ -180,6 +180,7 @@ private slots:
|
|||||||
void checkRss();
|
void checkRss();
|
||||||
void addSpeedDial();
|
void addSpeedDial();
|
||||||
void configureSpeedDial();
|
void configureSpeedDial();
|
||||||
|
void reloadAllSpeedDials();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QList<int> m_zoomLevels;
|
QList<int> m_zoomLevels;
|
||||||
|
Loading…
Reference in New Issue
Block a user