From 41975435a2a93733a0e46a7e594ffba193be6e87 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 24 Oct 2020 14:20:31 +0200 Subject: cleanup: remove TagWidget::fixPopupPosition() No user of that member function! Signed-off-by: Berthold Stoeger --- desktop-widgets/tagwidget.cpp | 8 -------- desktop-widgets/tagwidget.h | 1 - 2 files changed, 9 deletions(-) diff --git a/desktop-widgets/tagwidget.cpp b/desktop-widgets/tagwidget.cpp index e7f2a9bfe..5327b0a2c 100644 --- a/desktop-widgets/tagwidget.cpp +++ b/desktop-widgets/tagwidget.cpp @@ -197,14 +197,6 @@ void TagWidget::wheelEvent(QWheelEvent *event) } } -void TagWidget::fixPopupPosition(int delta) -{ - if(m_completer->popup()->isVisible()){ - QRect toGlobal = m_completer->popup()->geometry(); - m_completer->popup()->setGeometry(toGlobal.x(), toGlobal.y() + delta +10, toGlobal.width(), toGlobal.height()); - } -} - // Since we capture enter / return / tab, we never send an editingFinished() signal. // Therefore, override the focusOutEvent() void TagWidget::focusOutEvent(QFocusEvent *ev) diff --git a/desktop-widgets/tagwidget.h b/desktop-widgets/tagwidget.h index da5091658..83e8b86b5 100644 --- a/desktop-widgets/tagwidget.h +++ b/desktop-widgets/tagwidget.h @@ -18,7 +18,6 @@ public: void clear(); void setCursorPosition(int position); void wheelEvent(QWheelEvent *event); - void fixPopupPosition(int delta); public slots: void reparse(); -- cgit v1.2.3-70-g09d2