Changeset View
Changeset View
Standalone View
Standalone View
screenedge.cpp
Show First 20 Lines • Show All 874 Lines • ▼ Show 20 Line(s) | 874 | if ((*it)->border() == border) { | |||
---|---|---|---|---|---|
875 | (*it)->setTouchAction(newValue); | 875 | (*it)->setTouchAction(newValue); | ||
876 | } | 876 | } | ||
877 | } | 877 | } | ||
878 | } | 878 | } | ||
879 | 879 | | |||
880 | void ScreenEdges::updateLayout() | 880 | void ScreenEdges::updateLayout() | ||
881 | { | 881 | { | ||
882 | const QSize desktopMatrix = VirtualDesktopManager::self()->grid().size(); | 882 | const QSize desktopMatrix = VirtualDesktopManager::self()->grid().size(); | ||
883 | Qt::Orientations newLayout = nullptr; | 883 | Qt::Orientations newLayout = {}; | ||
884 | if (desktopMatrix.width() > 1) { | 884 | if (desktopMatrix.width() > 1) { | ||
885 | newLayout |= Qt::Horizontal; | 885 | newLayout |= Qt::Horizontal; | ||
886 | } | 886 | } | ||
887 | if (desktopMatrix.height() > 1) { | 887 | if (desktopMatrix.height() > 1) { | ||
888 | newLayout |= Qt::Vertical; | 888 | newLayout |= Qt::Vertical; | ||
889 | } | 889 | } | ||
890 | if (newLayout == m_virtualDesktopLayout) { | 890 | if (newLayout == m_virtualDesktopLayout) { | ||
891 | return; | 891 | return; | ||
▲ Show 20 Lines • Show All 604 Lines • Show Last 20 Lines |