void PreviewContentWidget::setTextVisible(const bool isVisible)
    {
        IsTextVisible_ = isVisible;

        TextSize_ = QSize();

        if (IsTextVisible_)
        {
            if (TextControl_)
            {
                return;
            }

            createTextControl();
        }
        else
        {
            if(!TextControl_)
            {
                return;
            }

            TextControl_->hide();
            delete TextControl_;
            TextControl_ = nullptr;
        }

        emit forcedLayoutUpdatedSignal();

        updateGeometry();

        update();
    }
 void FileSharingWidget::setBlockSizePolicy()
 {
     setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
     setFixedHeight(Utils::scale_value(64));
     emit forcedLayoutUpdatedSignal();
     updateGeometry();
     update();
 }