added some missing connections

Sun, 01 Apr 2018 15:32:30 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Sun, 01 Apr 2018 15:32:30 +0300
changeset 1368
36105978da93
parent 1367
0aab8d972cf6
child 1369
1e2391b78d17

added some missing connections

src/canvas.cpp file | annotate | diff | comparison | revisions
src/widgets/headeredit.cpp file | annotate | diff | comparison | revisions
--- 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())
--- 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());

mercurial