#include "backgroundcolorhelper.h"
#include "global.h"
-#include <KActionCollection>
-#include <KFileItem>
-#include <KFileItemListProperties>
-#include <KStandardAction>
-
#include <QGridLayout>
#include <QResizeEvent>
#include <QScrollArea>
#include <QStyle>
-#include <QtGlobal>
#include <QTimer>
using namespace SelectionMode;
}
setVisibleInternal(visible, WithAnimation);
});
- connect(m_contentsContainer, &BottomBarContentsContainer::leaveSelectionModeRequested, this, &BottomBar::leaveSelectionModeRequested);
+ connect(m_contentsContainer, &BottomBarContentsContainer::selectionModeLeavingRequested, this, &BottomBar::selectionModeLeavingRequested);
BackgroundColorHelper::instance()->controlBackgroundColor(this);
}
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) {
switch (contents()) {
case CopyToOtherViewContents:
case MoveToOtherViewContents:
- Q_EMIT leaveSelectionModeRequested();
+ Q_EMIT selectionModeLeavingRequested();
default:
return;
}
return QWidget::resizeEvent(resizeEvent);
}
- m_contentsContainer->updateForNewWidth();
+ m_contentsContainer->adaptToNewBarWidth(width());
return QWidget::resizeEvent(resizeEvent);
}