# HG changeset patch # User Teemu Piippo # Date 1522585950 -10800 # Node ID 36105978da93342204ddda8d09201291748d5bd4 # Parent 0aab8d972cf64a4dd197b49597d1805f3332d03d added some missing connections diff -r 0aab8d972cf6 -r 36105978da93 src/canvas.cpp --- a/src/canvas.cpp Sun Apr 01 11:39:07 2018 +0300 +++ b/src/canvas.cpp Sun Apr 01 15:32:30 2018 +0300 @@ -86,7 +86,7 @@ Vertex topLeft = currentCamera().idealize(currentCamera().convert2dTo3d({0, 0})); Vertex bottomRight = currentCamera().idealize(currentCamera().convert2dTo3d({width(), height()})); qreal gridSize = grid()->coordinateSnap(); - glEnable(GL_LINE_STIPPLE); + // glEnable(GL_LINE_STIPPLE); glBegin(GL_LINES); switch (grid()->type()) diff -r 0aab8d972cf6 -r 36105978da93 src/widgets/headeredit.cpp --- a/src/widgets/headeredit.cpp Sun Apr 01 11:39:07 2018 +0300 +++ b/src/widgets/headeredit.cpp Sun Apr 01 15:32:30 2018 +0300 @@ -162,6 +162,33 @@ this->headerHistoryModel->removeRows(index.row(), 1, {}); } ); + connect( + ui.help, + &QPlainTextEdit::textChanged, + [&]() + { + if (this->hasValidHeader()) + this->m_header->help = ui.help->document()->toPlainText(); + } + ); + connect( + ui.keywords, + &QPlainTextEdit::textChanged, + [&]() + { + if (this->hasValidHeader()) + this->m_header->keywords = ui.keywords->document()->toPlainText(); + } + ); + connect( + ui.cmdline, + &QLineEdit::textChanged, + [&]() + { + if (this->hasValidHeader()) + this->m_header->cmdline = ui.cmdline->text(); + } + ); connect(ui.historyMoveUp, &QPushButton::clicked, [&](){ this->moveRows(-1); }); connect(ui.historyMoveDown, &QPushButton::clicked, [&](){ this->moveRows(+2); }); this->setEnabled(this->hasValidHeader());