Logo Search packages:      
Sourcecode: kconfigure version File versions  Download package

void ConfigureWizard::initGUI (  )  [private]

No descriptions

Definition at line 45 of file configurewizard.cpp.

References mainOptions, and slotItemModify().

{
            QWidget *page = new QWidget(this);

    QVBoxLayout *Form1Layout = new QVBoxLayout( page );
    Form1Layout->setSpacing( 0 );
    Form1Layout->setMargin( 0 );

    QHBoxLayout *Layout2 = new QHBoxLayout;
    Layout2->setSpacing( 0 );
    Layout2->setMargin( 0 );

    QLabel *TextLabel1 = new QLabel( page, "TextLabel1" );
    TextLabel1->setPixmap( QPixmap( locate("icon","hicolor/48x48/mimetypes/kconfigure.png") ) );
    Layout2->addWidget( TextLabel1 );

    QLabel *TextLabel2 = new QLabel( page, "TextLabel2" );
    TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, TextLabel2->sizePolicy().hasHeightForWidth() ) );
    TextLabel2->setText( i18n( "<p><b>Modify configure arguments.</b></p><p>Click in the options list to change it's value. After this, push the Ok button to make effective the changes and continue the process of configure.</p>" ) );
    Layout2->addWidget( TextLabel2 );
    Form1Layout->addLayout( Layout2 );

    mainOptions = new KListView( page, "mainOptions" );
    mainOptions->addColumn( i18n( "Option" ) );
    mainOptions->addColumn( i18n( "Value" ) );
    mainOptions->addColumn( i18n( "Description" ) );
            mainOptions->setColumnWidthMode( 0, QListView::Manual );
            mainOptions->setColumnWidthMode( 1, QListView::Manual );
            mainOptions->setColumnWidthMode( 2, QListView::Manual );
            mainOptions->setAllColumnsShowFocus ( true );
            connect( mainOptions, SIGNAL( executed(QListViewItem *) ), this, SLOT( slotItemModify(QListViewItem *) ) );
    Form1Layout->addWidget( mainOptions );

            setMainWidget(page);
}


Generated by  Doxygen 1.6.0   Back to index