Removes alternate color on the rows of Activity Widget.

- Also fixes the click on each activity: the user had to click twice -
one to select the row and then one click to open file manager or
browser.

Signed-off-by: Camila San <hello@camila.codes>
This commit is contained in:
Camila San 2018-07-18 16:13:23 +02:00 committed by Roeland Jago Douma
parent 9cbf5aa783
commit e9dbee0df5
No known key found for this signature in database
GPG key ID: F941078878347C0C
2 changed files with 11 additions and 2 deletions

View file

@ -68,7 +68,7 @@ ActivityWidget::ActivityWidget(AccountState *accountState, QWidget *parent)
ActivityItemDelegate *delegate = new ActivityItemDelegate;
delegate->setParent(this);
_ui->_activityList->setItemDelegate(delegate);
_ui->_activityList->setAlternatingRowColors(true);
_ui->_activityList->setAlternatingRowColors(false);
_ui->_activityList->setModel(_model);
// Create a widget container for the notifications. The ui file defines

View file

@ -50,6 +50,15 @@
<property name="lineWidth">
<number>0</number>
</property>
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="showDropIndicator" stdset="0">
<bool>false</bool>
</property>
<property name="defaultDropAction">
<enum>Qt::IgnoreAction</enum>
</property>
<property name="resizeMode">
<enum>QListView::Adjust</enum>
</property>
@ -72,4 +81,4 @@
</tabstops>
<resources/>
<connections/>
</ui>
</ui>