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

Added F3 shortcut to find next on page + source code. See #74

This commit is contained in:
nowrep 2011-12-22 21:09:04 +01:00
parent b5fa490573
commit 3e62bee69d
5 changed files with 10 additions and 1 deletions

View File

@ -39,6 +39,9 @@ SourceViewerSearch::SourceViewerSearch(SourceViewer* parent)
connect(ui->next, SIGNAL(clicked()), this, SLOT(next()));
connect(ui->previous, SIGNAL(clicked()), this, SLOT(previous()));
QShortcut* findNextAction = new QShortcut(QKeySequence("F3"), this);
connect(findNextAction, SIGNAL(activated()), this, SLOT(next()));
startAnimation();
qApp->installEventFilter(this);
}

View File

@ -20,6 +20,7 @@
#include <QDebug>
#include <QTextDocument>
#include <QTextCursor>
#include <QShortcut>
#include "animatedwidget.h"

View File

@ -50,9 +50,9 @@ QObject* WebPluginFactory::create(const QString &mimeType, const QUrl &url, cons
if (whitelist.contains(url.host()) || whitelist.contains("www." + url.host()) || whitelist.contains(url.host().remove("www."))) {
return 0;
}
// Click2Flash already accepted
if (ClickToFlash::isAlreadyAccepted(url, argumentNames, argumentValues)) {
qDebug() << "already accepted";
return 0;
}

View File

@ -44,6 +44,9 @@ SearchToolBar::SearchToolBar(QupZilla* mainClass, QWidget* parent)
connect(ui->caseSensitive, SIGNAL(clicked()), this, SLOT(refreshFindFlags()));
startAnimation();
QShortcut* findNextAction = new QShortcut(QKeySequence("F3"), this);
connect(findNextAction, SIGNAL(activated()), this, SLOT(findNext()));
p_QupZilla->actionStop()->setEnabled(false);
qApp->installEventFilter(this);
}

View File

@ -24,6 +24,8 @@
#include <QLabel>
#include <QFlags>
#include <QPropertyAnimation>
#include <QShortcut>
#include "animatedwidget.h"
namespace Ui