Fix incorrect initial edit mode

master
Jeremy Hu 2018-04-13 09:42:19 +08:00
parent 30971048de
commit 3295c1b767
3 changed files with 8 additions and 1 deletions

View File

@ -16,7 +16,8 @@ SkeletonDocument::SkeletonDocument() :
m_resultMeshIsObsolete(false), m_resultMeshIsObsolete(false),
m_resultMesh(nullptr), m_resultMesh(nullptr),
m_meshGenerator(nullptr), m_meshGenerator(nullptr),
m_batchChangeRefCount(0) m_batchChangeRefCount(0),
editMode(SkeletonDocumentEditMode::Select)
{ {
} }

View File

@ -534,6 +534,11 @@ void SkeletonDocumentWindow::showEvent(QShowEvent *event)
} }
} }
void SkeletonDocumentWindow::mousePressEvent(QMouseEvent *event)
{
QMainWindow::mousePressEvent(event);
}
void SkeletonDocumentWindow::changeTurnaround() void SkeletonDocumentWindow::changeTurnaround()
{ {
QString fileName = QFileDialog::getOpenFileName(this, QString(), QString(), QString fileName = QFileDialog::getOpenFileName(this, QString(), QString(),

View File

@ -26,6 +26,7 @@ public:
protected: protected:
void showEvent(QShowEvent *event); void showEvent(QShowEvent *event);
void closeEvent(QCloseEvent *event); void closeEvent(QCloseEvent *event);
void mousePressEvent(QMouseEvent *event);
public slots: public slots:
void changeTurnaround(); void changeTurnaround();
void save(); void save();