~ubuntu-branches/debian/stretch/psi-plus/stretch

« back to all changes in this revision

Viewing changes to src/accountloginpassword.cpp

  • Committer: Package Import Robot
  • Author(s): Boris Pek
  • Date: 2013-10-23 02:42:20 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20131023024220-bk2hyoenqkwfhpgw
Tags: 0.16.242-1
* New upstream release:
  fixed the problem of initialization of private conversation when both
  sides use libotr 4.0.x. (Closes: #724880)
* Update debian/watch: sources were moved.
* Delete psi-plus-content-downloader package and update all related files.
  This plugin is in psi-plus-plugins package now.
* Update debian/control:
  - remove all currently unneeded Replaces and Breaks fields
  - add build dependency on libidn11-dev
* Update debian/rules: simplify get-orig-source section.
* Update debian/copyright:
  - update Source field due to changes in sources location
  - remove copyright holders whose code was deleted from source tree
    (bundled libidn library was removed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#include "alertmanager.h"
34
34
 
35
35
 
36
 
AccountLoginPassword::AccountLoginPassword(PsiAccount *account) : 
 
36
AccountLoginPassword::AccountLoginPassword(PsiAccount *account) :
37
37
                        account_(account),
38
38
                        le_(this) {
39
39
 
45
45
        } else {
46
46
                message = tr("Please enter your password:");
47
47
        }
48
 
        
 
48
 
49
49
        le_.setEchoMode(QLineEdit::Password);
50
50
        le_.setFocus();
51
51
 
52
52
        setWindowTitle(tr("Need Password"));
53
53
        QVBoxLayout *vbox = new QVBoxLayout(this);
54
 
        
55
 
        
56
 
        
 
54
 
 
55
 
 
56
 
57
57
        QLabel *label = new QLabel(message, this);
58
58
        vbox->addWidget(label);
59
59
        vbox->addStretch(1);
60
 
        
 
60
 
61
61
        vbox->addWidget(&le_);
62
62
        vbox->addStretch(1);
63
 
        
 
63
 
64
64
        label->setBuddy(&le_);
65
 
        
66
 
        
 
65
 
 
66
 
67
67
        QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Cancel,
68
68
                                                                                                                Qt::Horizontal, this);
69
69
        QPushButton *okButton = static_cast<QPushButton *>(buttonBox->addButton(QDialogButtonBox::Ok));
70
70
        okButton->setDefault(true);
71
71
        vbox->addWidget(buttonBox);
72
 
        
 
72
 
73
73
        QObject::connect(buttonBox, SIGNAL(accepted()), SLOT(accept()));
74
74
        QObject::connect(buttonBox, SIGNAL(rejected()), SLOT(reject()));
75
 
        
 
75
 
76
76
        setSizeGripEnabled(true);
77
 
        
 
77
 
78
78
        psi_->alertManager()->raiseDialog(this, AlertManager::AccountPassword);
79
79
}
80
80