Revision 626505

Go back to digest for 28th January 2007

Features in Office

Dag Andersen committed changes in /trunk/koffice/kplato:

Add DurationSpinBox + delgate and use in taskeditor.
This works as a double spinbox with the addition of changable units.
It's meant as a replacement for the (somewhat complicated) DurationWidget.

Caveats:
* Based on QDoubleSpinBox, should possibly be KDoubleSpinBox (KLocale vs QLocale).
* Precision is always 2.
* Rounding may change the value when the unit is changed. This shouldn't be a big problem as the *normal* use case is to select the unit, then enter a value.

File Changes

Added 2 files
  • /trunk/koffice/kplato
  •   /kptdurationspinbox.cc
  •   /kptdurationspinbox.h
Modified 15 files
  • /trunk/koffice/kplato
  •   /CMakeLists.txt
  •   /kptappointment.cc
  •   /kptcalendar.h
  •   /kptcommand.cc
  •   /kptcommand.h
  •   /kptconfig.cc
  •   /kptduration.cc
  •   /kptduration.h
  •   /kptglobal.h
  •   /kptitemmodelbase.cc
  •   /kptitemmodelbase.h
  •   /kptnode.cc
  •   /kptnode.h
  •   /kpttask.cc
  •   /kpttaskeditor.cc
17 files changed in total