QTfrontend/ui/page/pageoptions.cpp
changeset 7703 78d2ac987f41
parent 7702 c8906c3a2aeb
child 8098 4efee370e2de
equal deleted inserted replaced
7702:c8906c3a2aeb 7703:78d2ac987f41
   625     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()));
   626 }
   626 }
   627 
   627 
   628 void PageOptions::onProxyTypeChanged()
   628 void PageOptions::onProxyTypeChanged()
   629 {
   629 {
   630     bool b = cbProxyType->currentIndex() > 1;
   630     bool b = cbProxyType->currentIndex() != NoProxy && cbProxyType->currentIndex() != SystemProxy ;
   631 
   631 
   632     sbProxyPort->setEnabled(b);
   632     sbProxyPort->setEnabled(b);
   633     leProxy->setEnabled(b);
   633     leProxy->setEnabled(b);
   634     leProxyLogin->setEnabled(b);
   634     leProxyLogin->setEnabled(b);
   635     leProxyPassword->setEnabled(b);
   635     leProxyPassword->setEnabled(b);