From 41adc8f9ba5031895fa2e606d63e77522237bb41 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Fri, 27 Jan 2017 14:28:04 +0100 Subject: [PATCH] Don't block focus for QListWidgets Also set per-pixel scrolling in Preferences --- src/lib/other/siteinfo.ui | 3 --- src/lib/preferences/preferences.ui | 6 +++--- src/lib/tools/horizontallistwidget.cpp | 5 ++--- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/lib/other/siteinfo.ui b/src/lib/other/siteinfo.ui index 94ac8a343..2e48b3a18 100644 --- a/src/lib/other/siteinfo.ui +++ b/src/lib/other/siteinfo.ui @@ -42,9 +42,6 @@ - - Qt::NoFocus - General diff --git a/src/lib/preferences/preferences.ui b/src/lib/preferences/preferences.ui index a414e2e3f..f2d3df085 100644 --- a/src/lib/preferences/preferences.ui +++ b/src/lib/preferences/preferences.ui @@ -28,9 +28,6 @@ 16777215 - - Qt::NoFocus - false @@ -40,6 +37,9 @@ 32 + + QAbstractItemView::ScrollPerPixel + QListView::Static diff --git a/src/lib/tools/horizontallistwidget.cpp b/src/lib/tools/horizontallistwidget.cpp index a14768c2e..9dec53c53 100644 --- a/src/lib/tools/horizontallistwidget.cpp +++ b/src/lib/tools/horizontallistwidget.cpp @@ -1,6 +1,6 @@ /* ============================================================ -* QupZilla - WebKit based browser -* Copyright (C) 2013-2014 David Rosca +* QupZilla - Qt web browser +* Copyright (C) 2013-2017 David Rosca * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,7 +23,6 @@ HorizontalListWidget::HorizontalListWidget(QWidget* parent) : QListWidget(parent) , m_mouseDown(false) { - setFocusPolicy(Qt::NoFocus); setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setMovement(QListView::Static); setResizeMode(QListView::Adjust);