ConfigurationPage Class Reference

#include <pages.h>

Inheritance diagram for ConfigurationPage:

Inheritance graph
[legend]
Collaboration diagram for ConfigurationPage:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 29 of file pages.h.

Public Member Functions

 ConfigurationPage (QWidget *parent=0)


Constructor & Destructor Documentation

ConfigurationPage::ConfigurationPage ( QWidget parent = 0  ) 

Definition at line 28 of file pages.cpp.

References QComboBox::addItem(), QBoxLayout::addLayout(), QBoxLayout::addStretch(), QBoxLayout::addWidget(), and QWidget::setLayout().

00029     : QWidget(parent)
00030 {
00031     QGroupBox *configGroup = new QGroupBox(tr("Server configuration"));
00032 
00033     QLabel *serverLabel = new QLabel(tr("Server:"));
00034     QComboBox *serverCombo = new QComboBox;
00035     serverCombo->addItem(tr("Trolltech (Australia)"));
00036     serverCombo->addItem(tr("Trolltech (Germany)"));
00037     serverCombo->addItem(tr("Trolltech (Norway)"));
00038     serverCombo->addItem(tr("Trolltech (People's Republic of China)"));
00039     serverCombo->addItem(tr("Trolltech (USA)"));
00040 
00041     QHBoxLayout *serverLayout = new QHBoxLayout;
00042     serverLayout->addWidget(serverLabel);
00043     serverLayout->addWidget(serverCombo);
00044 
00045     QVBoxLayout *configLayout = new QVBoxLayout;
00046     configLayout->addLayout(serverLayout);
00047     configGroup->setLayout(configLayout);
00048 
00049     QVBoxLayout *mainLayout = new QVBoxLayout;
00050     mainLayout->addWidget(configGroup);
00051     mainLayout->addStretch(1);
00052     setLayout(mainLayout);
00053 }

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 14:49:57 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1