Show
Ignore:
Timestamp:
01/27/07 17:56:03 (23 months ago)
Author:
flynd
Message:

Created a spinbox for editing timezones and changed the user info dialog to allow timezone of contacts to be changed.
This implements one part of the feature in #1.
Changing the owners timezone is disabled as licq uses system setting instead.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt-gui/src/ewidgets.h

    r4792 r4837  
    3434#include <qlistview.h> 
    3535#include <qstringlist.h> 
     36#include <qspinbox.h> 
    3637 
    3738#include "mlview.h" 
     
    180181}; 
    181182 
     183/* ----------------------------------------------------------------------------- */ 
     184 
     185/** 
     186 * Input field for timezones. 
     187 */ 
     188class CTimeZoneField : public QSpinBox 
     189{ 
     190public: 
     191  CTimeZoneField(QWidget *parent); 
     192  void setData(char data); 
     193  char data(); 
     194protected: 
     195  QString mapValueToText(int v); 
     196  int mapTextToValue(bool* ok); 
     197 
     198  static const int undefinedValue = -24; 
     199}; 
    182200 
    183201/* ----------------------------------------------------------------------------- */