43 lines
970 B
C++
Executable File
43 lines
970 B
C++
Executable File
#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 <Viewer/LtsDataView/lts_data_view.h>
|
|
#include <LtsPrinting/printing.h>
|
|
|
|
#include <QHeaderView>
|
|
#include <QTreeView>
|
|
#include <QPalette>
|
|
#include <QSpacerItem>
|
|
|
|
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
|