00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "searchresults.h"
00012
00013
00014 #include <qlistbox.h>
00015 #include <qlayout.h>
00016
00017 Search_Results::Search_Results( QWidget* parent, const char* name, bool modal, WFlags fl )
00018 : QDialog( parent, name, modal, fl ) {
00019 if ( !name )
00020 setName( drinkName);
00021
00022 drinkName = name;
00023 setCaption( drinkName );
00024
00025 Layout5 = new QGridLayout( this );
00026 Layout5->setSpacing( 6 );
00027 Layout5->setMargin( 4 );
00028
00029 ListBox1 = new QListBox( this, "ListBox1" );
00030
00031 Layout5->addMultiCellWidget( ListBox1, 0, 1, 0, 3 );
00032 connect( ListBox1, SIGNAL( clicked(QListBoxItem*)), SLOT( listSelected(QListBoxItem*)) );
00033 }
00034
00035 Search_Results::~Search_Results() {
00036 }
00037
00038
00039 void Search_Results::listSelected(QListBoxItem *) {
00040
00041 QDialog::accept();
00042 }
00043