Skip to content

Instantly share code, notes, and snippets.

import 'package:flutter/widgets.dart';
import 'package:flutter/material.dart';
import 'dart:convert';
/*
* TextView with HTML tags support By Kyle Katarn for Dart
*
* Original code by Erik Arvidsson, Mozilla Public License
* http://erik.eae.net/simplehtmlparser/simplehtmlparser.js
* and ported it on JavaScript by John Resig (ejohn.org)
(function () {
var is_scrolling = false,
start_x, start_y,
shift_x, shift_y,
delta_x, delta_y,
overlay;
var SPACE = 20,
MAX_SPACE_X = 300,
MAX_SPACE_Y = 200;
diff --git a/resources/resources.qrc b/resources/resources.qrc
index d7464bd..70c7468 100644
--- a/resources/resources.qrc
+++ b/resources/resources.qrc
@@ -89,5 +89,6 @@
<file>files/start.html</file>
<file>schemas/bookmarks.sql</file>
<file>other/userAgents.ini</file>
+ <file>javascript/middle-button-scroll.js</file>
</qresource>
diff --git a/resources/schemas/options.ini b/resources/schemas/options.ini
index 3bf8faa..1e3d070 100644
--- a/resources/schemas/options.ini
+++ b/resources/schemas/options.ini
@@ -78,6 +78,10 @@ value=false
type=bool
value=true
+[Browser/SearchWidgetWidth]
+type=integer
diff --git a/src/ui/AddressWidget.cpp b/src/ui/AddressWidget.cpp
index e2ddb6d..ee6549f 100644
--- a/src/ui/AddressWidget.cpp
+++ b/src/ui/AddressWidget.cpp
@@ -142,6 +142,20 @@ void AddressWidget::mouseReleaseEvent(QMouseEvent *event)
}
}
+void AddressWidget::mouseDoubleClickEvent(QMouseEvent *event)
+{