author | zautrix <zautrix> | 2005-03-01 14:36:05 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-01 14:36:05 (UTC) |
commit | 611f97f6d17f6c4e1944ffe39cd74d2a4cd1f2ae (patch) (side-by-side diff) | |
tree | beeb9aebeec2d6829f0c7342ed290e16d56c19b3 | |
parent | 81e2fbd0c031a3db209de68c190ddf4c0350d14a (diff) | |
download | kdepimpi-611f97f6d17f6c4e1944ffe39cd74d2a4cd1f2ae.zip kdepimpi-611f97f6d17f6c4e1944ffe39cd74d2a4cd1f2ae.tar.gz kdepimpi-611f97f6d17f6c4e1944ffe39cd74d2a4cd1f2ae.tar.bz2 |
tab fixes
-rw-r--r-- | pwmanager/pwmanager/addentrywnd_emb.cpp | 7 | ||||
-rw-r--r-- | pwmanager/pwmanager/commentbox.cpp | 1 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwm.cpp | 2 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwmview.cpp | 1 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwmviewstyle.cpp | 11 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwmviewstyle.h | 11 |
6 files changed, 30 insertions, 3 deletions
diff --git a/pwmanager/pwmanager/addentrywnd_emb.cpp b/pwmanager/pwmanager/addentrywnd_emb.cpp index f065058..c2590f0 100644 --- a/pwmanager/pwmanager/addentrywnd_emb.cpp +++ b/pwmanager/pwmanager/addentrywnd_emb.cpp @@ -171,2 +171,9 @@ addEntryWnd::addEntryWnd( PwMDoc* d, QWidget* parent, const char* name) connect( revealButton, SIGNAL( toggled(bool) ), this, SLOT( revealButton_slot() ) ); + +#if 0 + if ( QApplication::desktop()->width() <= 640 && QApplication::desktop()->width() >= 480 ) { + resize ( 440, 400 ); + } +#endif + } diff --git a/pwmanager/pwmanager/commentbox.cpp b/pwmanager/pwmanager/commentbox.cpp index e2d2d2b..0f32561 100644 --- a/pwmanager/pwmanager/commentbox.cpp +++ b/pwmanager/pwmanager/commentbox.cpp @@ -234,2 +234,3 @@ CommentBox::CommentBox(QWidget *_parentWidget) this->setReadOnly(true); + setFocusPolicy( QWidget::ClickFocus ); } diff --git a/pwmanager/pwmanager/pwm.cpp b/pwmanager/pwmanager/pwm.cpp index fc6837f..aed8ec0 100644 --- a/pwmanager/pwmanager/pwm.cpp +++ b/pwmanager/pwmanager/pwm.cpp @@ -661,2 +661,3 @@ void PwM::addPwd_slot1(QString *pw, PwMDoc *_doc) tryAgain: + w.descLineEdit->setFocus(); if (w.exec() == 1) @@ -761,2 +762,3 @@ void PwM::editPwd_slot3(const QString *category, const int *index, w.setComment(currItem.comment.c_str()); + w.descLineEdit->setFocus(); if (w.exec() == 1) { diff --git a/pwmanager/pwmanager/pwmview.cpp b/pwmanager/pwmanager/pwmview.cpp index 8c4d9cc..7f7dd6f 100644 --- a/pwmanager/pwmanager/pwmview.cpp +++ b/pwmanager/pwmanager/pwmview.cpp @@ -67,2 +67,3 @@ PwMView::PwMView(PwM *_mainClass, connect(doc, SIGNAL(dataChanged(PwMDoc *)), this, SLOT(updateView())); + connect(this, SIGNAL(editPW()), mainClass, SLOT(editPwd_slot())); } diff --git a/pwmanager/pwmanager/pwmviewstyle.cpp b/pwmanager/pwmanager/pwmviewstyle.cpp index 0af1473..5f25880 100644 --- a/pwmanager/pwmanager/pwmviewstyle.cpp +++ b/pwmanager/pwmanager/pwmviewstyle.cpp @@ -63,2 +63,8 @@ PwMViewStyle::~PwMViewStyle() +void PwMViewStyle::editPassWord( QListViewItem * i ) +{ + if ( !i ) + return; + emit editPW(); +} void PwMViewStyle::initStyle(style_t style) @@ -95,2 +101,7 @@ void PwMViewStyle::initStyle(style_t style) v, SLOT(refreshCommentTextEdit(QListViewItem *))); + connect(lv, SIGNAL(returnPressed(QListViewItem *)), + this, SLOT(editPassWord(QListViewItem *))); + connect(lv, SIGNAL(doubleClicked(QListViewItem *)), + this, SLOT(editPassWord(QListViewItem *))); + lv->addColumn(i18n("Description"), 180); diff --git a/pwmanager/pwmanager/pwmviewstyle.h b/pwmanager/pwmanager/pwmviewstyle.h index bf5ce91..5656cbc 100644 --- a/pwmanager/pwmanager/pwmviewstyle.h +++ b/pwmanager/pwmanager/pwmviewstyle.h @@ -44,2 +44,3 @@ class PwMViewStyle_1; class PwMView; +class QListViewItem; class CommentBox; @@ -91,2 +92,7 @@ protected: void resizeView(const QSize &size); + ListViewPwM *lv; + CommentBox *commentBox; + +protected slots: + void editPassWord( QListViewItem * ); @@ -102,6 +108,5 @@ private: PwMView *v; + signals: + void editPW(); -protected: - ListViewPwM *lv; - CommentBox *commentBox; }; |