mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 17:10:44 +08:00
Moved printpoint type into create dialog.
This commit is contained in:
@@ -231,15 +231,18 @@ void SeerPrintpointsBrowserWidget::handleAddToolButton () {
|
||||
}
|
||||
|
||||
// Build a printpoint specification.
|
||||
QString printpointParameters = dlg.printpointText();
|
||||
QString type = dlg.dprintfType();
|
||||
QString function = dlg.dprintfFunction();
|
||||
QString channel = dlg.dprintfChannel();
|
||||
QString parameters = dlg.printpointParameters();
|
||||
|
||||
// If nothing, just return.
|
||||
if (printpointParameters == "") {
|
||||
if (parameters == "" || type == "") {
|
||||
return;
|
||||
}
|
||||
|
||||
// Otherwise send the command to create the printpoint.
|
||||
emit insertPrintpoint(printpointParameters);
|
||||
emit insertPrintpoint(type, function, channel, parameters);
|
||||
}
|
||||
|
||||
void SeerPrintpointsBrowserWidget::handleDeleteToolButton () {
|
||||
|
||||
Reference in New Issue
Block a user