+
+void LocationDialog::Rotate()
+{
+ bool landscape = UiUtils::IsLandscape();
+ ui->_search_layout->setDirection(landscape ? QBoxLayout::LeftToRight : QBoxLayout::TopToBottom);
+ ui->_button_box->setOrientation(landscape ? Qt::Vertical : Qt::Horizontal);
+ if (isVisible()) {
+ show();
+ }
+}