Skip to content

Commit b233349

Browse files
committed
Fix distorted date time calendar popup
(cherry-picked from 4ce16e1)
1 parent 3ec3dae commit b233349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/editorwidgets/qgsdatetimeedit.cpp

+1-1
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)