#include<MyWidget.h>

MyWidget::MyWidget(QWidget *parent) : QWidget(parent){

    this->showMaximized();

    editor = new QTextEdit;
    highlight = new SyntaxHighlight(editor->document());

    editor->setFontPointSize(11);
    editor->setFontWeight(50);

    font_size = new QSpinBox;
    font_size->setFixedSize(50,30);
    font_size->setValue(11);

    hbox1  = new QHBoxLayout;
    hbox1->addWidget(font_size, 0, Qt::AlignRight);

    vbox   = new QVBoxLayout;
    vbox->addLayout(hbox1);
    vbox->addWidget(editor);

    setLayout(vbox);

   // connect(font_size, SIGNAL(valueChanged(int)),
   //         this, SLOT(set_font_size(int)));
}


