From f152024f15eeba7da222664b79bd275755b39360 Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Sun, 2 Jul 2017 12:23:01 +0200 Subject: CAN-Example: Add a dedicated send frame group box By moving the send frame logic to a separate panel, the MainWindow gets easier to understand as it only connects signals to slots. The new SendFramesBox also does more sanity check on the parameters (options that exclude each other are checked) and forbids invalid input by using QValidators. The payload input is also prettified with spaces. This was first done by InputMasks but this had strange side effects so now the input validator is used for this task also. Change-Id: Ib95605ce4bc23b52d1cf5d082b1533b2a59f7749 Reviewed-by: Alex Blasche --- examples/serialbus/can/mainwindow.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/serialbus/can/mainwindow.h') diff --git a/examples/serialbus/can/mainwindow.h b/examples/serialbus/can/mainwindow.h index b0c6ef9..4351787 100644 --- a/examples/serialbus/can/mainwindow.h +++ b/examples/serialbus/can/mainwindow.h @@ -68,7 +68,7 @@ public: private slots: void processReceivedFrames(); - void sendFrame() const; + void sendFrame(const QCanBusFrame &frame) const; void processErrors(QCanBusDevice::CanBusError) const; void connectDevice(); void disconnectDevice(); -- cgit v1.2.3