qgsattributeeditor.diff
src/gui/qgsattributeeditor.cpp | ||
---|---|---|
438 | 438 |
QLineEdit *le = 0; |
439 | 439 |
QTextEdit *te = 0; |
440 | 440 |
QPlainTextEdit *pte = 0; |
441 |
QComboBox * cb = 0; |
|
441 | 442 | |
442 | 443 |
if ( editor ) |
443 | 444 |
{ |
444 | 445 |
le = qobject_cast<QLineEdit *>( editor ); |
445 | 446 |
te = qobject_cast<QTextEdit *>( editor ); |
446 | 447 |
pte = qobject_cast<QPlainTextEdit *>( editor ); |
448 |
cb = qobject_cast<QComboBox *>( editor ); |
|
447 | 449 |
} |
448 | 450 |
else if ( editType == QgsVectorLayer::TextEdit ) |
449 | 451 |
{ |
... | ... | |
491 | 493 |
myWidget = pte; |
492 | 494 |
} |
493 | 495 | |
496 |
if ( cb ) |
|
497 |
{ |
|
498 |
myWidget = cb; |
|
499 |
} |
|
500 | ||
494 | 501 |
if ( myWidget ) |
495 | 502 |
{ |
496 | 503 |
myWidget->setDisabled( editType == QgsVectorLayer::Immutable ); |