Skip to content

Commit 4ce16e1

Browse files
committedMay 22, 2016
Fix distorted date time calendar popup
1 parent b18e33c commit 4ce16e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/editorwidgets/qgsdatetimeedit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ QgsDateTimeEdit::QgsDateTimeEdit( QWidget *parent )
4141
mNullLabel->setStyleSheet( "position: absolute; border: none; font-style: italic; color: grey;" );
4242
mNullLabel->hide();
4343

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.