Changeset View
Changeset View
Standalone View
Standalone View
src/main/KexiMainWindow_p.cpp
Show First 20 Lines • Show All 1393 Lines • ▼ Show 20 Line(s) | |||||
1394 | void KexiMainWindow::Private::updatePropEditorVisibility(Kexi::ViewMode viewMode, KexiPart::Info *info) | 1394 | void KexiMainWindow::Private::updatePropEditorVisibility(Kexi::ViewMode viewMode, KexiPart::Info *info) | ||
1395 | { | 1395 | { | ||
1396 | if (!propEditorDockWidget) | 1396 | if (!propEditorDockWidget) | ||
1397 | return; | 1397 | return; | ||
1398 | KexiWindow *currentWindow = wnd->currentWindow(); | 1398 | KexiWindow *currentWindow = wnd->currentWindow(); | ||
1399 | if (!info && currentWindow) { | 1399 | if (!info && currentWindow) { | ||
1400 | info = currentWindow->part()->info(); | 1400 | info = currentWindow->part()->info(); | ||
1401 | } | 1401 | } | ||
1402 | const bool visible = (viewMode == Kexi::DesignViewMode) | 1402 | const bool visible = (viewMode == Kexi::DesignViewMode || viewMode == Kexi::TextViewMode) | ||
1403 | && ((currentWindow && currentWindow->propertySet()) || (info && info->isPropertyEditorAlwaysVisibleInDesignMode())); | 1403 | && ((currentWindow && currentWindow->propertySet()) || (info && info->isPropertyEditorAlwaysVisibleInDesignMode())); | ||
1404 | //qDebug() << "visible == " << visible; | 1404 | //qDebug() << "visible == " << visible; | ||
1405 | enable_slotPropertyEditorVisibilityChanged = false; | 1405 | enable_slotPropertyEditorVisibilityChanged = false; | ||
1406 | if (visible && propertyEditorCollapsed) { // used when we're switching back to a window with propeditor available but collapsed | 1406 | if (visible && propertyEditorCollapsed) { // used when we're switching back to a window with propeditor available but collapsed | ||
1407 | propEditorDockWidget->setVisible(!visible); | 1407 | propEditorDockWidget->setVisible(!visible); | ||
1408 | setPropertyEditorTabBarVisible(true); | 1408 | setPropertyEditorTabBarVisible(true); | ||
1409 | } | 1409 | } | ||
1410 | else { | 1410 | else { | ||
▲ Show 20 Lines • Show All 226 Lines • Show Last 20 Lines |