]> Git trees. - libqmvoc.git/commitdiff
Make the line edit in ExtDatePicker read-only; it is only meant to v3.5.2 v3.5.3
authorJason Harris <kstars@30doradus.org>
Mon, 23 Jan 2006 03:20:46 +0000 (03:20 +0000)
committerJason Harris <kstars@30doradus.org>
Mon, 23 Jan 2006 03:20:46 +0000 (03:20 +0000)
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

extdate/extdatepicker.cpp
extdate/extdatepicker.h

index 4f5e331bc95eaed9d8f7a844df1c713e84cddd60..22b4ba80b54b75063031002bb9e129b28e3137a0 100644 (file)
@@ -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")));
index 956eb46228fa55c23501de51996d2a72d768e275..7a0c8fc18d0e5388dec88f7ec85104e99a195258 100644 (file)
@@ -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