Fix macOS build

This commit is contained in:
Jonas Kvinge 2019-07-31 20:03:24 +02:00
parent a65415bc10
commit 4a1118ceb3
2 changed files with 2 additions and 4 deletions

View File

@ -151,11 +151,11 @@ void TrackSliderSlider::keyPressEvent(QKeyEvent* event) {
}
}
#ifndef Q_OS_MACOS
void TrackSliderSlider::UpdateDeltaTime() {
#ifndef Q_OS_MACOS
if (popup_->isVisible()) {
int delta_seconds = mouse_hover_seconds_ - (value() / kMsecPerSec);
popup_->SetSmallText(Utilities::PrettyTimeDelta(delta_seconds));
}
}
#endif
}

View File

@ -60,9 +60,7 @@ class TrackSliderSlider : public QSlider {
void keyPressEvent(QKeyEvent* event);
private slots:
#ifndef Q_OS_MACOS
void UpdateDeltaTime();
#endif
private:
#ifndef Q_OS_MACOS