summaryrefslogtreecommitdiff
path: root/client/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets')
-rw-r--r--client/widgets/frame.cc9
-rw-r--r--client/widgets/frame.h3
-rw-r--r--client/widgets/groupbox.cc10
-rw-r--r--client/widgets/groupbox.h3
4 files changed, 25 insertions, 0 deletions
diff --git a/client/widgets/frame.cc b/client/widgets/frame.cc
index 872c3fc..79e060b 100644
--- a/client/widgets/frame.cc
+++ b/client/widgets/frame.cc
@@ -39,3 +39,12 @@ Frame::Frame(QDomNode &node, MacroWindow *macrowindow)
layout()->setContentsMargins(0,0,0,0);
}
+void Frame::enable()
+{
+ setEnabled(true);
+}
+
+void Frame::disable()
+{
+ setEnabled(false);
+}
diff --git a/client/widgets/frame.h b/client/widgets/frame.h
index 33ccc29..4fabd40 100644
--- a/client/widgets/frame.h
+++ b/client/widgets/frame.h
@@ -35,6 +35,9 @@ class Frame : public QFrame, public Widget
{
public:
Frame(QDomNode &node, MacroWindow *macrowindow);
+
+ void enable();
+ void disable();
};
#endif/*__PRACRO_FRAME_H__*/
diff --git a/client/widgets/groupbox.cc b/client/widgets/groupbox.cc
index 2bf696f..c3947a7 100644
--- a/client/widgets/groupbox.cc
+++ b/client/widgets/groupbox.cc
@@ -44,3 +44,13 @@ GroupBox::GroupBox(QDomNode &node, MacroWindow *macrowindow)
setTitle(elem.attribute("caption"));
}
}
+
+void GroupBox::enable()
+{
+ setEnabled(true);
+}
+
+void GroupBox::disable()
+{
+ setEnabled(false);
+}
diff --git a/client/widgets/groupbox.h b/client/widgets/groupbox.h
index aa3e61f..99e05ce 100644
--- a/client/widgets/groupbox.h
+++ b/client/widgets/groupbox.h
@@ -35,6 +35,9 @@ class GroupBox : public QGroupBox, public Widget
{
public:
GroupBox(QDomNode &node, MacroWindow *macrowindow);
+
+ void enable();
+ void disable();
};
#endif/*__PRACRO_GROUPBOX_H__*/