author | zautrix <zautrix> | 2005-01-19 14:35:53 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-19 14:35:53 (UTC) |
commit | a9f8ad6916ea1a849a43fe49c4085f6c44b5c47b (patch) (side-by-side diff) | |
tree | a649fbc1c07e2c199833da1a23cf326d68406d4b /pwmanager | |
parent | 0d878a0144644499ead17b2532cc94abb545bcdb (diff) | |
download | kdepimpi-a9f8ad6916ea1a849a43fe49c4085f6c44b5c47b.zip kdepimpi-a9f8ad6916ea1a849a43fe49c4085f6c44b5c47b.tar.gz kdepimpi-a9f8ad6916ea1a849a43fe49c4085f6c44b5c47b.tar.bz2 |
dislog size fixes
-rw-r--r-- | pwmanager/pwmanager/editcategory.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/editcategory.cpp b/pwmanager/pwmanager/editcategory.cpp index 4e55de8..4e2378c 100644 --- a/pwmanager/pwmanager/editcategory.cpp +++ b/pwmanager/pwmanager/editcategory.cpp @@ -100,89 +100,90 @@ editCategoryWnd::editCategoryWnd( PwMDoc* d, QWidget* parent, const char* name) // PwMCategoryItem* getCategoryEntry(unsigned int index) // { return &(dti.dta[index]); } } /* * Destroys the object and frees any allocated resources */ editCategoryWnd::~editCategoryWnd() { // no need to delete child widgets, Qt does it all for us } void editCategoryWnd::slotOk() { // qDebug( "addEntryWnd::slotOk(): Not implemented yet" ); slotApply(); accept(); } void editCategoryWnd::slotApply() { QString cat = categoryComboBox->currentText(); unsigned int idx; bool found = doc->findCategory(cat, &idx); if (found == true) { PwMCategoryItem* catitem = doc->getCategoryEntry(idx); catitem->desc_text = descLineEdit->text().latin1(); catitem->name_text = usernameLineEdit->text().latin1(); catitem->pw_text = pwLineEdit->text().latin1(); enableButton( KDialogBase::Apply, false ); return; } BUG(); } void editCategoryWnd::cancel_slot() { QString cat = categoryComboBox->currentText(); categorySelected ( cat ); + reject(); } void editCategoryWnd::setCurrCategory(const QString &cat) { int i, count = categoryComboBox->count(); for (i = 0; i < count; ++i) { if (categoryComboBox->text(i) == cat) { categoryComboBox->setCurrentItem(i); categorySelected ( cat ); return; } } BUG(); } void editCategoryWnd::categorySelected ( const QString & string ) { unsigned int idx; bool found = doc->findCategory(string, &idx); if (found == true) { PwMCategoryItem* catitem = doc->getCategoryEntry(idx); descLineEdit->setText(catitem->desc_text.c_str()); usernameLineEdit->setText(catitem->name_text.c_str()); pwLineEdit->setText(catitem->pw_text.c_str()); enableButton( KDialogBase::Apply, false ); return; } BUG(); } void editCategoryWnd::widgetModified(const QString &) { enableButton( KDialogBase::Apply, true ); } |