summaryrefslogtreecommitdiff
path: root/client/widgets/groupbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/groupbox.cc')
-rw-r--r--client/widgets/groupbox.cc44
1 files changed, 12 insertions, 32 deletions
diff --git a/client/widgets/groupbox.cc b/client/widgets/groupbox.cc
index e6f8b97..085a876 100644
--- a/client/widgets/groupbox.cc
+++ b/client/widgets/groupbox.cc
@@ -25,6 +25,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
#include "groupbox.h"
+
+#include <QGroupBox>
#include <QVBoxLayout>
#include <QHBoxLayout>
@@ -33,46 +35,24 @@
#include "common.h"
GroupBox::GroupBox(QDomNode &node, MacroWindow *macrowindow)
- : QGroupBox(), Widget(node, macrowindow)
+ : Widget(node, macrowindow)
{
- setCommonAttributes(this, node);
- setCommonLayout(this, node);
+ groupbox = new QGroupBox();
+ widget = groupbox;
+
+ setCommonAttributes(groupbox, node);
+ setCommonLayout(groupbox, node);
QDomElement elem = node.toElement();
if(elem.hasAttribute("caption")) {
- setTitle(elem.attribute("caption"));
+ groupbox->setTitle(elem.attribute("caption"));
}
-}
-
-void GroupBox::enable()
-{
- setEnabled(true);
-}
-
-void GroupBox::disable()
-{
- setEnabled(false);
-}
-
-bool GroupBox::isDisabled()
-{
- return isEnabled() == false;
-}
-void GroupBox::connectFrom(const char *signal,
- const QObject *receiver, const char *method)
-{
- connect(this, signal, receiver, method);
-}
-
-void GroupBox::connectTo(const QObject *sender, const char *signal,
- const char *method)
-{
- connect(sender, signal, this, method);
+ addChildren(node);
}
-void GroupBox::setVisibility(bool visible)
+GroupBox::~GroupBox()
{
- setVisible(visible);
+ // delete groupbox;
}