Skip to content
Snippets Groups Projects
Commit 796b8842 authored by d.kilic's avatar d.kilic
Browse files

Merge branch '302-disable-scrolling-in-spinboxes-when-not-desired' into 'master'

Replace all Q(Double)SpinBoxes with P(Double)SpinBoxes

Closes #302

See merge request !210
parents 87eec22e 7de5a4dc
No related branches found
No related tags found
1 merge request!210Replace all Q(Double)SpinBoxes with P(Double)SpinBoxes
Pipeline #74225 canceled
...@@ -381,6 +381,8 @@ target_sources(petrack_core PRIVATE ...@@ -381,6 +381,8 @@ target_sources(petrack_core PRIVATE
include/autosave.h include/autosave.h
include/manualTrackpointMover.h include/manualTrackpointMover.h
include/frameRange.h include/frameRange.h
include/pdoublespinbox.h
include/pspinbox.h
) )
target_sources(petrack_core PRIVATE target_sources(petrack_core PRIVATE
...@@ -442,6 +444,8 @@ target_sources(petrack_core PRIVATE ...@@ -442,6 +444,8 @@ target_sources(petrack_core PRIVATE
src/personStorage.cpp src/personStorage.cpp
src/autosave.cpp src/autosave.cpp
src/manualTrackpointMover.cpp src/manualTrackpointMover.cpp
src/pdoublespinbox.cpp
src/pspinbox.cpp
ui/about.ui ui/about.ui
ui/codeMarker.ui ui/codeMarker.ui
ui/colorMarker.ui ui/colorMarker.ui
......
/*
* PeTrack - Software for tracking pedestrians movement in videos
* Copyright (C) 2010-2022 Forschungszentrum Jülich GmbH,
* Maik Boltes, Juliane Adrian, Ricardo Martin Brualla, Arne Graf, Paul Häger, Daniel Hillebrand,
* Deniz Kilic, Paul Lieberenz, Daniel Salden, Tobias Schrödter, Ann Katrin Seemann
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef PDOUBLESPINBOX_H
#define PDOUBLESPINBOX_H
#include <QDoubleSpinBox>
class PDoubleSpinBox : public QDoubleSpinBox
{
Q_OBJECT
public:
PDoubleSpinBox(QWidget *parent) : QDoubleSpinBox(parent) {}
protected:
void wheelEvent(QWheelEvent *event) override;
};
#endif // PDOUBLESPINBOX_H
/*
* PeTrack - Software for tracking pedestrians movement in videos
* Copyright (C) 2010-2022 Forschungszentrum Jülich GmbH,
* Maik Boltes, Juliane Adrian, Ricardo Martin Brualla, Arne Graf, Paul Häger, Daniel Hillebrand,
* Deniz Kilic, Paul Lieberenz, Daniel Salden, Tobias Schrödter, Ann Katrin Seemann
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef PSPINBOX_H
#define PSPINBOX_H
#include <QSpinBox>
class PSpinBox : public QSpinBox
{
Q_OBJECT
public:
PSpinBox(QWidget *parent) : QSpinBox(parent){};
protected:
void wheelEvent(QWheelEvent *event) override;
};
#endif // PSPINBOX_H
/*
* PeTrack - Software for tracking pedestrians movement in videos
* Copyright (C) 2010-2022 Forschungszentrum Jülich GmbH,
* Maik Boltes, Juliane Adrian, Ricardo Martin Brualla, Arne Graf, Paul Häger, Daniel Hillebrand,
* Deniz Kilic, Paul Lieberenz, Daniel Salden, Tobias Schrödter, Ann Katrin Seemann
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "pdoublespinbox.h"
#include <QWheelEvent>
void PDoubleSpinBox::wheelEvent(QWheelEvent *event)
{
event->ignore();
}
/*
* PeTrack - Software for tracking pedestrians movement in videos
* Copyright (C) 2010-2022 Forschungszentrum Jülich GmbH,
* Maik Boltes, Juliane Adrian, Ricardo Martin Brualla, Arne Graf, Paul Häger, Daniel Hillebrand,
* Deniz Kilic, Paul Lieberenz, Daniel Salden, Tobias Schrödter, Ann Katrin Seemann
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "pspinbox.h"
#include <QWheelEvent>
void PSpinBox::wheelEvent(QWheelEvent *event)
{
event->ignore();
}
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment