X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/8e55f2c2409fd6ca9ebc66a6568f4d3bcbef7576..40cc5f665d:/src/selectionmode/bottombar.cpp?ds=sidebyside diff --git a/src/selectionmode/bottombar.cpp b/src/selectionmode/bottombar.cpp index 999b24ae4..af9f9dd07 100644 --- a/src/selectionmode/bottombar.cpp +++ b/src/selectionmode/bottombar.cpp @@ -11,16 +11,10 @@ #include "backgroundcolorhelper.h" #include "global.h" -#include -#include -#include -#include - #include #include #include #include -#include #include using namespace SelectionMode; @@ -57,7 +51,7 @@ BottomBar::BottomBar(KActionCollection *actionCollection, QWidget *parent) : } setVisibleInternal(visible, WithAnimation); }); - connect(m_contentsContainer, &BottomBarContentsContainer::leaveSelectionModeRequested, this, &BottomBar::leaveSelectionModeRequested); + connect(m_contentsContainer, &BottomBarContentsContainer::selectionModeLeavingRequested, this, &BottomBar::selectionModeLeavingRequested); BackgroundColorHelper::instance()->controlBackgroundColor(this); } @@ -87,7 +81,6 @@ void BottomBar::setVisibleInternal(bool visible, Animated animated) m_heightAnimation->setDuration(2 * style()->styleHint(QStyle::SH_Widget_Animation_Duration, nullptr, this) * GlobalConfig::animationDurationFactor()); - m_heightAnimation->setStartValue(height()); m_heightAnimation->setEasingCurve(QEasingCurve::OutCubic); if (visible) { @@ -120,7 +113,7 @@ void BottomBar::slotSplitTabDisabled() switch (contents()) { case CopyToOtherViewContents: case MoveToOtherViewContents: - Q_EMIT leaveSelectionModeRequested(); + Q_EMIT selectionModeLeavingRequested(); default: return; } @@ -166,7 +159,7 @@ void BottomBar::resizeEvent(QResizeEvent *resizeEvent) return QWidget::resizeEvent(resizeEvent); } - m_contentsContainer->updateForNewWidth(); + m_contentsContainer->adaptToNewBarWidth(width()); return QWidget::resizeEvent(resizeEvent); }