| 19 | Ztring().From_UTF8(_DATA.toUtf8()) |
| 20 | |
| 21 | SheetView::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 | |
| 49 | SheetView::~SheetView() |
| 50 | { |
nothing calls this directly
no outgoing calls
no test coverage detected