本文整理汇总了C++中QLabel::setFixedHeight方法的典型用法代码示例。如果您正苦于以下问题:C++ QLabel::setFixedHeight方法的具体用法?C++ QLabel::setFixedHeight怎么用?C++ QLabel::setFixedHeight使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QLabel
的用法示例。
在下文中一共展示了QLabel::setFixedHeight方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: pixmap
SketchMainHelpPrivate::SketchMainHelpPrivate (
const QString &viewString,
const QString &htmlText,
SketchMainHelp *parent)
: QFrame()
{
setObjectName("sketchMainHelp"+viewString);
m_parent = parent;
QFrame *main = new QFrame(this);
QHBoxLayout *mainLayout = new QHBoxLayout(main);
QLabel *imageLabel = new QLabel(this);
QLabel *imageLabelAux = new QLabel(imageLabel);
imageLabelAux->setObjectName(QString("inviewHelpImage%1").arg(viewString));
QPixmap pixmap(QString(":/resources/images/helpImage%1.png").arg(viewString));
imageLabelAux->setPixmap(pixmap);
imageLabel->setFixedWidth(pixmap.width());
imageLabel->setFixedHeight(pixmap.height());
imageLabelAux->setFixedWidth(pixmap.width());
imageLabelAux->setFixedHeight(pixmap.height());
ExpandingLabel *textLabel = new ExpandingLabel(this);
textLabel->setLabelText(htmlText);
textLabel->setFixedWidth(430 - 41 - pixmap.width());
textLabel->allTextVisible();
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
textLabel->setToolTip("");
textLabel->setAlignment(Qt::AlignLeft);
mainLayout->setSpacing(6);
mainLayout->setMargin(2);
mainLayout->addWidget(imageLabel);
mainLayout->addWidget(textLabel);
setFixedWidth(430);
QVBoxLayout *layout = new QVBoxLayout(this);
m_closeButton = new SketchMainHelpCloseButton(viewString,this);
connect(m_closeButton, SIGNAL(clicked()), this, SLOT(doClose()));
QFrame *bottomMargin = new QFrame(this);
bottomMargin->setFixedHeight(m_closeButton->height());
layout->addWidget(m_closeButton);
layout->addWidget(main);
layout->addWidget(bottomMargin);
layout->setSpacing(0);
layout->setMargin(2);
m_shouldGetTransparent = false;
//m_closeButton->doHide();
QFile styleSheet(":/resources/styles/inviewhelp.qss");
if (!styleSheet.open(QIODevice::ReadOnly)) {
qWarning("Unable to open :/resources/styles/inviewhelp.qss");
} else {
setStyleSheet(styleSheet.readAll());
}
}
示例2: labelFont
//
//
// CButDlg Class
//
// Provide a dialog to add/edit a filter button to the MsgDialog
//
CButDlg::CButDlg(QWidget *parent, QString name, MyButton *but)
: QDialog(parent, name, TRUE)
{
QBoxLayout *topLayout = new QVBoxLayout(this);
QBoxLayout *row1Layout = new QHBoxLayout(topLayout);
QBoxLayout *row2Layout = new QHBoxLayout(topLayout);
QFont labelFont(font());
labelFont.setBold(true);
QLabel *nameLabel = new QLabel ("Name", this);
nameLabel->setFont(labelFont);
nameLabel->setFixedHeight(nameLabel->sizeHint().height());
nameLabel->setFixedWidth(80);
nameLabel->setAlignment(QLabel::AlignLeft|QLabel::AlignVCenter);
row1Layout->addWidget(nameLabel);
QLineEdit *nameEdit = new QLineEdit (this, "Name");
nameEdit->setText(but->text());
nameEdit->setFont(labelFont);
nameEdit->setFixedHeight(nameEdit->sizeHint().height());
nameEdit->setFixedWidth(150);
row1Layout->addWidget(nameEdit);
QLabel *filterLabel = new QLabel ("Filter", this);
filterLabel->setFont(labelFont);
filterLabel->setFixedHeight(filterLabel->sizeHint().height());
filterLabel->setFixedWidth(80);
filterLabel->setAlignment(QLabel::AlignLeft|QLabel::AlignVCenter);
row2Layout->addWidget(filterLabel);
QLineEdit *filterEdit = new QLineEdit (this, "Filter");
filterEdit->setText(but->filter());
filterEdit->setFont(labelFont);
filterEdit->setFixedHeight(filterEdit->sizeHint().height());
filterEdit->setFixedWidth(150);
row2Layout->addWidget(filterEdit);
QPushButton *ok = new QPushButton("OK", this);
ok->setFixedWidth(30);
ok->setFixedHeight(30);
topLayout->addWidget(ok, 0, AlignCenter);
// connect sigs
connect(nameEdit, SIGNAL(textChanged(const QString &)),
but, SLOT(setText(const QString &)));
connect(filterEdit, SIGNAL(textChanged(const QString &)),
but, SLOT(setFilter(const QString &)));
connect(ok, SIGNAL(clicked()), SLOT(accept()));
setMaximumSize(QSize(sizeHint()));
}
示例3: QDialog
/**
* Constructor
*/
ClsQPrcMonitor::ClsQPrcMonitor(QWidget *parent, const char * /* name=0 */, WFlags /* f=0 */) :
// QWidget ( parent, name, WStyle_Title |WStyle_NoBorder ) {
QDialog ( parent) {
QPixmap qpixmapPrc_alive = QPixmap (prc_alive);
qpixmapPrc_launched = QPixmap (prc_launched);
qpixmapPrc_ready = QPixmap (prc_ready);
qpixmapPrc_sfp = QPixmap (prc_sfp);
qpixmapPrc_mt = QPixmap (prc_mt);
this->setBackgroundColor(QColor(0,0,0));
qgltPrcs = new QGridLayout( this, 1, 8, 1 );
QLabel *l;
l = new QLabel(" PrcID ", this, "PrcID", 0);
l->setFixedHeight(l->sizeHint().height());
qgltPrcs->addWidget(l,0,0);
l = new QLabel("port ", this, "port", 0);
l->setFixedHeight(l->sizeHint().height());
qgltPrcs->addWidget(l,0,1);
l = new QLabel("A", this, "A", 0); l->setAlignment(AlignCenter);
QToolTip::add( l, "Prc alive" );
qgltPrcs->addWidget(l,0,2);
l = new QLabel("P", this, "P", 0); l->setAlignment(AlignCenter);
QToolTip::add( l, "Prc systemfile parsed" );
qgltPrcs->addWidget(l,0,3);
l = new QLabel("B", this, "B", 0); l->setAlignment(AlignCenter);
QToolTip::add( l, "Prc system buildt" );
qgltPrcs->addWidget(l,0,4);
l = new QLabel("C", this, "C", 0); l->setAlignment(AlignCenter);
QToolTip::add( l, "Prc connected" );
qgltPrcs->addWidget(l,0,5);
l = new QLabel("R", this, "R", 0); l->setAlignment(AlignCenter);
QToolTip::add( l, "Prc ready" );
qgltPrcs->addWidget(l,0,6);
l = new QLabel(" speed ", this, "speed", 0);
l->setFixedHeight(l->sizeHint().height());
qgltPrcs->addWidget(l,0,NR_STATES+2);
};
示例4: QMenu
NBCategoryMenu::NBCategoryMenu( QString catName, QPixmap icon, QString wNode, QModelIndexList nodeList, QWidget *parent ) : QMenu( parent ) {
mCategory = catName;
mWorkNode = wNode;
sNodes << nodeList;
QWidgetAction *title = new QWidgetAction( this );
QWidget *actBase = new QWidget( this );
QLabel *pix = new QLabel();
pix->setFixedSize( 20, 20 );
pix->setPixmap( icon.scaled( 16, 16, Qt::KeepAspectRatio, Qt::SmoothTransformation ) );
pix->setAlignment( Qt::AlignCenter );
QLabel *name = new QLabel( "<b>" + catName + "</b>" );
name->setFixedHeight( 20 );
name->setAlignment( Qt::AlignVCenter );
QHBoxLayout *lyt = new QHBoxLayout();
lyt->setContentsMargins( QMargins( 4, 4, 4, 0 ) );
lyt->addWidget( pix );
lyt->addWidget( name );
actBase->setLayout( lyt );
title->setDefaultWidget( actBase );
addAction( title );
addSeparator();
populateMenu();
};
示例5: QLabel
ServerTab::ServerTab()
{
//
QLabel *legendLabel = new QLabel("Liste des clients connectés au serveur.");
legendLabel->setFixedHeight(40);
// TabWidget
QTableWidget *tableWidget = new QTableWidget();
tableWidget->setColumnCount(6);
// resize to contents
tableWidget->setColumnWidth(0, 300);
tableWidget->setColumnWidth(4, 120);
QStringList listHeaders;
listHeaders << "Nom du client" << "ID de connexion" << "Adresse IP" << "Statut" << "Début de connexion" << "Fin de connexion";
tableWidget->setHorizontalHeaderLabels(listHeaders);
tableWidget->horizontalHeaderItem(0)->setTextAlignment(Qt::AlignLeft);
// Layering
QVBoxLayout *vl = new QVBoxLayout();
setLayout(vl);
vl->addWidget(legendLabel);
vl->addWidget(tableWidget);
}
示例6: __initializeLayoutVertical
QLayout* ColorDlg::__initializeLayoutVertical() {
QGridLayout* pL = new QGridLayout( this, 8, 2, 5, 2 );
pL->addWidget(new QLabel(tr( "Line"), this), 0, 0);
pL->addWidget(pCB_Line, 0, 1);
pL->addWidget(new QLabel(tr( "Back"), this), 1, 0);
pL->addWidget(pCB_BGColor, 1, 1);
pL->addWidget(new QLabel(tr( "BallLine"), this), 2, 0);
pL->addWidget(pCB_BallLine, 2, 1);
QLabel* pTL;
pTL = new QLabel(this);
pTL->setFixedHeight(20);
pL->addMultiCellWidget(pTL, 3, 3, 0, 1);
pL->addMultiCellWidget(pRB_UseColorList, 4, 4, 0, 1);
pL->addMultiCellWidget(pRB_UseSameColor, 5, 5, 0, 1);
pTL = new QLabel(this);
pTL->setFixedWidth(60);
pL->addWidget(pTL, 6, 0);
pL->addWidget(pCB_BallColor, 6, 1);
pL->addMultiCellWidget( pOK, 7, 7, 0, 1 );
return pL;
}
示例7: QLabel
AppHistoryTab::AppHistoryTab()
{
//
QLabel *legendLabel = new QLabel("Historique des applications depuis la connexion au serveur.");
legendLabel->setFixedHeight(40);
// TabWidget
QTableWidget *tableWidget = new QTableWidget();
tableWidget->setColumnCount(6);
// resize to contents
tableWidget->setColumnWidth(0, 300);
QStringList listHeaders;
listHeaders << "Nom" << "PID" << "Statut" << "UID" << "Date de début" << "Date de fin";
tableWidget->setHorizontalHeaderLabels(listHeaders);
tableWidget->horizontalHeaderItem(0)->setTextAlignment(Qt::AlignLeft);
// Layering
QVBoxLayout *vl = new QVBoxLayout();
setLayout(vl);
vl->addWidget(legendLabel);
vl->addWidget(tableWidget);
}
示例8: main
int main(int argc, char** argv) {
QApplication app(argc, argv);
QWidget wgt;
wgt.setWindowTitle("LineEdit");
QLabel* plblDisplay = new QLabel;
plblDisplay->setFrameStyle(QFrame::Box | QFrame::Raised);
plblDisplay->setLineWidth(2);
plblDisplay->setFixedHeight(50);
QLabel* plblText = new QLabel("&Text");
QLineEdit* ptxt = new QLineEdit;
plblText->setBuddy(ptxt);
QObject::connect(ptxt, SIGNAL(textChanged(const QString&)), plblDisplay, SLOT(setText(const QString&)));
QLabel* plblPassword = new QLabel("&Password");
QLineEdit* ptxtPassword = new QLineEdit;
plblPassword->setBuddy(ptxtPassword);
ptxtPassword->setEchoMode(QLineEdit::Password);
QObject::connect(ptxtPassword, SIGNAL(textChanged(const QString&)), plblDisplay, SLOT(setText(const QString&)));
QVBoxLayout* pvbxLayout = new QVBoxLayout;
pvbxLayout->addWidget(plblDisplay);
pvbxLayout->addWidget(plblText);
pvbxLayout->addWidget(ptxt);
pvbxLayout->addWidget(plblPassword);
pvbxLayout->addWidget(ptxtPassword);
wgt.setLayout(pvbxLayout);
wgt.show();
return app.exec();
}
示例9: setupGui
void ProgressDialog::setupGui(const QString& heading)
{
QVBox* vbox = makeVBoxMainWidget();
vbox->setSpacing(10);
QWidget* headingBox = new QWidget(vbox);
QHBoxLayout* hboxLayout = new QHBoxLayout(headingBox);
QLabel* textLabel = new QLabel(heading, headingBox);
textLabel->setMinimumWidth(textLabel->sizeHint().width());
textLabel->setFixedHeight(textLabel->sizeHint().height());
hboxLayout->addWidget(textLabel);
hboxLayout->addStretch();
d->gear = new KAnimWidget(QString("kde"), 32, headingBox);
d->gear->setFixedSize(32, 32);
hboxLayout->addWidget(d->gear);
d->resultbox = new QListBox(vbox);
d->resultbox->setSelectionMode(QListBox::NoSelection);
QFontMetrics fm(d->resultbox->fontMetrics());
d->resultbox->setMinimumSize(fm.width("0")*70, fm.lineSpacing()*8);
resize(sizeHint());
}
示例10: QWidget
HistoryView::HistoryView(QWidget *parent, QWebHistory *webHistory) :
QWidget(parent)
{
history = webHistory;
mainLayaut = new QVBoxLayout;
historyList = new QListWidget(this);
historyList->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
historyList->setAutoScroll(true);
historyList->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
historyList->setSpacing(2);
QLabel *title = new QLabel(QString("Historia odwiedzanych stron"), this);
title->setFocusPolicy(Qt::NoFocus);
title->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
title->setFixedHeight(20);
QFont titleFont;
titleFont.setPointSize(8);
title->setFont(titleFont);
mainLayaut->setSpacing(0);
mainLayaut->setMargin(0);
mainLayaut->addWidget(title);
mainLayaut->addWidget(historyList);
this->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
this->setLayout(mainLayaut);
this->setupActions();
}
示例11: problemSolutionWidget
void ConflictResolutionScreen::problemSolutionWidget( const QString & probDescription, const QStringList & solutions )
{
m_solId = -1;
if ( m_solutionWidget != NULL && m_questionLabel != NULL ) {
m_mainLayout->removeWidget( m_questionLabel );
m_mainLayout->removeWidget( m_solutionWidget );
}
QLabel *questionLabel = new QLabel( probDescription );
questionLabel->setStyleSheet( "background-color: rgb(254, 250, 210); border-bottom : 1px solid rgb(252,233,79); border-left : 1px solid rgb(196,181,147); border-top : 1px solid rgb(196,181,147); border-right : 1px solid rgb(196,181,147);" );
questionLabel->setFixedHeight( 50 );
questionLabel->setWordWrap( true );
QWidget *solutionWidget = new QWidget;
solutionWidget->setObjectName( "solutionWidget" );
solutionWidget->setStyleSheet( "QWidget#solutionWidget{ background-color : white; border-bottom: 1px solid rgb(196, 181, 147); border-left : 1px solid rgb(196,181,147); border-top : 1px solid rgb(196,181,147); border-right : 1px solid rgb(196,181,147); }" );
QVBoxLayout *solutionLayout = new QVBoxLayout( solutionWidget );
solutionLayout->setSpacing( 0 );
int radioId = 0;
for ( QString solution : solutions ) {
QRadioButton *sol = new QRadioButton( solution );
m_buttonGroup.addButton( sol, radioId++ );
sol->setStyleSheet( "padding-left: 40px;" );
solutionLayout->addWidget( sol );
solutionLayout->setSpacing( 10 );
}
m_questionLabel = questionLabel;
m_solutionWidget = solutionWidget;
m_mainLayout->addWidget( questionLabel );
m_mainLayout->setSpacing( 0 );
m_mainLayout->addWidget( solutionWidget );
}
示例12: initializeWidget
void ForgetPwdVerifyPage::initializeWidget()
{
//提示信息页面操作
hintMsgPage = new HintMsgPage(this);
hintMsgPage->hide();
connect(hintMsgPage, SIGNAL(submitClicked(bool)), this, SLOT(on_hintMsgPage(bool)));
//导航栏
QString strTitle = tr("验 证");
QString strLeftBtn = tr("取消");
QPixmap leftArrowsPixmap(ImagePath::NAVIGATION_LEFT_ARROWS);
navigationBar = new NavigationBar(this);
navigationBar->setTitleText(strTitle);
navigationBar->setLeftText(strLeftBtn);
navigationBar->setLeftPixMap(leftArrowsPixmap);
connect(navigationBar, SIGNAL(leftClicked()), this, SLOT(on_btnPrePage_clicked()));
QHBoxLayout* pHLTop = new QHBoxLayout();
pHLTop->addWidget(navigationBar);
pHLTop->setSpacing(0);
pHLTop->setMargin(0);
this->setTopbarLayout(pHLTop);
//验证部分
QLabel* lblMsgHint = new QLabel(this);
lblMsgHint->setText(tr("已发送验证码到您的邮箱"));
lblMsgHint->setFixedHeight(this->screenHeight()*0.05);
lblMsgHint->setAlignment(Qt::AlignLeft);
lblMsgHint->setContentsMargins(this->screenWidth()*0.02, 0, this->screenWidth()*0.02, 0);
lblMsgHint->setStyleSheet("color:rgb(122,123,128); font:16px;");
editValidate = new QLineEdit(this);
editValidate->setFixedHeight(this->screenHeight()*0.08);
editValidate->setPlaceholderText(tr("输入6位验证码"));
editValidate->setStyleSheet(SheetStyle::FORGETPWD_VALIDATION_LINEEDIT);
editValidate->setTextMargins(this->screenWidth()*0.02, 0, this->screenWidth()*0.02, 0);
QVBoxLayout* vbInfoLayout = new QVBoxLayout;
vbInfoLayout->addWidget(lblMsgHint);
vbInfoLayout->addWidget(editValidate);
vbInfoLayout->setAlignment(Qt::AlignCenter);
vbInfoLayout->setSpacing(0);
vbInfoLayout->setMargin(0);
btnNextStep = new QPushButton(tr("下一步"), this);
btnNextStep->setFixedHeight(this->screenHeight()*0.074);
btnNextStep->setStyleSheet(SheetStyle::QPUSHBUTTON);
connect(btnNextStep, SIGNAL(clicked()), this, SLOT(on_btnNextStep_clicked()));
QVBoxLayout* vbLayout = new QVBoxLayout;
vbLayout->addLayout(vbInfoLayout);
vbLayout->addSpacing(this->screenHeight()*0.03);
vbLayout->addWidget(btnNextStep);
vbLayout->setAlignment(Qt::AlignTop);
vbLayout->addStretch(0);
vbLayout->addSpacing(0);
vbLayout->setContentsMargins(this->screenWidth()*0.054,this->screenHeight()*0.026,this->screenWidth()*0.054,0);
this->setBodyPartLayout(vbLayout);
}
示例13: initializeWidget
void MorePage::initializeWidget()
{
//导航栏
QString strTitle = tr("更多...");
navigationBar = new NavigationBar(this);
navigationBar->setTitleText(strTitle);
QHBoxLayout* pHLTop = new QHBoxLayout();
pHLTop->addWidget(navigationBar);
pHLTop->setSpacing(0);
pHLTop->setMargin(0);
this->setTopbarLayout(pHLTop);
//个人信息
QLabel* themeWidget = new QLabel;
QPixmap pixmap = QPixmap(ImagePath::MOREPAGE_THEME);
pixmap.setDevicePixelRatio(2);
themeWidget->setAutoFillBackground(true);
themeWidget->setFixedHeight(this->screenHeight()*0.25);
themeWidget->setFixedWidth(this->screenWidth());
themeWidget->setPixmap(pixmap);
themeWidget->setScaledContents(true);
btnPersonalInfo = new QToolButton;
btnPersonalInfo->setFixedWidth(this->screenWidth());
btnPersonalInfo->setFixedHeight(this->screenHeight()*0.15);
btnPersonalInfo->setIconSize(QSize(btnPersonalInfo->height()*0.7, btnPersonalInfo->height()*0.7));
btnPersonalInfo->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
btnPersonalInfo->setStyleSheet("font:16px; color:white;background-color:rgba(0,0,0,0)");
connect(btnPersonalInfo, SIGNAL(clicked()), SLOT(on_btnPersonal_clicked()));
QVBoxLayout* themeLayout = new QVBoxLayout;
themeLayout->addWidget(btnPersonalInfo);
themeLayout->setMargin(0);
themeWidget->setLayout(themeLayout);
//设置
btnSetting = new GroupButton;
btnSetting->setStyleSheet(SheetStyle::GROUPBUTTON_BOTTOMBORDER);
QPixmap settingPixmap(ImagePath::SETTING);
this->setGroupButton(btnSetting, settingPixmap, tr("设置"));
connect(btnSetting, SIGNAL(clicked()), SLOT(on_btnSetting_clicked()));
QVBoxLayout* vblTotalLayout = new QVBoxLayout;
vblTotalLayout->addWidget(themeWidget);
vblTotalLayout->addSpacing(this->screenHeight()*0.026);
vblTotalLayout->addWidget(btnSetting);
vblTotalLayout->setAlignment(Qt::AlignTop);
vblTotalLayout->setMargin(0);
vblTotalLayout->setSpacing(0);
this->setBodyPartLayout(vblTotalLayout);
//屏幕触摸滚动设置
this->setBodyScreenHeight(this->scrollAreaHasBottomBarHeight());
this->installScrollViewportArea();
this->loadLocalData(curAccountID);
}
示例14: foreach
foreach(const ElementTypes &elementType, getAvailableElementTypes()){
QLabel *element = new QLabel();
element->setPixmap(QPixmap(getElementTypeIconPath(elementType)));
element->setFixedHeight(30);
element->setFixedWidth(30);
element->setScaledContents(true);
element->setVisible(false);
this->layout_neededElements->addWidget(element);
this->neededElements.insert(elementType, element);
}
示例15: QDialog
SaveScm::SaveScm( QWidget *parent, const char *name )
: QDialog( parent, name, TRUE )
{
setFocusPolicy(QWidget::StrongFocus);
setCaption( i18n("Add a color scheme"));
QBoxLayout *topLayout = new QVBoxLayout( this, 10 );
QBoxLayout *stackLayout = new QVBoxLayout( 3 );
topLayout->addLayout( stackLayout );
nameLine = new QLineEdit( this );
nameLine->setFocus();
nameLine->setMaxLength(18);
nameLine->setFixedHeight( nameLine->sizeHint().height() );
QLabel* tmpQLabel;
tmpQLabel = new QLabel( nameLine,
i18n( "&Enter a name for the new color scheme\n"\
"to be added to your personal list.\n\n"\
"The colors currently used in the preview will\n"\
"be copied into this scheme to begin with." ), this );
tmpQLabel->setAlignment( AlignLeft | AlignBottom | ShowPrefix );
tmpQLabel->setFixedHeight( tmpQLabel->sizeHint().height() );
tmpQLabel->setMinimumWidth( tmpQLabel->sizeHint().width() );
stackLayout->addStretch( 10 );
stackLayout->addWidget( tmpQLabel );
stackLayout->addWidget( nameLine );
QFrame* tmpQFrame;
tmpQFrame = new QFrame( this );
tmpQFrame->setFrameStyle( QFrame::HLine | QFrame::Sunken );
tmpQFrame->setMinimumHeight( tmpQFrame->sizeHint().height() );
topLayout->addWidget( tmpQFrame );
KButtonBox *bbox = new KButtonBox( this );
bbox->addStretch( 10 );
QPushButton *ok = bbox->addButton( i18n( "&OK" ) );
connect( ok, SIGNAL( clicked() ), SLOT( accept() ) );
QPushButton *cancel = bbox->addButton( i18n( "&Cancel" ) );
connect( cancel, SIGNAL( clicked() ), SLOT( reject() ) );
bbox->layout();
topLayout->addWidget( bbox );
topLayout->activate();
resize( 250, 0 );
}