00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include "kalarm.h"
00021
00022 #include <tqlayout.h>
00023 #include <tqbutton.h>
00024 #include <kdialog.h>
00025
00026 #include "buttongroup.moc"
00027
00028
00029 ButtonGroup::ButtonGroup(TQWidget* parent, const char* name)
00030 : TQButtonGroup(parent, name)
00031 {
00032 connect(this, TQT_SIGNAL(clicked(int)), TQT_SIGNAL(buttonSet(int)));
00033 }
00034
00035 ButtonGroup::ButtonGroup(const TQString& title, TQWidget* parent, const char* name)
00036 : TQButtonGroup(title, parent, name)
00037 {
00038 connect(this, TQT_SIGNAL(clicked(int)), TQT_SIGNAL(buttonSet(int)));
00039 }
00040
00041 ButtonGroup::ButtonGroup(int strips, Qt::Orientation orient, TQWidget* parent, const char* name)
00042 : TQButtonGroup(strips, orient, parent, name)
00043 {
00044 connect(this, TQT_SIGNAL(clicked(int)), TQT_SIGNAL(buttonSet(int)));
00045 }
00046
00047 ButtonGroup::ButtonGroup(int strips, Qt::Orientation orient, const TQString& title, TQWidget* parent, const char* name)
00048 : TQButtonGroup(strips, orient, title, parent, name)
00049 {
00050 connect(this, TQT_SIGNAL(clicked(int)), TQT_SIGNAL(buttonSet(int)));
00051 }
00052
00053
00054
00055
00056
00057 int ButtonGroup::insert(TQButton* button, int id)
00058 {
00059 id = TQButtonGroup::insert(button, id);
00060 connect(button, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotButtonToggled(bool)));
00061 return id;
00062 }
00063
00064
00065
00066
00067 void ButtonGroup::slotButtonToggled(bool)
00068 {
00069 emit buttonSet(selectedId());
00070 }