time_picker_box.h 521 B

12345678910111213141516171819202122
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. namespace Ui {
  9. class GenericBox;
  10. [[nodiscard]] std::vector<TimeId> DefaultTimePickerValues();
  11. [[nodiscard]] Fn<TimeId()> TimePickerBox(
  12. not_null<GenericBox*> box,
  13. std::vector<TimeId> values,
  14. std::vector<QString> phrases,
  15. TimeId startValue);
  16. } // namespace Ui