All pastes #101343 Raw Edit

Stuff

public text v1 · immutable
#101343 ·published 2006-07-26 20:14 UTC
rendered paste body
KAppGroupMenu::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 );

}