本文整理汇总了C++中Quote::list方法的典型用法代码示例。如果您正苦于以下问题:C++ Quote::list方法的具体用法?C++ Quote::list怎么用?C++ Quote::list使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Quote
的用法示例。
在下文中一共展示了Quote::list方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setLayout
void
GUIWidget::createGUI ()
{
QVBoxLayout *vbox = new QVBoxLayout;
vbox->setSpacing(2);
vbox->setMargin(5);
setLayout(vbox);
QFormLayout *form = new QFormLayout;
form->setSpacing(2);
form->setMargin(0);
vbox->addLayout(form);
// csv file
_csvButton = new FileButton(0);
connect(_csvButton, SIGNAL(signalSelectionChanged(QStringList)), this, SLOT(buttonStatus()));
// _csvButton->setFiles(QStringList() << "/tmp/yahoo.csv");
form->addRow (tr("CSV File"), _csvButton);
// format
_format = new QLineEdit;
form->addRow (tr("Format"), _format);
// date format
_dateFormat = new QLineEdit;
form->addRow (tr("Date Format"), _dateFormat);
// delimiter
Delimiter d;
_delimiter = new QComboBox;
_delimiter->addItems(d.list());
_delimiter->setCurrentIndex(Delimiter::_SEMICOLON);
form->addRow (tr("Delimiter"), _delimiter);
// type
Quote q;
_type = new QComboBox;
_type->addItems(q.list());
_type->setCurrentIndex(Quote::_STOCK);
form->addRow (tr("Quote Type"), _type);
// exchange
_exchange = new QLineEdit;
form->addRow (tr("Exchange Override"), _exchange);
// filename as symbol
_filename = new QCheckBox;
form->addRow (tr("Use Filename As Symbol"), _filename);
// log
_log = new QTextEdit;
_log->setReadOnly(TRUE);
vbox->addWidget(_log);
// buttonbox
QDialogButtonBox *bb = new QDialogButtonBox(QDialogButtonBox::Help);
vbox->addWidget(bb);
// ok button
_okButton = bb->addButton(QDialogButtonBox::Ok);
_okButton->setText(tr("&OK"));
connect(_okButton, SIGNAL(clicked()), this, SLOT(importThread()));
// cancel button
_cancelButton = bb->addButton(QDialogButtonBox::Cancel);
_cancelButton->setText(tr("&Cancel"));
_cancelButton->setDefault(TRUE);
_cancelButton->setFocus();
_cancelButton->setEnabled(TRUE);
// help button
QPushButton *b = bb->button(QDialogButtonBox::Help);
b->setText(tr("&Help"));
connect(b, SIGNAL(clicked()), this, SIGNAL(signalHelp()));
}