20 #ifndef AUTOSCALEDTOKEYBOARDGRAPHICSVIEW_H
21 #define AUTOSCALEDTOKEYBOARDGRAPHICSVIEW_H
23 #include <QGraphicsView>
24 #include <QGraphicsScene>
76 void showEvent(QShowEvent *event)
override;
89 #endif // AUTOSCALEDTOKEYBOARDGRAPHICSVIEW_H
KeyboardGraphicsView * mKeyboardGraphicsView
Pointer to the KeyboardGraphicsView.
Implementation of the GraphicsViewAdapter in Qt using QGraphicsView.
AutoScaledToKeyboardGraphicsView(QWidget *parent, DrawerBase *drawer)
Constructor.
void resizeEvent(QResizeEvent *event) override
Reimplemented to keep the visible view with the KeyboardGraphicsView.
~AutoScaledToKeyboardGraphicsView()
Destructor.
An GraphicsViewAdaptorForQt keeping the same size as a KeyboardGraphicsView.
void highlightKey(int key)
Function that will highlight the given key.
void setKeyboard(KeyboardGraphicsView *keyboardgraphicsview)
Setter function for the keyboard.
void showEvent(QShowEvent *event) override
Reimplemented to keep the visible view with the KeyboardGraphicsView.
Abstract base class for drawing 2d graphics.