reimplemented zooming controls

This commit is contained in:
itsmattkc
2019-08-15 11:39:07 +10:00
parent b4529205b9
commit fb7c7f1bdb
15 changed files with 142 additions and 9 deletions
+8
View File
@@ -39,6 +39,14 @@ void PanelWidget::SetBorderVisible(bool enabled)
update();
}
void PanelWidget::ZoomIn()
{
}
void PanelWidget::ZoomOut()
{
}
void PanelWidget::SetTitle(const QString &t)
{
title_ = t;
+16
View File
@@ -46,6 +46,22 @@ public:
* @param enabled
*/
void SetBorderVisible(bool enabled);
/**
* @brief Called whenever this panel is focused and user uses "Zoom In" (either in menus or as a keyboard shortcut)
*
* This function is up to the Panel's interpretation of what the user intends to zoom into. Default behavior is a
* no-op.
*/
virtual void ZoomIn();
/**
* @brief Called whenever this panel is focused and user uses "Zoom Out" (either in menus or as a keyboard shortcut)
*
* This function is up to the Panel's interpretation of what the user intends to zoom out of. Default behavior is a
* no-op.
*/
virtual void ZoomOut();
protected:
/**
* @brief Set panel's title