Pin Tool: fix content margins in Windows

This commit is contained in:
lupoDharkael
2018-05-04 11:21:20 +02:00
parent c68179f64c
commit 2fd8bd209b
3 changed files with 9 additions and 2 deletions

View File

@@ -44,7 +44,8 @@ QString PinTool::description() const {
QWidget* PinTool::widget() {
PinWidget *w = new PinWidget(m_pixmap);
QRect adjusted_pos = m_geometry + w->contentsMargins();
const int &&m = w->margin();
QRect adjusted_pos = m_geometry + QMargins(m,m,m,m);
w->setGeometry(adjusted_pos);
return w;
}