rendered paste bodyKAppGroupMenu::KAppGroupMenu( QWidget *parent, const QString& caption )
: KDialogBase( parent, "urldialog", true, caption, Ok|Cancel, Ok, true )
{
QWidget *page = new QWidget( this );
setMainWidget(page);
QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() );
QLabel *label = new QLabel( "The cap", page, "caption" );
topLayout->addWidget( label );
QListView *listview = new QListView( this, "App groups" );
listview->setMinimumWidth(fontMetrics().maxWidth()*20);
topLayout->addWidget( listview );
kwin_module = new KWinModule(this);
connect(this, SIGNAL(activated(int)), SLOT(slotExec(int)));
// Set up the windows
listview->addColumn( "Window" );
new QListViewItem( listview, "VD 1" );
new QCheckListItem( listview, "AG 1", QCheckListItem::CheckBox );
}