Changeset View
Changeset View
Standalone View
Standalone View
sublime/idealcontroller.cpp
Show First 20 Lines • Show All 180 Lines • ▼ Show 20 Line(s) | 167 | if (IdealButtonBarWidget* bar = barForDockArea(area)) { | |||
---|---|---|---|---|---|
181 | 181 | | |||
182 | // after drag, the toolview loses focus, so focus it again | 182 | // after drag, the toolview loses focus, so focus it again | ||
183 | dock->setFocus(Qt::ShortcutFocusReason); | 183 | dock->setFocus(Qt::ShortcutFocusReason); | ||
184 | 184 | | |||
185 | m_docks->addAction(action); | 185 | m_docks->addAction(action); | ||
186 | } | 186 | } | ||
187 | 187 | | |||
188 | if (area == Qt::BottomDockWidgetArea || area == Qt::TopDockWidgetArea) | 188 | if (area == Qt::BottomDockWidgetArea || area == Qt::TopDockWidgetArea) | ||
189 | dock->setFeatures( QDockWidget::DockWidgetClosable | QDockWidget::DockWidgetMovable | IdealDockWidget::DockWidgetVerticalTitleBar | QDockWidget::DockWidgetMovable); | 189 | dock->setFeatures( QDockWidget::DockWidgetClosable | QDockWidget::DockWidgetMovable | IdealDockWidget::DockWidgetVerticalTitleBar ); | ||
190 | else | 190 | else | ||
191 | dock->setFeatures( QDockWidget::DockWidgetClosable | QDockWidget::DockWidgetMovable | QDockWidget::DockWidgetMovable ); | 191 | dock->setFeatures( QDockWidget::DockWidgetClosable | QDockWidget::DockWidgetMovable ); | ||
192 | } | 192 | } | ||
193 | 193 | | |||
194 | IdealButtonBarWidget* IdealController::barForDockArea(Qt::DockWidgetArea area) const | 194 | IdealButtonBarWidget* IdealController::barForDockArea(Qt::DockWidgetArea area) const | ||
195 | { | 195 | { | ||
196 | switch (area) { | 196 | switch (area) { | ||
197 | case Qt::LeftDockWidgetArea: | 197 | case Qt::LeftDockWidgetArea: | ||
198 | return leftBarWidget; | 198 | return leftBarWidget; | ||
199 | 199 | | |||
▲ Show 20 Lines • Show All 300 Lines • Show Last 20 Lines |