┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/selectionmode/topbar.cpp
diff options
context:
space:
mode:
authorFelix Ernst <[email protected]>2022-04-25 12:52:05 +0200
committerFelix Ernst <[email protected]>2022-08-14 14:42:40 +0000
commit78cffd2979a6ed87e044fcb024cf4fdfc5c7cb3d (patch)
tree7e5b66a5b4fc8c3328949d80898be2d1d57da5b7 /src/selectionmode/topbar.cpp
parent8e55f2c2409fd6ca9ebc66a6568f4d3bcbef7576 (diff)
Improve code quality
Diffstat (limited to 'src/selectionmode/topbar.cpp')
-rw-r--r--src/selectionmode/topbar.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/selectionmode/topbar.cpp b/src/selectionmode/topbar.cpp
index d783c76ca..51467cd99 100644
--- a/src/selectionmode/topbar.cpp
+++ b/src/selectionmode/topbar.cpp
@@ -42,7 +42,7 @@ TopBar::TopBar(QWidget *parent) :
fillParentLayout->setContentsMargins(0, 0, 0, 0);
// Put the contents into a QScrollArea. This prevents increasing the view width
- // in case that not enough width for the contents is available. (this trick is also used in selectionmodebottombar.cpp.)
+ // in case that not enough width for the contents is available. (this trick is also used in bottombar.cpp.)
auto scrollArea = new QScrollArea(this);
fillParentLayout->addWidget(scrollArea);
scrollArea->setFrameShape(QFrame::NoFrame);
@@ -111,9 +111,10 @@ void TopBar::setVisible(bool visible, Animated animated)
m_heightAnimation->start(QAbstractAnimation::DeleteWhenStopped);
}
-void TopBar::resizeEvent(QResizeEvent */* resizeEvent */)
+void TopBar::resizeEvent(QResizeEvent *resizeEvent)
{
updateLabelString();
+ return QWidget::resizeEvent(resizeEvent);
}
void TopBar::updateLabelString()