tools/qml/proxysettings.cpp
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
    46 #include "proxysettings.h"
    46 #include "proxysettings.h"
    47 
    47 
    48 QT_BEGIN_NAMESPACE
    48 QT_BEGIN_NAMESPACE
    49 
    49 
    50 ProxySettings::ProxySettings (QWidget * parent)
    50 ProxySettings::ProxySettings (QWidget * parent)
    51         : QDialog (parent), Ui::ProxySettings()
    51     : QDialog (parent), Ui::ProxySettings()
    52 {
    52 {
    53     setupUi (this);
    53     setupUi (this);
    54 
    54 
       
    55 #if !defined Q_WS_MAEMO_5
       
    56     // the onscreen keyboard can't cope with masks
    55     proxyServerEdit->setInputMask ("000.000.000.000;_");
    57     proxyServerEdit->setInputMask ("000.000.000.000;_");
       
    58 #endif
    56     QIntValidator *validator = new QIntValidator (0, 9999, this);
    59     QIntValidator *validator = new QIntValidator (0, 9999, this);
    57     proxyPortEdit->setValidator (validator);
    60     proxyPortEdit->setValidator (validator);
    58 
    61 
    59     QSettings settings;
    62     QSettings settings;
    60     proxyCheckBox->setChecked (settings.value ("http_proxy/use", 0).toBool ());
    63     proxyCheckBox->setChecked (settings.value ("http_proxy/use", 0).toBool ());