diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rekonq.kcfg | 3 | ||||
-rw-r--r-- | src/settings/settings_general.ui | 19 | ||||
-rw-r--r-- | src/webview.cpp | 2 |
3 files changed, 23 insertions, 1 deletions
diff --git a/src/rekonq.kcfg b/src/rekonq.kcfg index 9aa30e35..6769b4f5 100644 --- a/src/rekonq.kcfg +++ b/src/rekonq.kcfg @@ -69,6 +69,9 @@ <entry name="searchEngine" type="Int"> <default>0</default> </entry> + <entry name="disableAutoScroll" type="Bool"> + <default>false</default> + </entry> </group> diff --git a/src/settings/settings_general.ui b/src/settings/settings_general.ui index f7771cbc..c0060d76 100644 --- a/src/settings/settings_general.ui +++ b/src/settings/settings_general.ui @@ -244,6 +244,25 @@ </widget> </item> <item> + <widget class="QGroupBox" name="groupBox_5"> + <property name="title"> + <string>Navigation</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <widget class="QCheckBox" name="kcfg_disableAutoScroll"> + <property name="toolTip"> + <string>Disable automatic scrolling on middle click in a web page</string> + </property> + <property name="text"> + <string>Disable auto scrolling</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> <spacer name="verticalSpacer"> <property name="orientation"> <enum>Qt::Vertical</enum> diff --git a/src/webview.cpp b/src/webview.cpp index 86b60fac..99c48f0b 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -316,7 +316,7 @@ void WebView::mousePressEvent(QMouseEvent *event) } QWebHitTestResult result = page()->mainFrame()->hitTestContent(event->pos()); - _canEnableAutoScroll = !result.isContentEditable() && result.linkUrl().isEmpty(); + _canEnableAutoScroll = !ReKonfig::disableAutoScroll() && !result.isContentEditable() && result.linkUrl().isEmpty(); switch (event->button()) { |