本文整理汇总了C++中QVBox类的典型用法代码示例。如果您正苦于以下问题:C++ QVBox类的具体用法?C++ QVBox怎么用?C++ QVBox使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了QVBox类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: makeVBoxMainWidget
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());
}
示例2: KDialogBase
KServiceSelectDlg::KServiceSelectDlg(const QString & /*serviceType*/, const QString & /*value*/, QWidget *parent)
: KDialogBase(parent, "serviceSelectDlg", true, i18n("Add Service"), Ok | Cancel, Ok)
{
QVBox *vbox = new QVBox(this);
vbox->setSpacing(KDialog::spacingHint());
new QLabel(i18n("Select service:"), vbox);
m_listbox = new KListBox(vbox);
// Can't make a KTrader query since we don't have a servicetype to give,
// we want all services that are not applications.......
// So we have to do it the slow way
// ### Why can't we query for KParts/ReadOnlyPart as the servicetype? Should work fine!
KService::List allServices = KService::allServices();
QValueListIterator< KService::Ptr > it(allServices.begin());
for(; it != allServices.end(); ++it)
if((*it)->hasServiceType("KParts/ReadOnlyPart"))
{
m_listbox->insertItem(new KServiceListItem((*it), KServiceListWidget::SERVICELIST_SERVICES));
}
m_listbox->sort();
m_listbox->setMinimumHeight(350);
m_listbox->setMinimumWidth(300);
connect(m_listbox, SIGNAL(doubleClicked(QListBoxItem *)), SLOT(slotOk()));
setMainWidget(vbox);
}
示例3: KDialogBase
KHLogin::KHLogin(QWidget *parent ) : KDialogBase(parent, "KHLogin", true, i18n("Log in"), User1 |KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, true)
{
QVBox *page = makeVBoxMainWidget();
page->setMargin(5);
page->setLineWidth(4);
page->setMidLineWidth(4);
page->setFrameStyle (QFrame::Box | QFrame::Raised );
QVGroupBox *m_container = new QVGroupBox(i18n("Select your player"),page);
m_selector = new KHSelectUser(m_container);
m_selector->readPlayers(true);
connect(m_selector, SIGNAL(playerSelected()), this, SLOT(setPlayerInformation()));
QVBox *m_infoBox = new QVBox(m_container);
m_labelName = new QLabel(i18n("Name: "), m_container);
m_labelElo = new QLabel(i18n("Elo: "), m_container);
m_labelType = new QLabel(i18n("Type: "), m_container);
new KSeparator(m_container);
new QLabel(i18n("Login"), m_container);
m_login = new KLineEdit(m_container);
new QLabel(i18n("Password"), m_container);
m_password = new KLineEdit(m_container);
setModal(true);
setButtonGuiItem (KDialogBase::User1, KGuiItem( i18n("Create a new user"), SmallIcon("penguin"), i18n("Click to create new user"), i18n("Clicking this button you can create a new user") ));
hide();
}
示例4: KDialogBase
XineConfig::XineConfig(const xine_t* const xine) :
KDialogBase(KDialogBase::IconList, i18n("xine Engine Parameters"),
KDialogBase::Ok|KDialogBase::Apply|KDialogBase::Cancel, KDialogBase::Cancel)
{
setInitialSize(QSize(650,500), true);
m_xine = (xine_t*)xine;
QStringList cats = getCategories();
QTabWidget* tabWidget = NULL;
QFrame* xineFrame = NULL;
QVBoxLayout* xineLayout = NULL;
QVBox* xineBeginnerPage = NULL;
QVBox* xineExpertPage = NULL;
QString icon;
QStringList::ConstIterator end ( cats.end());
for (QStringList::ConstIterator it = cats.begin(); it != end; ++it)
{
// kdDebug() << "XineConfig: add page: " << *it << endl;
if (*it == "audio")
icon = "sound";
else if (*it == "video")
icon = "video";
else if (*it == "vcd")
icon = "cdrom_unmount";
else if (*it == "input")
icon = "connect_established";
else if (*it == "effects")
icon = "wizard";
else if (*it == "media")
icon = "cdrom_unmount";
else if (*it == "subtitles")
icon = "font_bitmap";
else if (*it == "osd")
icon = "font_bitmap";
else if (*it == "engine")
icon = "exec";
else
icon = "edit";
xineFrame = addPage(*it, i18n("%1 Options").arg(*it), KGlobal::iconLoader()->loadIcon(icon, KIcon::Panel,
KIcon::SizeMedium));
xineLayout = new QVBoxLayout(xineFrame, marginHint(), spacingHint());
tabWidget = new QTabWidget(xineFrame);
xineLayout->addWidget(tabWidget);
xineBeginnerPage = new QVBox(tabWidget);
xineBeginnerPage->setMargin(5);
tabWidget->addTab(xineBeginnerPage, i18n("Beginner Options"));
createPage(*it, false, xineBeginnerPage);
xineExpertPage = new QVBox(tabWidget);
xineExpertPage->setMargin(5);
tabWidget->addTab(xineExpertPage, i18n("Expert Options"));
createPage(*it, true, xineExpertPage);
}
connect(this, SIGNAL(okClicked()), SLOT(slotOkPressed()));
connect(this, SIGNAL(applyClicked()), SLOT(slotApplyPressed()));
}
示例5: QString
/**Initializes the view of this widget*/
void BibleTime::initView() {
KStartupLogo::setStatusMessage(i18n("Creating BibleTime's GUI") + QString("..."));
m_mainSplitter = new QSplitter(this, "mainsplitter");
m_mainSplitter->setChildrenCollapsible(false);
setCentralWidget(m_mainSplitter);
m_leftPaneSplitter = new QSplitter(Qt::Vertical, m_mainSplitter);
m_leftPaneSplitter->setChildrenCollapsible(false);
QVBox* vBox = new QVBox(m_leftPaneSplitter);
vBox->setMinimumSize(100, 100);
QLabel* bookshelfLabel = new QLabel( i18n("Bookshelf"), vBox );
bookshelfLabel->setMargin(5);
m_mainIndex = new CMainIndex(vBox);
m_infoDisplay = new CInfoDisplay(m_leftPaneSplitter);
CPointers::setInfoDisplay(m_infoDisplay);
m_mdi = new CMDIArea(m_mainSplitter, "mdiarea" );
m_mdi->setMinimumSize(100, 100);
m_mdi->setFocusPolicy(ClickFocus);
m_helpMenu = new KHelpMenu(this, KGlobal::instance()->aboutData(), true, actionCollection());
}
示例6: QDialog
KReferDialog::KReferDialog( KPhoneView * phv,int kcwn,QString uPrefix,QWidget *parent, const char *name )
: QDialog( parent, name, true )
{
phoneView=phv;
kcwNumber= kcwn;
userPrefix=uPrefix;
phoneBook = 0;
QVBox *vbox = new QVBox( this );
vbox->setMargin( 3 );
vbox->setSpacing( 3 );
QVBoxLayout *vboxl = new QVBoxLayout( this, 5 );
vboxl->addWidget( vbox );
(void) new QLabel( tr("Refer-to URI:"), vbox );
touri = new QLineEdit( vbox );
touri->setMinimumWidth( fontMetrics().maxWidth() * 20 );
QHBoxLayout *buttonBox;
buttonBox = new QHBoxLayout( vboxl, 6 );
loadUri = new QPushButton( "", this );
QIconSet icon;
icon.setPixmap(SHARE_DIR "/icons/phonebook.png", QIconSet::Automatic );
loadUri->setIconSet( icon );
loadUri->setFixedWidth( loadUri->fontMetrics().maxWidth() * 2 );
buttonBox->addWidget( loadUri );
helpPushButton = new QPushButton( this, tr("help button") );
helpPushButton->setText( tr("&help...") );
helpPushButton->setEnabled( FALSE );
buttonBox->addWidget( helpPushButton );
QSpacerItem *spacer = new QSpacerItem(
0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
buttonBox->addItem( spacer );
okPushButton = new QPushButton( this, tr("ok button") );
okPushButton->setText( "OK" );
okPushButton->setDefault( TRUE );
buttonBox->addWidget( okPushButton );
cancelPushButton = new QPushButton( this,tr( "cancel button") );
cancelPushButton->setText( tr("Cancel") );
cancelPushButton->setAccel( Key_Escape );
buttonBox->addWidget( cancelPushButton );
connect( loadUri, SIGNAL( clicked() ),
this, SLOT( getUri() ) );
connect( okPushButton, SIGNAL( clicked() ),
this, SLOT( slotOk() ) );
connect( cancelPushButton, SIGNAL( clicked() ),
this, SLOT( slotCancel() ) );
}
示例7: QVBox
NotesControl::NotesControl( QWidget *, const char * )
: QVBox( 0, "NotesControl",/* WDestructiveClose | */WStyle_StaysOnTop )
// : QFrame( parent, name, WDestructiveClose | WStyle_StaysOnTop | WType_Popup )
{
Config cfg("Notes");
cfg.setGroup("Options");
m_showMax = cfg.readBoolEntry("ShowMax", false);
setFrameStyle( QFrame::PopupPanel | QFrame::Raised );
m_loaded = false;
m_edited = false;
QVBox *vbox = new QVBox( this, "Vlayout" );
QHBox *hbox = new QHBox( this, "HLayout" );
m_editArea = new QMultiLineEdit( vbox, "OpieNotesView" );
m_notesList = new QListBox( vbox, "OpieNotesBox" );
QPEApplication::setStylusOperation( m_notesList->viewport(), QPEApplication::RightOnHold );
m_notesList->setFixedHeight( 50 );
vbox->setMargin( 6 );
vbox->setSpacing( 3 );
setFocusPolicy(QWidget::StrongFocus);
newButton = new QPushButton( hbox, "newButton" );
newButton->setText(tr("New"));
saveButton = new QPushButton( hbox, "saveButton" );
saveButton->setText(tr("Save"));
deleteButton = new QPushButton( hbox, "deleteButton" );
deleteButton->setText(tr("Delete"));
connect( m_notesList, SIGNAL( mouseButtonPressed(int,QListBoxItem*,const QPoint&)),
this,SLOT( boxPressed(int,QListBoxItem*,const QPoint&)) );
connect( m_notesList, SIGNAL(highlighted(const QString&)), this, SLOT(slotBoxSelected(const QString&)));
connect( &menuTimer, SIGNAL( timeout() ), SLOT( showMenu() ) );
connect( m_editArea,SIGNAL( textChanged() ), this, SLOT(slotViewEdited() ) );
connect( newButton, SIGNAL(clicked()), this, SLOT(slotNewButton()) );
connect( saveButton, SIGNAL(clicked()), this, SLOT(slotSaveButton()) );
connect( deleteButton, SIGNAL(clicked()), this, SLOT(slotDeleteButton()) );
m_selected = -1;
setCaption("Notes");
}
示例8: main
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QVBox *topWidget = new QVBox();
QPushButton *b1 = new QPushButton("Ok", topWidget);
QPushButton *b2 = new QPushButton("Defaults", topWidget);
QPushButton *b3 = new QPushButton("Cancel", topWidget);
app.setMainWidget(topWidget);
topWidget->show();
return app.exec();
}
示例9: QMainWindow
//
// ReportWriterWindow
//
ReportWriterWindow::ReportWriterWindow()
: QMainWindow(0, tr("OpenMFG: Report Writer"), WDestructiveClose) {
setIcon(QPixmap(OpenReportsIcon_xpm));
// add the workspace
QVBox * vbox = new QVBox(this);
vbox->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
ws = new QWorkspace(vbox);
ws->setScrollBarsEnabled(TRUE);
setCentralWidget(vbox);
// setup the menubar
fileExitAction = new QAction(tr("Exit"),
tr("E&xit"),ALT+Key_F4,this,"file exit");
connect(fileExitAction, SIGNAL(activated()), this, SLOT(appExit()));
handler = new ReportHandler(this, "report handler");
#ifdef NODBSUPPORT
handler->setNoDatabase(true);
#endif
menubar = new QMenuBar(this);
int sepid = handler->populateMenuBar(menubar, fileExitAction);
windowMenu = new QPopupMenu();
windowMenu->setCheckable(TRUE);
connect(windowMenu, SIGNAL(aboutToShow()), this, SLOT(sPrepareWindowMenu()));
menubar->insertItem(tr("&Windows"), windowMenu, -1, menubar->indexOf(sepid));
// setup the toolbar
handler->docToolBars(this);
statusbar = new QStatusBar(this);
setCaption();
dbTimerId = startTimer(60000);
handler->setParentWindow(ws);
connect(handler, SIGNAL(dbOpenClosed()), this, SLOT(setCaption()));
connect(handler, SIGNAL(messageChanged(const QString &)),
statusbar, SLOT(message(const QString &)));
connect(handler, SIGNAL(messageCleared()),
statusbar, SLOT(clear()));
}
示例10: QVBox
QWidget * DataRecorderChannelBoolean::getPropertyWidget(QWidget * parent, const char * name)
{
if (!m_propertyWidget)
{
// Setup widget
QVBox * widget = new QVBox(parent,name);
Q_CHECK_PTR(widget);
widget->setMargin(KDialog::marginHint());
widget->setSpacing(KDialog::spacingHint());
QLabel * lab;
lab = new QLabel(i18n("DataRecorder", "Channel:"), widget);
Q_CHECK_PTR(lab);
KSimLineEdit * conName;
conName = new KSimLineEdit(widget);
Q_CHECK_PTR(conName);
conName->setText(getConnector()->getName());
connect(getConnector(), SIGNAL(signalSetName(const QString &)), conName, SLOT(setText(const QString &)));
connect(conName, SIGNAL(changed(const QString &)), SLOT(setChannelName(const QString &)));
lab->setBuddy(conName);
// TODO add ToolTip
ChannelPositionWidget * pos;
pos = new ChannelPositionWidget(this, widget);
Q_CHECK_PTR(pos);
pos->setGainValue(getVerticalGain());
pos->setOffsetValue(getVerticalOffset());
connect(pos, SIGNAL(gainChanged(double)), SLOT(setVerticalGain(double)));
connect(pos, SIGNAL(offsetChanged(double)), SLOT(setVerticalOffset(double)));
KColorButton * color = new KColorButton(widget);
Q_CHECK_PTR(color);
color->setColor(getLineColor());
connect(color, SIGNAL(changed(const QColor &)), SLOT(setLineColor(const QColor &)));
m_propertyWidget = widget;
}
else
{
if (parent)
{
KSIMDEBUG("Only one widget allowed");
}
}
return m_propertyWidget;
}
示例11: setInstance
KHTMLImage::KHTMLImage( QWidget *parentWidget, const char *widgetName,
QObject *parent, const char *name )
: KParts::ReadOnlyPart( parent, name )
{
setInstance( KHTMLImageFactory::instance() );
QVBox *box = new QVBox( parentWidget, widgetName );
m_khtml = new KHTMLPart( box, widgetName, this, "htmlimagepart" );
m_khtml->setAutoloadImages( true );
setWidget( box );
// VBox can't take focus, so pass it on to sub-widget
box->setFocusProxy( m_khtml->widget() );
m_ext = new KHTMLImageBrowserExtension( this, "be" );
// Remove unnecessary actions.
KAction *encodingAction = actionCollection()->action( "setEncoding" );
if ( encodingAction )
{
encodingAction->unplugAll();
delete encodingAction;
}
KAction *viewSourceAction= actionCollection()->action( "viewDocumentSource" );
if ( viewSourceAction )
{
viewSourceAction->unplugAll();
delete viewSourceAction;
}
KAction *selectAllAction= actionCollection()->action( "selectAll" );
if ( selectAllAction )
{
selectAllAction->unplugAll();
delete selectAllAction;
}
connect( m_khtml->browserExtension(), SIGNAL( popupMenu( KXMLGUIClient *, const QPoint &, const KURL &, const QString &, mode_t ) ),
m_ext, SIGNAL( popupMenu( KXMLGUIClient *, const QPoint &, const KURL &, const QString &, mode_t ) ) );
connect( m_khtml->browserExtension(), SIGNAL( enableAction( const char *, bool ) ),
m_ext, SIGNAL( enableAction( const char *, bool ) ) );
m_ext->setURLDropHandlingEnabled( true );
}
示例12: i18n
/**
* @short Shows a popup
* @author Rene Schmidt <[email protected]>
* @version 0.1
*/
void KLAidWidget::showPopUp(QString &caption, QString &text, uint &tOut)
{
// Tell user when the next popup will be shown
QToolTip::add(tray, i18n("K Learning Aid %1").arg(VER) + "\nNext PopUp will be shown at " + aut->projectTime(aut->getInterval()));
// this is a candidate for subclassing... Copied in part from kpassivepopup.cpp (c) by KDE Team
KPassivePopup *pop = new KPassivePopup( tray );
pop->setPaletteForegroundColor(*tmpFgColor);
pop->setPaletteBackgroundColor(*tmpBgColor);
QVBox *vb = new QVBox( pop );
vb->setSpacing( KDialog::spacingHint() );
QHBox *hb=0;
hb = new QHBox(vb);
hb->setMargin(0);
hb->setSpacing(KDialog::spacingHint() );
QLabel *ttlIcon=0;
ttlIcon = new QLabel( hb, "title_icon" );
ttlIcon->setPixmap( SmallIcon("ktimer") );
ttlIcon->setAlignment( AlignLeft );
if ( !caption.isEmpty() ) {
QLabel *ttl=0;
ttl = new QLabel(caption, hb ? hb : vb, "title_label");
ttl->setFont( *fntCaption );
ttl->setAlignment( Qt::AlignHCenter );
if ( hb )
hb->setStretchFactor( ttl, 10 ); // enforce centering
}
if ( !text.isEmpty() ) {
QLabel *msg=0;
msg = new QLabel( text, vb, "msg_label" );
msg->setFont( *fntBody );
msg->setAlignment( AlignLeft );
}
pop->setTimeout(tOut);
//pop->setView( title, txt, SmallIcon("ktimer"));
pop->setView(vb);
pop->show();
}
示例13: QWidget
Kfind::Kfind(QWidget *parent, const char *name) : QWidget(parent, name)
{
kdDebug() << "Kfind::Kfind " << this << endl;
QBoxLayout *mTopLayout = new QBoxLayout(this, QBoxLayout::LeftToRight, KDialog::marginHint(), KDialog::spacingHint());
// create tabwidget
tabWidget = new KfindTabWidget(this);
mTopLayout->addWidget(tabWidget);
/*
* This is ugly. Might be a KSeparator bug, but it makes a small black
* pixel for me which is visually distracting (GS).
// create separator
KSeparator * mActionSep = new KSeparator( this );
mActionSep->setFocusPolicy( QWidget::ClickFocus );
mActionSep->setOrientation( QFrame::VLine );
mTopLayout->addWidget(mActionSep);
*/
// create button box
QVBox *mButtonBox = new QVBox(this);
QVBoxLayout *lay = (QVBoxLayout *)mButtonBox->layout();
lay->addStretch(1);
mTopLayout->addWidget(mButtonBox);
mSearch = new KPushButton(KGuiItem(i18n("&Find"), "find"), mButtonBox);
mButtonBox->setSpacing((tabWidget->sizeHint().height() - 4 * mSearch->sizeHint().height()) / 4);
connect(mSearch, SIGNAL(clicked()), this, SLOT(startSearch()));
mStop = new KPushButton(KGuiItem(i18n("Stop"), "stop"), mButtonBox);
connect(mStop, SIGNAL(clicked()), this, SLOT(stopSearch()));
mSave = new KPushButton(KStdGuiItem::saveAs(), mButtonBox);
connect(mSave, SIGNAL(clicked()), this, SLOT(saveResults()));
KPushButton *mClose = new KPushButton(KStdGuiItem::close(), mButtonBox);
connect(mClose, SIGNAL(clicked()), this, SIGNAL(destroyMe()));
// react to search requests from widget
connect(tabWidget, SIGNAL(startSearch()), this, SLOT(startSearch()));
mSearch->setEnabled(true); // Enable "Search"
mStop->setEnabled(false); // Disable "Stop"
mSave->setEnabled(false); // Disable "Save..."
dirlister = new KDirLister();
}
示例14: KDialogBase
KateSessionChooser::KateSessionChooser(QWidget *parent, const QString &lastSession)
: KDialogBase(parent, "", true, i18n("Session Chooser"), KDialogBase::User1 | KDialogBase::User2 | KDialogBase::User3, KDialogBase::User2, true,
KStdGuiItem::quit(), KGuiItem(i18n("Open Session"), "fileopen"), KGuiItem(i18n("New Session"), "filenew"))
{
QHBox *page = new QHBox(this);
page->setMinimumSize(400, 200);
setMainWidget(page);
QHBox *hb = new QHBox(page);
hb->setSpacing(KDialog::spacingHint());
QLabel *label = new QLabel(hb);
label->setPixmap(UserIcon("sessionchooser"));
label->setFrameStyle(QFrame::Panel | QFrame::Sunken);
QVBox *vb = new QVBox(hb);
vb->setSpacing(KDialog::spacingHint());
m_sessions = new KListView(vb);
m_sessions->addColumn(i18n("Session Name"));
m_sessions->addColumn(i18n("Open Documents"));
m_sessions->setResizeMode(QListView::AllColumns);
m_sessions->setSelectionMode(QListView::Single);
m_sessions->setAllColumnsShowFocus(true);
connect(m_sessions, SIGNAL(selectionChanged()), this, SLOT(selectionChanged()));
connect(m_sessions, SIGNAL(doubleClicked(QListViewItem *, const QPoint &, int)), this, SLOT(slotUser2()));
KateSessionList &slist(KateSessionManager::self()->sessionList());
for(unsigned int i = 0; i < slist.count(); ++i)
{
KateSessionChooserItem *item = new KateSessionChooserItem(m_sessions, slist[i]);
if(slist[i]->sessionFileRelative() == lastSession)
m_sessions->setSelected(item, true);
}
m_useLast = new QCheckBox(i18n("&Always use this choice"), vb);
setResult(resultNone);
// trigger action update
selectionChanged();
}
示例15: QDialog
OptionsDialog::OptionsDialog(QWidget *parent)
: QDialog(parent, 0, false, Qt::WDestructiveClose)
{
setCaption("QucsTranscalc "+tr("Options"));
// -------- create dialog widgets ------------
vLayout = new QVBoxLayout(this);
vLayout->setMargin(3);
vLayout->setSpacing(3);
QHGroupBox * h = new QHGroupBox(tr("Units"), this);
vLayout->addWidget(h);
QVBox * l = new QVBox(h);
l->setSpacing(3);
QLabel * lfr = new QLabel(tr("Frequency"),l);
lfr->setAlignment (Qt::AlignRight);
QLabel * lle = new QLabel(tr("Length"),l);
lle->setAlignment (Qt::AlignRight);
QLabel * lre = new QLabel(tr("Resistance"),l);
lre->setAlignment (Qt::AlignRight);
QLabel * lan = new QLabel(tr("Angle"),l);
lan->setAlignment (Qt::AlignRight);
QVBox * r = new QVBox(h);
r->setSpacing(3);
for (int j = 0; j < 4; j++) {
units[j] = new QComboBox(r);
for (int i = 0; TransUnits[j].units[i] != NULL; i++)
units[j]->insertItem (TransUnits[j].units[i]);
}
units[0]->setCurrentItem (QucsSettings.freq_unit);
units[1]->setCurrentItem (QucsSettings.length_unit);
units[2]->setCurrentItem (QucsSettings.res_unit);
units[3]->setCurrentItem (QucsSettings.ang_unit);
QHBox * h2 = new QHBox(this);
vLayout->addWidget(h2);
QPushButton *ButtonSave = new QPushButton(tr("Save as Default"), h2);
connect(ButtonSave, SIGNAL(clicked()), SLOT(slotSave()));
QPushButton *ButtonClose = new QPushButton(tr("Dismiss"), h2);
connect(ButtonClose, SIGNAL(clicked()), SLOT(slotClose()));
ButtonClose->setFocus();
}