Adjust capture connection scrolling to be reasonable on the mouse wheel

This commit is contained in:
baldurk
2018-02-12 17:01:00 +00:00
parent 58d10bee0f
commit 8de37336ad
2 changed files with 17 additions and 0 deletions
@@ -129,6 +129,8 @@ LiveCapture::LiveCapture(ICaptureContext &ctx, const QString &hostname, const QS
ui->captures->setItemDelegate(new NameEditOnlyDelegate(this));
ui->captures->verticalScrollBar()->setSingleStep(20);
{
QToolBar *bottomTools = new QToolBar(this);
+15
View File
@@ -410,6 +410,15 @@
</item>
<item>
<widget class="RDListWidget" name="captures">
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOn</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContents</enum>
</property>
<property name="editTriggers">
<set>QAbstractItemView::EditKeyPressed|QAbstractItemView::SelectedClicked</set>
</property>
@@ -425,12 +434,18 @@
<height>144</height>
</size>
</property>
<property name="verticalScrollMode">
<enum>QAbstractItemView::ScrollPerPixel</enum>
</property>
<property name="movement">
<enum>QListView::Static</enum>
</property>
<property name="flow">
<enum>QListView::LeftToRight</enum>
</property>
<property name="resizeMode">
<enum>QListView::Adjust</enum>
</property>
<property name="spacing">
<number>12</number>
</property>