Skip to content
Permalink
Browse files

Fix distorted date time calendar popup

(cherry-picked from 4ce16e1)
  • Loading branch information
nyalldawson committed May 25, 2016
1 parent 3ec3dae commit b2333498368a45b7629136ef9fcf2b2a2cc92eed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/editorwidgets/qgsdatetimeedit.cpp
@@ -41,7 +41,7 @@ QgsDateTimeEdit::QgsDateTimeEdit( QWidget *parent )
mNullLabel->setStyleSheet( "position: absolute; border: none; font-style: italic; color: grey;" );
mNullLabel->hide();

setStyleSheet( QString( "padding-right: %1px;" ).arg( mClearButton->sizeHint().width() + spinButtonWidth() + frameWidth() + 1 ) );
setStyleSheet( QString( ".QWidget, QLineEdit, QToolButton { padding-right: %1px; }" ).arg( mClearButton->sizeHint().width() + spinButtonWidth() + frameWidth() + 1 ) );

QSize msz = minimumSizeHint();
setMinimumSize( qMax( msz.width(), mClearButton->sizeHint().height() + frameWidth() * 2 + 2 ),

0 comments on commit b233349

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