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

void Kconfigure::init (  )  [private]

Init main window

Definition at line 54 of file kconfigure.cpp.

References q, s1, slotFinishAction(), slotOutputMessages(), slotOutputMessagesError(), view_errors, and view_main.

Referenced by Kconfigure().

{
      QWidget *mainView = new QWidget(this);

      QVBoxLayout *mainLayout = new QVBoxLayout( mainView );
      mainLayout->setSpacing( 6 );
      mainLayout->setMargin( 6 );

      s1 = new QSplitter( QSplitter::Vertical, mainView, "top" );
      mainLayout->addWidget( s1 );
      
      view_main = new QMultiLineEdit( s1, "TextView2" );
                  view_main->setText("");
      
      QGroupBox *GroupBox1 = new QGroupBox( s1, "GroupBox1" );
      GroupBox1->setTitle( i18n( "Warnings &  Errors"  ) );
      GroupBox1->setColumnLayout(0, Qt::Vertical );
      GroupBox1->layout()->setSpacing( 0 );
      GroupBox1->layout()->setMargin( 0 );
      QVBoxLayout *GroupBox1Layout = new QVBoxLayout( GroupBox1->layout() );
      GroupBox1Layout->setAlignment( Qt::AlignTop );
      GroupBox1Layout->setSpacing( 6 );
      GroupBox1Layout->setMargin( 6 );
      
      view_errors = new QMultiLineEdit(GroupBox1, "view_errors" );
      GroupBox1Layout->addWidget( view_errors );

      QApplication::connect( &q, SIGNAL(receivedStdout(KProcess *, char *, int)),this,SLOT(slotOutputMessages(KProcess *, char *, int)));
      QApplication::connect( &q, SIGNAL(receivedStderr(KProcess *, char *, int)),this,SLOT(slotOutputMessagesError(KProcess *, char *, int)));
      QApplication::connect( &q, SIGNAL(processExited(KProcess *)),this, SLOT(slotFinishAction()) );

      mainView->show();
      this->setCentralWidget( mainView );
}


Generated by  Doxygen 1.6.0   Back to index