00001 #include "mobilemsg.h" 00002 00003 00004 00005 00006 /* 00007 * Constructs a MobileMsg which is a child of 'parent', with the 00008 * name 'name' and widget flags set to 'f' 00009 */ 00010 MobileMsg::MobileMsg( QWidget* parent, const char* name, WFlags fl ) 00011 : MobileMsgBase( parent, name, fl ) 00012 { 00013 //connect(add, SIGNAL(clicked()), this, SLOT(goodBye())); 00014 //connect(remove, SIGNAL(clicked()), this, SLOT(goodBye())); 00015 //connect(props, SIGNAL(clicked()), this, SLOT(goodBye())); 00016 //connect(settings, SIGNAL(selectionChanged()), this, SLOT(goodBye()) ); 00017 } 00018 00019 /* 00020 * Destroys the object and frees any allocated resources 00021 */ 00022 MobileMsg::~MobileMsg() 00023 { 00024 // no need to delete child widgets, Qt does it all for us 00025 } 00026 00027 /* 00028 * A simple slot... not very interesting. 00029 */ 00030 void MobileMsg::goodBye() 00031 { 00032 close(); 00033 }
1.4.2