diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kaddressbook/geowidget.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/geowidget.h')
-rw-r--r-- | kaddressbook/geowidget.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kaddressbook/geowidget.h b/kaddressbook/geowidget.h index 85140849e..70b677232 100644 --- a/kaddressbook/geowidget.h +++ b/kaddressbook/geowidget.h @@ -45,7 +45,7 @@ class QPushButton; typedef struct { double latitude; double longitude; - QString country; + TQString country; } GeoData; class GeoWidget : public KAB::ContactEditorWidget @@ -53,7 +53,7 @@ class GeoWidget : public KAB::ContactEditorWidget Q_OBJECT public: - GeoWidget( KABC::AddressBook *ab, QWidget *parent, const char *name = 0 ); + GeoWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name = 0 ); ~GeoWidget(); void loadContact( KABC::Addressee *addr ); @@ -68,8 +68,8 @@ class GeoWidget : public KAB::ContactEditorWidget KDoubleSpinBox *mLatitudeBox; KDoubleSpinBox *mLongitudeBox; - QCheckBox *mGeoIsValid; - QPushButton *mExtendedButton; + TQCheckBox *mGeoIsValid; + TQPushButton *mExtendedButton; bool mReadOnly; }; @@ -79,7 +79,7 @@ class GeoDialog : public KDialogBase Q_OBJECT public: - GeoDialog( QWidget *parent, const char *name = 0 ); + GeoDialog( TQWidget *parent, const char *name = 0 ); ~GeoDialog(); void setLatitude( double latitude ); @@ -97,25 +97,25 @@ class GeoDialog : public KDialogBase private: void loadCityList(); - double calculateCoordinate( const QString& ) const; + double calculateCoordinate( const TQString& ) const; int nearestCity( double, double ) const; GeoMapWidget *mMapWidget; KComboBox *mCityCombo; - QSpinBox *mLatDegrees; - QSpinBox *mLatMinutes; - QSpinBox *mLatSeconds; + TQSpinBox *mLatDegrees; + TQSpinBox *mLatMinutes; + TQSpinBox *mLatSeconds; KComboBox *mLatDirection; - QSpinBox *mLongDegrees; - QSpinBox *mLongMinutes; - QSpinBox *mLongSeconds; + TQSpinBox *mLongDegrees; + TQSpinBox *mLongMinutes; + TQSpinBox *mLongSeconds; KComboBox *mLongDirection; double mLatitude; double mLongitude; - QMap<QString, GeoData> mGeoDataMap; + TQMap<TQString, GeoData> mGeoDataMap; bool mUpdateSexagesimalInput; }; @@ -124,7 +124,7 @@ class GeoMapWidget : public QWidget Q_OBJECT public: - GeoMapWidget( QWidget *parent, const char *name = 0 ); + GeoMapWidget( TQWidget *parent, const char *name = 0 ); ~GeoMapWidget(); void setLatitude( double latitude ); @@ -137,8 +137,8 @@ class GeoMapWidget : public QWidget void changed(); protected: - virtual void mousePressEvent( QMouseEvent* ); - virtual void paintEvent( QPaintEvent* ); + virtual void mousePressEvent( TQMouseEvent* ); + virtual void paintEvent( TQPaintEvent* ); private: double mLatitude; @@ -148,12 +148,12 @@ class GeoMapWidget : public QWidget class GeoWidgetFactory : public KAB::ContactEditorWidgetFactory { public: - KAB::ContactEditorWidget *createWidget( KABC::AddressBook *ab, QWidget *parent, const char *name ) + KAB::ContactEditorWidget *createWidget( KABC::AddressBook *ab, TQWidget *parent, const char *name ) { return new GeoWidget( ab, parent, name ); } - QString pageIdentifier() const { return "misc"; } + TQString pageIdentifier() const { return "misc"; } }; #endif |