From: Jason Harris Date: Mon, 23 Jan 2006 03:20:46 +0000 (+0000) Subject: Make the line edit in ExtDatePicker read-only; it is only meant to X-Git-Tag: v3.5.2^0 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=ba76098127586fd588937e87ae20c70b735cbf17;p=libqmvoc.git Make the line edit in ExtDatePicker read-only; it is only meant to display the date selected with the calendar widget, it is not for user entry. BUG: 113465 svn path=/branches/KDE/3.5/kdeedu/libkdeedu/; revision=501479 --- diff --git a/extdate/extdatepicker.cpp b/extdate/extdatepicker.cpp index 4f5e331..22b4ba8 100644 --- a/extdate/extdatepicker.cpp +++ b/extdate/extdatepicker.cpp @@ -162,6 +162,8 @@ void ExtDatePicker::init( const ExtDate &dt ) setFontSize(fontsize); line->setValidator(val); line->installEventFilter( this ); + line->setReadOnly( true ); + if ( QApplication::reverseLayout() ) { yearForward->setIconSet(BarIconSet(QString::fromLatin1("2leftarrow"))); diff --git a/extdate/extdatepicker.h b/extdate/extdatepicker.h index 956eb46..7a0c8fc 100644 --- a/extdate/extdatepicker.h +++ b/extdate/extdatepicker.h @@ -25,7 +25,7 @@ #include "extdatetime.h" -class QLineEdit; +class KLineEdit; class QToolButton; class ExtDateValidator; class ExtDateTable; @@ -170,7 +170,7 @@ protected: /// the button for selecting the year directly QToolButton *selectYear; /// the line edit to enter the date directly - QLineEdit *line; + KLineEdit *line; /// the validator for the line edit: ExtDateValidator *val; /// the date table