equal
deleted
inserted
replaced
464 } |
464 } |
465 |
465 |
466 cbProxyType = new QComboBox(gbProxy); |
466 cbProxyType = new QComboBox(gbProxy); |
467 cbProxyType->addItems(QStringList() |
467 cbProxyType->addItems(QStringList() |
468 << tr("No proxy") |
468 << tr("No proxy") |
|
469 << tr("System proxy settings") |
469 << tr("Socks5 proxy") |
470 << tr("Socks5 proxy") |
470 << tr("HTTP proxy")); |
471 << tr("HTTP proxy")); |
471 gbLayout->addWidget(cbProxyType, 0, 1); |
472 gbLayout->addWidget(cbProxyType, 0, 1); |
472 |
473 |
473 leProxy = new QLineEdit(gbProxy); |
474 leProxy = new QLineEdit(gbProxy); |
624 m_colorButtons[topLeft.row()]->setStyleSheet(QString("background: %1").arg(model->item(topLeft.row())->data().value<QColor>().name())); |
625 m_colorButtons[topLeft.row()]->setStyleSheet(QString("background: %1").arg(model->item(topLeft.row())->data().value<QColor>().name())); |
625 } |
626 } |
626 |
627 |
627 void PageOptions::onProxyTypeChanged() |
628 void PageOptions::onProxyTypeChanged() |
628 { |
629 { |
629 bool b = cbProxyType->currentIndex() > 0; |
630 bool b = cbProxyType->currentIndex() > 1; |
630 |
631 |
631 sbProxyPort->setEnabled(b); |
632 sbProxyPort->setEnabled(b); |
632 leProxy->setEnabled(b); |
633 leProxy->setEnabled(b); |
633 leProxyLogin->setEnabled(b); |
634 leProxyLogin->setEnabled(b); |
634 leProxyPassword->setEnabled(b); |
635 leProxyPassword->setEnabled(b); |