summaryrefslogtreecommitdiff
path: root/client/widgets/pushbutton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/pushbutton.cc')
-rw-r--r--client/widgets/pushbutton.cc17
1 files changed, 14 insertions, 3 deletions
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");
}