diff options
Diffstat (limited to 'src/gui/overlaywidget.cpp')
-rw-r--r-- | src/gui/overlaywidget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/overlaywidget.cpp b/src/gui/overlaywidget.cpp index 7116ba2..fd5c02b 100644 --- a/src/gui/overlaywidget.cpp +++ b/src/gui/overlaywidget.cpp @@ -13,7 +13,7 @@ #include "overlaywidget.h" -#include <layout.h> +#include <tqlayout.h> using Tellico::GUI::OverlayWidget; @@ -34,7 +34,7 @@ void OverlayWidget::setCorner(Corner corner_) { } void OverlayWidget::addWidget(TQWidget* widget_) { - layout()->add(widget_); + tqlayout()->add(widget_); adjustSize(); } @@ -70,9 +70,9 @@ void OverlayWidget::reposition() { } // Position in the toplevelwidget's coordinates - TQPoint pTopLevel = m_anchor->mapTo(topLevelWidget(), p); + TQPoint pTopLevel = m_anchor->mapTo(tqtopLevelWidget(), p); // Position in the widget's parentWidget coordinates - TQPoint pParent = parentWidget()->mapFrom(topLevelWidget(), pTopLevel); + TQPoint pParent = parentWidget()->mapFrom(tqtopLevelWidget(), pTopLevel); // keep it on the screen if(pParent.x() < 0) { pParent.rx() = 0; |