Stepped keyboard zoom and a steady tab strip (12.9b)
This commit is contained in:
1 parent
fdb62978c5
commit
9ac3b1b81c
17 files changed
+533
-38
No files matched your search
@@ -315,6 +315,17 @@ void EditorSession::zoom(double value, std::optional<QPointF> anchor)
|
||||
notify();
|
||||
}
|
||||
|
||||
void EditorSession::zoomKeyboard(int step)
|
||||
{
|
||||
if (!m_document)
|
||||
return;
|
||||
const double target = viewport.keyboardZoomTarget(step);
|
||||
if (target == viewport.zoom())
|
||||
return;
|
||||
viewport.setZoom(target, viewport.center(), m_document->size());
|
||||
notify();
|
||||
}
|
||||
|
||||
void EditorSession::setShowsPixelGrid(bool shows)
|
||||
{
|
||||
m_showsPixelGrid = shows;
|
||||
|
||||
Reference in new issue
Block a user