Skip to content

Commit

Permalink
QtWidgets: cpp-linter
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfalk committed Jul 5, 2024
1 parent b34b897 commit 7c92f15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/qtwidgets/src/rangesliderqt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ void RangeSliderQt::moveMiddle(int delta) {

bool RangeSliderQt::eventFilter(QObject* obj, QEvent* event) {
if (event->type() == QEvent::ToolTip) {
const QHelpEvent* helpEvent = static_cast<QHelpEvent*>(event);
const auto* helpEvent = dynamic_cast<QHelpEvent*>(event);
if (obj == handle(1)) {
QToolTip::showText(helpEvent->globalPos(),
QString::fromStdString(formatTooltip_(0, value_.x)));
Expand All @@ -310,7 +310,7 @@ bool RangeSliderQt::eventFilter(QObject* obj, QEvent* event) {

void RangeSliderQt::handleGrooveEvent(Groove groove, QEvent* event) {
if (event->type() == QEvent::MouseButtonRelease) {
if (const auto* me = static_cast<QMouseEvent*>(event); me->button() == Qt::LeftButton) {
if (const auto* me = dynamic_cast<QMouseEvent*>(event); me->button() == Qt::LeftButton) {

auto newSizes = [&]() -> QList<int> {
const auto sizes = QSplitter::sizes();
Expand Down

0 comments on commit 7c92f15

Please sign in to comment.