summaryrefslogtreecommitdiff
path: root/client/widgets/pushbutton.cc
diff options
context:
space:
mode:
authorsenator <senator>2007-10-02 10:09:37 +0000
committersenator <senator>2007-10-02 10:09:37 +0000
commit8dadd3a9f18b6d4e8884862658fe8a1d042f631c (patch)
treee28c16aafcfdb9c76cdc34aeb5c9b1cbdd5d9bbe /client/widgets/pushbutton.cc
parent9910c8962ab813ab7d9a04609b689e1d9ae038e0 (diff)
misc minor changes for testing
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");
}