소스 검색

UI: Fix whitespace issues with "ignore wheel" widgets

jp9000 6 년 전
부모
커밋
140f927f4f
7개의 변경된 파일5개의 추가작업 그리고 19개의 파일을 삭제
  1. 1 1
      UI/comboBox-ignorewheel.cpp
  2. 0 4
      UI/comboBox-ignorewheel.hpp
  3. 1 1
      UI/slider-ignorewheel.cpp
  4. 0 6
      UI/slider-ignorewheel.hpp
  5. 1 1
      UI/spinBox-ignorewheel.cpp
  6. 0 4
      UI/spinBox-ignorewheel.hpp
  7. 2 2
      UI/volume-control.cpp

+ 1 - 1
UI/comboBox-ignorewheel.cpp

@@ -5,7 +5,7 @@ ComboBoxIgnoreScroll::ComboBoxIgnoreScroll(QWidget *parent) : QComboBox(parent)
 	setFocusPolicy(Qt::StrongFocus);
 }
 
-void ComboBoxIgnoreScroll::wheelEvent(QWheelEvent * event)
+void ComboBoxIgnoreScroll::wheelEvent(QWheelEvent *event)
 {
 	if (!hasFocus())
 		event->ignore();

+ 0 - 4
UI/comboBox-ignorewheel.hpp

@@ -4,7 +4,6 @@
 #include <QInputEvent>
 #include <QtCore/QObject>
 
-
 class ComboBoxIgnoreScroll : public QComboBox {
 	Q_OBJECT
 
@@ -12,8 +11,5 @@ public:
 	ComboBoxIgnoreScroll(QWidget *parent = nullptr);
 
 protected:
-
 	virtual void wheelEvent(QWheelEvent *event) override;
 };
-
-

+ 1 - 1
UI/slider-ignorewheel.cpp

@@ -13,7 +13,7 @@ SliderIgnoreScroll::SliderIgnoreScroll(Qt::Orientation orientation,
 	setOrientation(orientation);
 }
 
-void SliderIgnoreScroll::wheelEvent(QWheelEvent * event)
+void SliderIgnoreScroll::wheelEvent(QWheelEvent *event)
 {
 	if (!hasFocus())
 		event->ignore();

+ 0 - 6
UI/slider-ignorewheel.hpp

@@ -4,9 +4,6 @@
 #include <QInputEvent>
 #include <QtCore/QObject>
 
-
-
-
 class SliderIgnoreScroll : public QSlider {
 	Q_OBJECT
 
@@ -15,8 +12,5 @@ public:
 	SliderIgnoreScroll(Qt::Orientation orientation, QWidget *parent = nullptr);
 
 protected:
-
 	virtual void wheelEvent(QWheelEvent *event) override;
 };
-
-

+ 1 - 1
UI/spinBox-ignorewheel.cpp

@@ -5,7 +5,7 @@ SpinBoxIgnoreScroll::SpinBoxIgnoreScroll(QWidget *parent) : QSpinBox(parent)
 	setFocusPolicy(Qt::StrongFocus);
 }
 
-void SpinBoxIgnoreScroll::wheelEvent(QWheelEvent * event)
+void SpinBoxIgnoreScroll::wheelEvent(QWheelEvent *event)
 {
 	if (!hasFocus())
 		event->ignore();

+ 0 - 4
UI/spinBox-ignorewheel.hpp

@@ -4,7 +4,6 @@
 #include <QInputEvent>
 #include <QtCore/QObject>
 
-
 class SpinBoxIgnoreScroll : public QSpinBox {
 	Q_OBJECT
 
@@ -12,8 +11,5 @@ public:
 	SpinBoxIgnoreScroll(QWidget *parent = nullptr);
 
 protected:
-
 	virtual void wheelEvent(QWheelEvent *event) override;
 };
-
-

+ 2 - 2
UI/volume-control.cpp

@@ -504,12 +504,12 @@ void VolumeMeter::setPeakMeterType(enum obs_peak_meter_type peakMeterType)
 	}
 }
 
-void VolumeMeter::mousePressEvent(QMouseEvent * event)
+void VolumeMeter::mousePressEvent(QMouseEvent *event)
 {
 	setFocus(Qt::MouseFocusReason);
 }
 
-void VolumeMeter::wheelEvent(QWheelEvent * event)
+void VolumeMeter::wheelEvent(QWheelEvent *event)
 {
 	QApplication::sendEvent(focusProxy(), event);
 }