diff options
author | Roopesh Chander <roop@forwardbias.in> | 2009-11-04 15:28:18 +0530 |
---|---|---|
committer | Roopesh Chander <roop@forwardbias.in> | 2009-11-04 15:28:18 +0530 |
commit | b94c1b0dfb921d26987be8d8b9ce0e6dff61f478 (patch) | |
tree | 70097552724990fcc1f758ff117ddd9b3f715766 /webscrap.cpp | |
parent | 6017c1fe8cd0c711c1e0d49c8c41e3bf89d70a65 (diff) |
make sure that the edit toolbar is not cropped by the frame
Diffstat (limited to 'webscrap.cpp')
-rw-r--r-- | webscrap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webscrap.cpp b/webscrap.cpp index ca54d25..73f006d 100644 --- a/webscrap.cpp +++ b/webscrap.cpp @@ -345,7 +345,7 @@ void WebScrapContainer::createEditToolbar() { m_editToolbar->setGraphicsEffectsEnabled(false); m_editToolbar->setOpacity(1.0); - m_editToolbar->setParentItem(m_frame); + m_editToolbar->setParentItem(this); m_editToolbar->setZValue(901); m_editToolbar->layout()->activate(); m_editToolbar->setPos(m_scrap->pos() + m_scrap->boundingRect().topRight() - QPointF(m_editToolbar->boundingRect().width() + 5, -5)); @@ -387,6 +387,7 @@ void WebScrapContainer::handleRectResized(QRectF rect) { path.addRoundedRect(0, 0, scrapSize.width() + 10, scrapSize.height() + 30, 10, 10); m_frame->setPath(path); m_toolbar->setPos(m_frame->pos() + m_frame->boundingRect().topRight() - QPointF(m_toolbar->rect().width(), 0)); + m_editToolbar->setPos(m_scrap->pos() + m_scrap->boundingRect().topRight() - QPointF(m_editToolbar->boundingRect().width() + 5, -5)); } WebScrap* WebScrapContainer::webScrap() const { |