Skip to content
Permalink
Browse files

[composer] Fix guide sizing under qt5 (fix #15432)

  • Loading branch information
nyalldawson committed Aug 14, 2016
1 parent 2d191f6 commit 297664631edda90ae023bef65d14ae9ca2692bd5
Showing with 12 additions and 4 deletions.
  1. +6 −2 src/core/composer/qgscomposeritem.cpp
  2. +6 −2 src/core/composer/qgscomposermousehandles.cpp
@@ -1297,7 +1297,9 @@ QGraphicsLineItem* QgsComposerItem::hAlignSnapItem()
if ( !mHAlignSnapItem )
{
mHAlignSnapItem = new QGraphicsLineItem( nullptr );
mHAlignSnapItem->setPen( QPen( QColor( Qt::red ) ) );
QPen pen = QPen( QColor( Qt::red ) );
pen.setWidthF( 0.0 );
mHAlignSnapItem->setPen( pen );
scene()->addItem( mHAlignSnapItem );
mHAlignSnapItem->setZValue( 90 );
}
@@ -1309,7 +1311,9 @@ QGraphicsLineItem* QgsComposerItem::vAlignSnapItem()
if ( !mVAlignSnapItem )
{
mVAlignSnapItem = new QGraphicsLineItem( nullptr );
mVAlignSnapItem->setPen( QPen( QColor( Qt::red ) ) );
QPen pen = QPen( QColor( Qt::red ) );
pen.setWidthF( 0.0 );
mVAlignSnapItem->setPen( pen );
scene()->addItem( mVAlignSnapItem );
mVAlignSnapItem->setZValue( 90 );
}
@@ -1162,7 +1162,9 @@ QGraphicsLineItem* QgsComposerMouseHandles::hAlignSnapItem()
if ( !mHAlignSnapItem )
{
mHAlignSnapItem = new QGraphicsLineItem( nullptr );
mHAlignSnapItem->setPen( QPen( QColor( Qt::red ) ) );
QPen pen = QPen( QColor( Qt::red ) );
pen.setWidthF( 0.0 );
mHAlignSnapItem->setPen( pen );
scene()->addItem( mHAlignSnapItem );
mHAlignSnapItem->setZValue( 90 );
}
@@ -1174,7 +1176,9 @@ QGraphicsLineItem* QgsComposerMouseHandles::vAlignSnapItem()
if ( !mVAlignSnapItem )
{
mVAlignSnapItem = new QGraphicsLineItem( nullptr );
mVAlignSnapItem->setPen( QPen( QColor( Qt::red ) ) );
QPen pen = QPen( QColor( Qt::red ) );
pen.setWidthF( 0.0 );
mVAlignSnapItem->setPen( pen );
scene()->addItem( mVAlignSnapItem );
mVAlignSnapItem->setZValue( 90 );
}

0 comments on commit 2976646

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