Skip to content
Permalink
Browse files

Show checkboxes in pluginmanager

Fix #12839
Followup be15d95
  • Loading branch information
m-kuhn committed May 28, 2015
1 parent 7d7cdcd commit 5386a23b5a210ada14e768eefcc14732161efe87
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/pluginmanager/qgspluginitemdelegate.cpp
@@ -69,7 +69,7 @@ void QgsPluginItemDelegate::paint( QPainter *painter, const QStyleOptionViewItem
if ( !iconPixmap.isNull() )
{
int iconSize = pixelsHigh;
painter->drawPixmap( option.rect.left() + 0.2 * pixelsHigh , option.rect.top() + 0.2 * pixelsHigh, iconSize, iconSize, iconPixmap );
painter->drawPixmap( option.rect.left() + 1.2 * pixelsHigh , option.rect.top() + 0.2 * pixelsHigh, iconSize, iconSize, iconPixmap );
}

// Draw the text
@@ -95,7 +95,7 @@ void QgsPluginItemDelegate::paint( QPainter *painter, const QStyleOptionViewItem
font.setBold( true );
painter->setFont( font );
}
painter->drawText( option.rect.left() + pixelsHigh * 1.4, option.rect.bottom() - pixelsHigh * 0.4, index.data( Qt::DisplayRole ).toString() );
painter->drawText( option.rect.left() + pixelsHigh * 2.4, option.rect.bottom() - pixelsHigh * 0.4, index.data( Qt::DisplayRole ).toString() );

painter->restore();
}

3 comments on commit 5386a23

@slarosa

This comment has been minimized.

Copy link
Member

@slarosa slarosa replied Jun 2, 2015

@m-kuhn is it possible to shift the left position of 0.2 px either for text or icon? For me the icons are too close to the checkbox. thanks

image

@m-kuhn

This comment has been minimized.

Copy link
Member Author

@m-kuhn m-kuhn replied Jun 2, 2015

Which OS is this?

That's how it looks for me... Adding more spacing would look weird here.

Instead of using the text height as width indicator for the checkbox there should be something else used...

plugins

@slarosa

This comment has been minimized.

Copy link
Member

@slarosa slarosa replied Jun 3, 2015

@m-kuhn I am on Debian with Gnome Shell, with the adwaita theme it is fine:

image

I had applied some customization to my GTK+ theme and the icons were too close to the checkbox.

Please sign in to comment.
You can’t perform that action at this time.