author | eilers <eilers> | 2003-08-08 14:45:49 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-08-08 14:45:49 (UTC) |
commit | 14d394e6c107b037a09a31a92605034fe50f7813 (patch) (side-by-side diff) | |
tree | 800699cf4dc9681c3eb023340634dd6a15fd04c8 /library/password.cpp | |
parent | dbc6ea35f5535a1f69deb7ebbafc0f721721dbf2 (diff) | |
download | opie-14d394e6c107b037a09a31a92605034fe50f7813.zip opie-14d394e6c107b037a09a31a92605034fe50f7813.tar.gz opie-14d394e6c107b037a09a31a92605034fe50f7813.tar.bz2 |
Merged branches from BRANCH_1_0
-rw-r--r-- | library/password.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/library/password.cpp b/library/password.cpp index 6d126c4..25fb1b8 100644 --- a/library/password.cpp +++ b/library/password.cpp @@ -82,5 +82,5 @@ PasswordDialog::PasswordDialog( QWidget* parent, const char* name, WFlags fl ) prompt->setFont( f ); } - + button_0->installEventFilter( this ); button_1->installEventFilter( this ); @@ -217,10 +217,11 @@ public: class OwnerDlg : public QDialog { + Q_OBJECT public: OwnerDlg( QWidget *parent, const char * name, Contact c, bool modal, bool fullscreen = FALSE ) - : QDialog( parent, name, modal, - fullscreen ? + : QDialog( parent, name, modal, + fullscreen ? WStyle_NoBorder | WStyle_Customize | WStyle_StaysOnTop : 0 ) { @@ -243,5 +244,5 @@ public: tv->resize( size() ); } - + bool eventFilter(QObject *o, QEvent *e) { @@ -290,5 +291,5 @@ QString Password::getPassword( const QString& prompt ) If \a at_poweron is TRUE, the dialog is only used if the user's preference request it at poweron - + Opie extension to speed up suspend/resume. */ @@ -299,5 +300,5 @@ bool Password::needToAuthenticate(bool at_poweron) cfg.setGroup("Passcode"); QString passcode = cfg.readEntry("passcode"); - + return ( !passcode.isEmpty() && (!at_poweron || cfg.readNumEntry("passcode_poweron",0)) ); @@ -325,5 +326,5 @@ void Password::authenticate(bool at_poweron) // see if there is contact information. OwnerDlg *oi = 0; - QString vfilename = Global::applicationFileName("addressbook", + QString vfilename = Global::applicationFileName("addressbook", "businesscard.vcf"); if (QFile::exists(vfilename)) { |