Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/dialogs/qinputdialog.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    232232
    233233    mainLayout = new QVBoxLayout(q);
     234    //we want to let the input dialog grow to available size on Symbian.
     235#ifndef Q_OS_SYMBIAN
    234236    mainLayout->setSizeConstraint(QLayout::SetMinAndMaxSize);
     237#else
     238    label->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
     239#endif
    235240    mainLayout->addWidget(label);
    236241    mainLayout->addWidget(inputWidget);
     
    245250    if (!lineEdit) {
    246251        lineEdit = new QLineEdit(q);
     252#ifndef QT_NO_IM
     253        qt_widget_private(lineEdit)->inheritsInputMethodHints = 1;
     254#endif
    247255        lineEdit->hide();
    248256        QObject::connect(lineEdit, SIGNAL(textChanged(QString)),
     
    256264    if (!comboBox) {
    257265        comboBox = new QComboBox(q);
     266#ifndef QT_NO_IM
     267        qt_widget_private(comboBox)->inheritsInputMethodHints = 1;
     268#endif
    258269        comboBox->hide();
    259270        QObject::connect(comboBox, SIGNAL(editTextChanged(QString)),
     
    553564        d->label->setText(text);
    554565    }
     566#ifdef Q_OS_SYMBIAN
     567    d->label->setWordWrap(true);
     568#endif
    555569}
    556570
Note: See TracChangeset for help on using the changeset viewer.