MCPcopy Create free account
hub / github.com/cc20110101/RedisView / initView

Method initView

src/RedisView/AppView/MainWidget.cpp:365–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365void MainWidget::initView()
366{
367 ui->setupUi(this);
368
369 ui->_horizontalLayout->setStretch(0,1);
370 ui->_horizontalLayout->setStretch(1,2);
371 ui->_horizontalLayout->setStretch(2,2); // space
372 ui->_horizontalLayout->setStretch(3,2);
373 ui->_horizontalLayout->setStretch(4,1);
374 ui->_horizontalLayout->setStretch(5,2);
375 ui->_horizontalLayout->setStretch(6,1);
376 ui->_horizontalLayout->setStretch(7,2);
377 ui->_horizontalLayout->setStretch(8,1);
378 ui->_horizontalLayout->setStretch(9,2);
379 ui->_horizontalLayout->setStretch(10,2); // space
380 ui->_horizontalLayout->setStretch(11,6);
381 ui->_horizontalLayout->setStretch(12,1);
382 ui->_horizontalLayout->setStretch(13,2);
383 ui->_horizontalLayout->setStretch(14,1);
384 ui->_horizontalLayout->setStretch(15,2);
385
386 ui->_verticalLayout->setStretchFactor(ui->_plainTextEdit,10);
387 ui->_verticalLayout->setStretchFactor(ui->_horizontalLayout,1);
388
389 ui->_commandSplitter->setStretchFactor(0,11);
390 ui->_commandSplitter->setStretchFactor(1,30);
391
392 ui->_mainSplitter->setStretchFactor(0,1);
393 ui->_mainSplitter->setStretchFactor(1,1);
394
395 ui->_msgSplitter->setStretchFactor(0,12);
396 ui->_msgSplitter->setStretchFactor(1,5);
397 ui->_subHorizontalLayout->setStretch(0,1);
398 ui->_subHorizontalLayout->setStretch(1,3);
399 ui->_subHorizontalLayout->setStretch(2,1);
400 ui->_subHorizontalLayout->setStretch(3,2);
401 ui->_subHorizontalLayout->setStretch(4,1);
402 ui->_subHorizontalLayout->setStretch(5,3);
403 ui->_subHorizontalLayout->setStretch(6,1);
404 ui->_subHorizontalLayout->setStretch(7,2);
405 ui->_subHorizontalLayout->setStretch(8,1);
406 ui->_subHorizontalLayout->setStretch(9,1);
407 ui->_subHorizontalLayout->setStretch(10,1);
408 ui->_subHorizontalLayout->setStretch(11,1);
409 ui->_channelHorizontalLayout->setStretch(0,1);
410 ui->_channelHorizontalLayout->setStretch(1,3);
411 ui->_channelHorizontalLayout->setStretch(2,1);
412 ui->_channelHorizontalLayout->setStretch(3,2);
413 ui->_channelHorizontalLayout->setStretch(4,10);
414
415 QFont font;
416 //font.setFamily(QString::fromLocal8Bit("微软雅黑"));
417 font.setPointSize(11);
418 font.setBold(false);
419 font.setItalic(false);
420 font.setUnderline(false);
421 ui->_textBrowser->setFont(font);
422 ui->_subTextBrowser->setFont(font);

Callers

nothing calls this directly

Calls 3

moveMethod · 0.80
setTextMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected