本文整理汇总了C++中Options::Save方法的典型用法代码示例。如果您正苦于以下问题:C++ Options::Save方法的具体用法?C++ Options::Save怎么用?C++ Options::Save使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Options
的用法示例。
在下文中一共展示了Options::Save方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: itemSelectedsegmentdirectory
void FormEphem::itemSelectedsegmentdirectory( QTreeWidgetItem *item)
{
qDebug() << "void FormEphem::itemSelectedsegmentdirectory";
QTreeWidgetItemIterator it1( ui->segmentdirectorywidget );
opts.segmentdirectorylistinc.clear();
while (*it1)
{
if ( (*it1)->checkState(0) == Qt::Checked )
{
opts.segmentdirectorylistinc << "1";
qDebug() << "1";
}
else
{
opts.segmentdirectorylistinc << "0";
qDebug() << "0";
}
++it1;
}
opts.Save();
}
示例2: workingdir
MainWindow::~MainWindow()
{
delete ui;
delete timer;
delete formtoolbox;
delete formephem;
delete formglobecyl;
delete cylequidist;
delete satlist;
delete seglist;
opts.Save();
poi.Save();
imageptrs->DeleteImagePtrs();
// Deleting h5 files in program directory
QDir workingdir(".");
QStringList filters;
filters << "*.h5" << "*.HDF" << "IMG_DK01*";
workingdir.setNameFilters(filters);
QFileInfoList fileinfolist;
workingdir.setFilter(QDir::Files | QDir::NoSymLinks);
workingdir.setSorting(QDir::Name);
fileinfolist = workingdir.entryInfoList();
for (int i = 0; i < fileinfolist.size(); ++i)
{
QFile h5file(fileinfolist.at(i).fileName());
if(h5file.remove())
qDebug() << QString("Deleting h5 and Himawari files : %1").arg(fileinfolist.at(i).fileName());
}
QDir workingdir1(".");
filters.clear();
filters << "S3A_OL_1_*";
workingdir1.setNameFilters(filters);
workingdir1.setFilter(QDir::Dirs | QDir::NoSymLinks);
QStringList infolist = workingdir1.entryList();
if(opts.remove_S3A_dirs)
{
for (int i = 0; i < infolist.size(); ++i)
{
QDir deletedir(infolist.at(i));
bool gelukt = deletedir.removeRecursively();
if(gelukt)
qDebug() << "removing S3A dir : " << infolist.at(i);
}
}
qDebug() << "================closing MainWindow================";
loggingFile.close();
}
示例3: workingdir
MainWindow::~MainWindow()
{
delete ui;
delete timer;
delete formtoolbox;
delete formephem;
delete formglobecyl;
delete cylequidist;
delete satlist;
delete seglist;
opts.Save();
poi.Save();
imageptrs->DeleteImagePtrs();
// Deleting h5 files in program directory
QDir workingdir(".");
QStringList filters;
filters << "*.h5" << "*.HDF" << "IMG_DK01*";
workingdir.setNameFilters(filters);
QFileInfoList fileinfolist;
workingdir.setFilter(QDir::Files | QDir::NoSymLinks);
workingdir.setSorting(QDir::Name);
fileinfolist = workingdir.entryInfoList();
for (int i = 0; i < fileinfolist.size(); ++i)
{
QFile h5file(fileinfolist.at(i).fileName());
if(h5file.remove())
qDebug() << QString("Deleting h5 and Himawari files : %1").arg(fileinfolist.at(i).fileName());
}
qDebug() << "================closing MainWindow================";
}
示例4:
Dialog::~Dialog()
{
delete ui;
opts.Save();
}