~ubuntu-branches/ubuntu/oneiric/pyside/oneiric

« back to all changes in this revision

Viewing changes to doc/codesnippets/examples/dialogs/standarddialogs/dialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Didier Raboud
  • Date: 2010-10-19 22:52:14 UTC
  • mfrom: (1.1.4 upstream)
  • mto: (13.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20101019225214-0s9fbpz12x3962qa
Tags: upstream-0.4.2
ImportĀ upstreamĀ versionĀ 0.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
//! [2]
64
64
 
65
65
//! [3]
66
 
    QString text = QInputDialog::getText(self, self.tr("QInputDialog().getText()"),
 
66
    text = QInputDialog::getText(self, self.tr("QInputDialog().getText()"),
67
67
                                         self.tr("User name:"), QLineEdit.Normal,
68
68
                                         QDir().home().dirName(), ok)
69
 
    if ok and not text.isEmpty():
 
69
    if ok and text:
70
70
        textLabel.setText(text)
71
71
//! [3]