fix CTRL in songeditor by losing focus (#3796)

* fix CTRL in songeditor by losing focus

* init m_ctrlAction
This commit is contained in:
Steffen Baranowsky
2017-09-12 21:57:40 +02:00
committed by GitHub
parent 30020ebc8c
commit b69b585612
4 changed files with 50 additions and 4 deletions

View File

@@ -165,6 +165,7 @@ protected slots:
void recordAccompany();
void stop();
void lostFocus();
void adjustUiAfterProjectLoad();
signals:

View File

@@ -65,7 +65,10 @@ protected:
virtual void resizeEvent( QResizeEvent * event );
virtual void paintEvent( QPaintEvent * pe );
virtual void changeEvent( QEvent * event );
signals:
void focusLost();
private:
const QSize m_buttonSize;
const int m_titleBarHeight;
@@ -79,10 +82,14 @@ private:
QRect m_trackedNormalGeom;
QLabel * m_windowTitle;
QGraphicsDropShadowEffect * m_shadow;
bool m_hasFocus;
static void elideText( QLabel *label, QString text );
bool isMaximized();
void adjustTitleBar();
private slots:
void focusChanged( QMdiSubWindow * subWindow );
};
#endif