summaryrefslogtreecommitdiff
path: root/client/widgets/window.cc
diff options
context:
space:
mode:
authordeva <deva>2009-01-15 07:24:30 +0000
committerdeva <deva>2009-01-15 07:24:30 +0000
commit4497bea2b68a883d1bed72797f27275c833843ea (patch)
treebba910d80a4384721ae6b13c64afc54735a16a98 /client/widgets/window.cc
parent6a81913f64590c6e49431ce483e00c8fc60573a4 (diff)
Added isDisabled method to all widget classes and made sure that only enabled widgets send their values on commit.
Diffstat (limited to 'client/widgets/window.cc')
-rw-r--r--client/widgets/window.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/client/widgets/window.cc b/client/widgets/window.cc
index e685e79..ea27321 100644
--- a/client/widgets/window.cc
+++ b/client/widgets/window.cc
@@ -63,3 +63,18 @@ void Window::connectTo(const QObject *sender, const char *signal,
{
connect(sender, signal, this, method);
}
+
+void Window::enable()
+{
+ setEnabled(true);
+}
+
+void Window::disable()
+{
+ setEnabled(false);
+}
+
+bool Window::isDisabled()
+{
+ return isEnabled() == false;
+}