MCPcopy Create free account
hub / github.com/MediaArea/MediaInfo / SheetView

Method SheetView

Source/GUI/Qt/sheetview.cpp:21–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 Ztring().From_UTF8(_DATA.toUtf8())
20
21SheetView::SheetView(Core *C, QWidget *parent, QFont* monoFont) :
22 QFrame(parent),
23 ui(new Ui::SheetView)
24{
25 this->C=C;
26
27 ui->setupUi(this);
28
29 ui->splitter->setSizes({1, 2});
30
31#if defined(_WIN32) && defined(WINAPI_FAMILY) && (WINAPI_FAMILY==WINAPI_FAMILY_APP) // Workaround render bug
32 QString style = "QComboBox QAbstractItemView { border: 1px solid gray }";
33 ui->comboBox->setStyleSheet(style);
34#endif
35
36 refreshDisplay();
37 ui->tableWidget->selectRow(0);
38
39 QFont font;
40 if (monoFont)
41 font = *monoFont;
42 else {
43 font.setFamily("Mono");
44 font.setStyleHint(QFont::TypeWriter);
45 }
46 ui->label->setFont(font);
47}
48
49SheetView::~SheetView()
50{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected