Fix macOS build
This commit is contained in:
@@ -151,11 +151,11 @@ void TrackSliderSlider::keyPressEvent(QKeyEvent* event) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef Q_OS_MACOS
|
|
||||||
void TrackSliderSlider::UpdateDeltaTime() {
|
void TrackSliderSlider::UpdateDeltaTime() {
|
||||||
|
#ifndef Q_OS_MACOS
|
||||||
if (popup_->isVisible()) {
|
if (popup_->isVisible()) {
|
||||||
int delta_seconds = mouse_hover_seconds_ - (value() / kMsecPerSec);
|
int delta_seconds = mouse_hover_seconds_ - (value() / kMsecPerSec);
|
||||||
popup_->SetSmallText(Utilities::PrettyTimeDelta(delta_seconds));
|
popup_->SetSmallText(Utilities::PrettyTimeDelta(delta_seconds));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|||||||
@@ -60,9 +60,7 @@ class TrackSliderSlider : public QSlider {
|
|||||||
void keyPressEvent(QKeyEvent* event);
|
void keyPressEvent(QKeyEvent* event);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
#ifndef Q_OS_MACOS
|
|
||||||
void UpdateDeltaTime();
|
void UpdateDeltaTime();
|
||||||
#endif
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
#ifndef Q_OS_MACOS
|
#ifndef Q_OS_MACOS
|
||||||
|
|||||||
Reference in New Issue
Block a user