// This file is part of Desktop App Toolkit, // a set of libraries for developing nice desktop applications. // // For license and copyright information please follow this link: // https://github.com/desktop-app/legal/blob/master/LEGAL // #pragma once #include "ui/platform/ui_platform_window.h" namespace Ui { namespace Platform { class TitleWidget; class WindowHelper final : public BasicWindowHelper { public: explicit WindowHelper(not_null window); ~WindowHelper(); not_null body() override; void setTitle(const QString &title) override; void setSizeMin(QSize size) override; private: class Private; friend class Private; void init(); void toggleCustomTitle(bool visible); const not_null _window; const std::unique_ptr _private; const not_null _title; const not_null _body; }; } // namespace Platform } // namespace Ui