From 8dadd3a9f18b6d4e8884862658fe8a1d042f631c Mon Sep 17 00:00:00 2001 From: senator Date: Tue, 2 Oct 2007 10:09:37 +0000 Subject: misc minor changes for testing --- client/widgets/pushbutton.cc | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'client/widgets/pushbutton.cc') diff --git a/client/widgets/pushbutton.cc b/client/widgets/pushbutton.cc index 5b424a5..0a01947 100644 --- a/client/widgets/pushbutton.cc +++ b/client/widgets/pushbutton.cc @@ -32,6 +32,14 @@ PushButton::PushButton(QDomNode node) { QDomElement elem = node.toElement(); + if(elem.hasAttribute("width")) { + resize(elem.attribute("width").toInt(), height()); + } + + if(elem.hasAttribute("height")) { + resize(width(), elem.attribute("height").toInt()); + } + if(elem.hasAttribute("caption")) { setText(elem.attribute("caption")); } else { @@ -58,15 +66,18 @@ QString PushButton::getValue() void PushButton::commit() { - printf("committing...\n"); + emit act_commit(); + printf("Emit: commit\n"); } void PushButton::reset() { - printf("resetting...\n"); + emit act_reset(); + printf("Emit: reset\n"); } void PushButton::cancel() { - printf("cancelling...\n"); + emit act_cancel(); + printf("Emit: cancel\n"); } -- cgit v1.2.3