Changeset View
Changeset View
Standalone View
Standalone View
src/main/KexiMainWindow.cpp
Show First 20 Lines • Show All 3594 Lines • ▼ Show 20 Line(s) | 3594 | if (_currentWindow && _currentWindow != window) { | |||
---|---|---|---|---|---|
3595 | d->propertySet = 0; //we'll need to move to another prop. set | 3595 | d->propertySet = 0; //we'll need to move to another prop. set | ||
3596 | return; | 3596 | return; | ||
3597 | } | 3597 | } | ||
3598 | if (d->propEditor) { | 3598 | if (d->propEditor) { | ||
3599 | KPropertySet *newSet = _currentWindow ? _currentWindow->propertySet() : 0; | 3599 | KPropertySet *newSet = _currentWindow ? _currentWindow->propertySet() : 0; | ||
3600 | if (!newSet || (force || static_cast<KPropertySet*>(d->propertySet) != newSet)) { | 3600 | if (!newSet || (force || static_cast<KPropertySet*>(d->propertySet) != newSet)) { | ||
3601 | d->propertySet = newSet; | 3601 | d->propertySet = newSet; | ||
3602 | if (preservePrevSelection || force) { | 3602 | if (preservePrevSelection || force) { | ||
3603 | KPropertyEditorView::SetOptions options = KPropertyEditorView::ExpandChildItems; | 3603 | KPropertyEditorView::SetOptions options; | ||
3604 | if (preservePrevSelection) { | 3604 | if (preservePrevSelection) { | ||
3605 | options |= KPropertyEditorView::PreservePreviousSelection; | 3605 | options |= KPropertyEditorView::PreservePreviousSelection; | ||
3606 | } | 3606 | } | ||
3607 | if (sortedProperties) { | 3607 | if (sortedProperties) { | ||
3608 | options |= KPropertyEditorView::AlphabeticalOrder; | 3608 | options |= KPropertyEditorView::AlphabeticalOrder; | ||
3609 | } | 3609 | } | ||
3610 | 3610 | | |||
3611 | if (propertyToSelect.isEmpty()) { | 3611 | if (propertyToSelect.isEmpty()) { | ||
▲ Show 20 Lines • Show All 780 Lines • Show Last 20 Lines |