MCPcopy Create free account
hub / github.com/Linloir/GraphBuilder / viewLog

Method viewLog

graph_view.cpp:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <QDebug>
3
4viewLog::viewLog(QString log, QWidget *parent) :
5 QLabel(parent)
6{
7 logText = log;
8 this->setFont(logFont);
9 this->setText(log);
10 this->setFixedHeight(QFontMetrics(logFont).lineSpacing());
11}
12
13void viewLog::resizeEvent(QResizeEvent *event){
14 QString elideText = QFontMetrics(logFont).elidedText(logText, Qt::ElideRight, this->width() - 5);

Callers

nothing calls this directly

Calls 1

setTextMethod · 0.45

Tested by

no test coverage detected