Diffstat (limited to 'kaddressbook/phoneeditwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/phoneeditwidget.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/kaddressbook/phoneeditwidget.h b/kaddressbook/phoneeditwidget.h index c730c7b..df5aff9 100644 --- a/kaddressbook/phoneeditwidget.h +++ b/kaddressbook/phoneeditwidget.h @@ -29,2 +29,3 @@ #include <qlayout.h> +#include <qpopupmenu.h> @@ -49,3 +50,3 @@ typedef TypeCombo<KABC::PhoneNumber> PhoneTypeCombo; */ -class PhoneEditWidget : public QScrollView +class PhoneEditWidget : public QWidget { @@ -68,2 +69,4 @@ class PhoneEditWidget : public QScrollView private slots: + void bottomVisible(); + void addNumberInt( int ); void deleteEdit( PhoneTypeNumberEdit* ew ); @@ -74,2 +77,5 @@ class PhoneEditWidget : public QScrollView private: + QScrollView* sv; + QPopupMenu *mPopup; + int mPopupCount; PhoneTypeNumberEdit* mPendingDelete; @@ -228,3 +234,3 @@ public: show(); - + mNumber->setFocus(); } @@ -242,2 +248,6 @@ public: } + int currentType() + { + return mCombo->currentItem(); + } private slots: @@ -261,3 +271,4 @@ public: emit modified(); - emit typeChange ( old, newT ); + if ( newT != PhoneNumber::Voice ) + emit typeChange ( old, newT ); mPhoneNumber.setType(newT ); @@ -266,6 +277,2 @@ public: } - int currentType() - { - return mCombo->currentItem(); - } void textChanged ( const QString & ) |