diff options
Diffstat (limited to 'src/dock.cpp')
| -rw-r--r-- | src/dock.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dock.cpp b/src/dock.cpp index 17edc44bf..2dc064639 100644 --- a/src/dock.cpp +++ b/src/dock.cpp @@ -237,3 +237,9 @@ void Dock::addActions ( QList<QAction *> actions ) m_widgetList.at ( i )->addActions ( actions ); } +bool Dock::isUnder(QWidget* upper, QWidget* nether) +{ + if (!isDocked(upper, nether)) + return FALSE; + return abs (upper->y() + upper->height() - nether->y()) < 2; +} |
