Shrink ComboBox arrow section slightly

This is being done for two reasons:

1. The new Monstro icons (and the icons for Microwave when it's finished) are too large.
2. All ComboBoxes (subjectively) look much nicer this way.
This commit is contained in:
Lost Robot
2019-04-13 14:30:46 -06:00
committed by GitHub
parent 07dcea1294
commit be31a5598e

View File

@@ -42,7 +42,7 @@ QPixmap * ComboBox::s_background = NULL;
QPixmap * ComboBox::s_arrow = NULL;
QPixmap * ComboBox::s_arrowSelected = NULL;
const int CB_ARROW_BTN_WIDTH = 20;
const int CB_ARROW_BTN_WIDTH = 18;
ComboBox::ComboBox( QWidget * _parent, const QString & _name ) :
@@ -198,7 +198,7 @@ void ComboBox::paintEvent( QPaintEvent * _pe )
QPixmap * arrow = m_pressed ? s_arrowSelected : s_arrow;
p.drawPixmap( width() - CB_ARROW_BTN_WIDTH + 5, 4, *arrow );
p.drawPixmap( width() - CB_ARROW_BTN_WIDTH + 3, 4, *arrow );
if( model() && model()->size() > 0 )
{
@@ -251,4 +251,3 @@ void ComboBox::setItem( QAction* item )