author | zautrix <zautrix> | 2004-09-03 19:28:45 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-03 19:28:45 (UTC) |
commit | 7b3148175ea540f0d7b4bc79e05dd52f2cd47771 (patch) (side-by-side diff) | |
tree | 5194240a1015a7fe9bab697233965dd807c464fd /kabc/addresseedialog.h | |
parent | 14399c0c21955d30b2d69684e0cf11edb9fd9b63 (diff) | |
download | kdepimpi-7b3148175ea540f0d7b4bc79e05dd52f2cd47771.zip kdepimpi-7b3148175ea540f0d7b4bc79e05dd52f2cd47771.tar.gz kdepimpi-7b3148175ea540f0d7b4bc79e05dd52f2cd47771.tar.bz2 |
Made addressee select dialog useable
-rw-r--r-- | kabc/addresseedialog.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kabc/addresseedialog.h b/kabc/addresseedialog.h index 74e7871..99c74bd 100644 --- a/kabc/addresseedialog.h +++ b/kabc/addresseedialog.h @@ -84,77 +84,78 @@ class AddresseeDialog : public KDialogBase { Q_OBJECT public: /** Construct addressbook entry select dialog. @param parent parent widget */ AddresseeDialog( QWidget *parent=0, bool multiple=false ); /** Destructor. */ virtual ~AddresseeDialog(); /** Return the address chosen. If it is a multiple select, this will return only the first address chosen */ Addressee addressee(); /** Return the list of addresses chosen */ Addressee::List addressees(); /** Select a single address book entry. Open addressee select dialog and return the entry selected by the user. If the user doesn't select an entry or presses cancel, the returned addressee is empty. */ static Addressee getAddressee( QWidget *parent ); /** Select multiple address book entries. Open addressee select dialog and return the entries selected by the user. If the user doesn't select an entry or presses cancel, the returned addressee list is empty. */ static Addressee::List getAddressees( QWidget *parent ); private slots: void selectItem( const QString & ); + void selectNextItem( QListViewItem *item ); void updateEdit( QListViewItem *item ); void addSelected( QListViewItem *item ); void removeSelected(); + void loadAddressBook(); protected slots: void addressBookChanged(); private: - void loadAddressBook(); void addCompletionItem( const QString &str, QListViewItem *item ); bool mMultiple; KListView *mAddresseeList; - KLineEdit *mAddresseeEdit; + QLineEdit *mAddresseeEdit; KListView *mSelectedList; AddressBook *mAddressBook; QDict<QListViewItem> mItemDict; QDict<QListViewItem> mSelectedDict; class AddresseeDialogPrivate; AddresseeDialogPrivate *d; }; } #endif |