1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

Don't block focus for QListWidgets

Also set per-pixel scrolling in Preferences
This commit is contained in:
David Rosca 2017-01-27 14:28:04 +01:00
parent 6525410e22
commit 41adc8f9ba
3 changed files with 5 additions and 9 deletions

View File

@ -42,9 +42,6 @@
</item> </item>
<item row="0" column="0"> <item row="0" column="0">
<widget class="HorizontalListWidget" name="listWidget"> <widget class="HorizontalListWidget" name="listWidget">
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<item> <item>
<property name="text"> <property name="text">
<string>General</string> <string>General</string>

View File

@ -28,9 +28,6 @@
<height>16777215</height> <height>16777215</height>
</size> </size>
</property> </property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="showDropIndicator" stdset="0"> <property name="showDropIndicator" stdset="0">
<bool>false</bool> <bool>false</bool>
</property> </property>
@ -40,6 +37,9 @@
<height>32</height> <height>32</height>
</size> </size>
</property> </property>
<property name="verticalScrollMode">
<enum>QAbstractItemView::ScrollPerPixel</enum>
</property>
<property name="movement"> <property name="movement">
<enum>QListView::Static</enum> <enum>QListView::Static</enum>
</property> </property>

View File

@ -1,6 +1,6 @@
/* ============================================================ /* ============================================================
* QupZilla - WebKit based browser * QupZilla - Qt web browser
* Copyright (C) 2013-2014 David Rosca <nowrep@gmail.com> * Copyright (C) 2013-2017 David Rosca <nowrep@gmail.com>
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -23,7 +23,6 @@ HorizontalListWidget::HorizontalListWidget(QWidget* parent)
: QListWidget(parent) : QListWidget(parent)
, m_mouseDown(false) , m_mouseDown(false)
{ {
setFocusPolicy(Qt::NoFocus);
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setMovement(QListView::Static); setMovement(QListView::Static);
setResizeMode(QListView::Adjust); setResizeMode(QListView::Adjust);