| Summary: | setting the date by typing in the text box doesn't work | ||
|---|---|---|---|
| Product: | [Applications] kstars | Reporter: | Gilles Schintgen <gschintgen> |
| Component: | general | Assignee: | kstars |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Gilles Schintgen
2005-09-28 00:03:11 UTC
SVN commit 501479 by harris:
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
M +2 -0 extdatepicker.cpp
M +2 -2 extdatepicker.h
--- branches/KDE/3.5/kdeedu/libkdeedu/extdate/extdatepicker.cpp #501478:501479
@@ -162,6 +162,8 @@
setFontSize(fontsize);
line->setValidator(val);
line->installEventFilter( this );
+ line->setReadOnly( true );
+
if ( QApplication::reverseLayout() )
{
yearForward->setIconSet(BarIconSet(QString::fromLatin1("2leftarrow")));
--- branches/KDE/3.5/kdeedu/libkdeedu/extdate/extdatepicker.h #501478:501479
@@ -25,7 +25,7 @@
#include "extdatetime.h"
-class QLineEdit;
+class KLineEdit;
class QToolButton;
class ExtDateValidator;
class ExtDateTable;
@@ -170,7 +170,7 @@
/// 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
|