fix dock position error

Change-Id: I47d9c2d25e9515f3c52d2cbe4e4284d30b12fa50
This commit is contained in:
石博文 2016-08-05 16:04:19 +08:00
parent 713f9fa7f7
commit ac74a279bd
Notes: Deepin Code Review 2016-08-05 08:08:51 +00:00
Verified+1: Anonymous Coward #1000004
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 石博文 <sbw@sbw.so>
Submitted-at: Fri, 05 Aug 2016 08:08:51 +0000
Reviewed-on: https://cr.deepin.io/14948
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -147,6 +147,9 @@ void MainWindow::initConnections()
QWidget::setFixedSize(size);
m_mainPanel->setFixedSize(size);
});
connect(m_posChangeAni, &QPropertyAnimation::finished, [this] {
QWidget::move(m_posChangeAni->endValue().toPoint());
});
}
void MainWindow::updatePosition()