Account Settings: remove the down arrow in the 'more' button #3584
authorOlivier Goffart <ogoffart@woboq.com>
Thu, 13 Aug 2015 12:11:13 +0000 (14:11 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Thu, 13 Aug 2015 12:11:13 +0000 (14:11 +0200)
It's ugly on mac

src/gui/folderstatusdelegate.cpp

index 001e9c09b2571556e2cdadc1e01dd26b56242dd4..7d739b01a9d8be0aa9bd7b7328dcfd62b0aa2cf4 100644 (file)
@@ -330,6 +330,8 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
         btnOpt.state = option.state;
         btnOpt.state &= ~(QStyle::State_Selected | QStyle::State_HasFocus);
         btnOpt.state |= QStyle::State_Raised;
+        btnOpt.arrowType = Qt::NoArrow;
+        btnOpt.subControls = QStyle::SC_ToolButton;
         btnOpt.rect = optionsButtonRect(option.rect);
         QApplication::style()->drawComplexControl( QStyle::CC_ToolButton, &btnOpt, painter );
     }