diff options
Diffstat (limited to 'src/ktechlab.cpp')
-rw-r--r-- | src/ktechlab.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ktechlab.cpp b/src/ktechlab.cpp index 3da09c1..b6bfe79 100644 --- a/src/ktechlab.cpp +++ b/src/ktechlab.cpp @@ -286,7 +286,7 @@ void KTechlab::overlayToolBarScreenshot() if ( !toolsWidget && !debugWidget ) return; - TQWidget * tqparent = TQT_TQWIDGET(toolsWidget ? toolsWidget->tqparent() : debugWidget->tqparent()); + TQWidget * parent = TQT_TQWIDGET(toolsWidget ? toolsWidget->parent() : debugWidget->parent()); TQRect grabRect; @@ -300,9 +300,9 @@ void KTechlab::overlayToolBarScreenshot() if ( !grabRect.isValid() ) return; - TQPixmap shot = TQPixmap::grabWidget( tqparent, grabRect.x(), grabRect.y(), grabRect.width(), grabRect.height() ); + TQPixmap shot = TQPixmap::grabWidget( parent, grabRect.x(), grabRect.y(), grabRect.width(), grabRect.height() ); - m_pToolBarOverlayLabel->move( tqparent->mapToGlobal( grabRect.topLeft() ) ); + m_pToolBarOverlayLabel->move( parent->mapToGlobal( grabRect.topLeft() ) ); m_pToolBarOverlayLabel->setFixedSize( grabRect.size() ); m_pToolBarOverlayLabel->setPixmap( shot ); m_pToolBarOverlayLabel->show(); |