#include "tln_timeline_progress.h" #include "ui_tln_timeline_progress.h" #include "tln_item_list_model.h" #include "tln_item_info_dialog.h" #include "logger.h" #include #include #include #include #include #include namespace Timeline { TimelineProgress::TimelineProgress( QWidget *parent ) : QWidget(parent) , m_ui(new Ui::TimelineProgress) , m_logger(getLogger("TimelineProgress")) { m_ui->setupUi(this); setAttribute(Qt::WA_StyledBackground); setAttribute(Qt::WA_TransparentForMouseEvents); setAutoFillBackground(true); setStyleSheet(QStringLiteral("background-color: rgba(0,0,0,80)")); m_ui->spacer1->changeSize(0, parent->height() / 2); } TimelineProgress::~TimelineProgress() { delete m_ui; } void TimelineProgress::setHeightOfProgressIndicator(int height) { m_ui->spacer1->changeSize(0, height); } } // namespace Timeline