Cosmetic hack to get orientationCombo items' heights to follow icon size.
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
|
||||
#include "libglabels/Db.h"
|
||||
#include "SelectProductDialog.h"
|
||||
#include <QStyledItemDelegate>
|
||||
#include <QtDebug>
|
||||
|
||||
|
||||
@@ -37,6 +38,11 @@ PropertiesView::PropertiesView( QWidget *parent )
|
||||
{
|
||||
setupUi( this );
|
||||
|
||||
// Hack to get orientationCombo item height to follow icon size plus some additional padding
|
||||
QStyledItemDelegate* itemDelegate = new QStyledItemDelegate();
|
||||
orientationCombo->setItemDelegate( itemDelegate );
|
||||
orientationCombo->setStyleSheet( "* QAbstractItemView::item { padding: 8px; }" );
|
||||
|
||||
similarBrowser->setAttribute(Qt::WA_TranslucentBackground);
|
||||
similarBrowser->viewport()->setAutoFillBackground(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user