Updates stylesheet margins and more...

This commit is contained in:
mfreiholz
2016-02-15 15:18:52 +01:00
parent 91e0f62f3e
commit 5a17a88146
5 changed files with 15 additions and 13 deletions

View File

@@ -32,6 +32,8 @@ SectionTitleWidget::SectionTitleWidget(SectionContent::RefPtr content, QWidget*
_activeTab(false)
{
QBoxLayout* l = new QBoxLayout(QBoxLayout::LeftToRight);
l->setContentsMargins(0, 0, 0, 0);
l->setSpacing(0);
l->addWidget(content->titleWidget());
setLayout(l);
}
@@ -261,7 +263,7 @@ void SectionTitleWidget::mouseMoveEvent(QMouseEvent* ev)
int left, top, right, bottom;
getContentsMargins(&left, &top, &right, &bottom);
QPoint moveToPos = mapToParent(ev->pos()) - _dragStartPos;
moveToPos.setY(0 + top);
moveToPos.setY(0/* + top*/);
move(moveToPos);
ev->accept();
}