1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Merge branch 'Falkon/3.0'

This commit is contained in:
David Rosca 2018-03-03 14:32:45 +01:00
commit fff386c3d7
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
2 changed files with 4 additions and 2 deletions

View File

@ -316,7 +316,7 @@ void BookmarksToolbarButton::paintEvent(QPaintEvent* event)
option.features &= ~QStyleOptionButton::HasMenu;
// Draw button base (only under mouse, this is autoraise button)
if (isDown() || underMouse()) {
if (isDown() || hitButton(mapFromGlobal(QCursor::pos()))) {
option.state |= QStyle::State_AutoRaise | QStyle::State_Raised;
style()->drawPrimitive(QStyle::PE_PanelButtonTool, &option, &p, this);
}

View File

@ -230,8 +230,10 @@ QString Scripts::completeFormData(const QByteArray &data)
" var type = input.type.toLowerCase();"
" if (type != 'text' && type != 'password' && type != 'email')"
" continue;"
" if (input.name == key)"
" if (input.name == key) {"
" input.value = val;"
" input.dispatchEvent(new Event('change'));"
" }"
" }"
"}"
""