19 setWindowTitle(tr(
"CRE settings"));
21 QGridLayout* layout =
new QGridLayout();
25 layout->addWidget(
new QLabel(tr(
"Cache directory:"),
this), line, 0);
29 myMapCache->setText(QStandardPaths::standardLocations(QStandardPaths::DataLocation)[0]);
34 layout->addWidget(
new QLabel(tr(
"This directory is used to store information between program runs.\nIt should be persistent (don't put in a temporary directory cleaned now and then),\nbut data can be recreated if needed."),
this), line, 0, 1, 2);
37 QDialogButtonBox* buttons =
new QDialogButtonBox(QDialogButtonBox::Save | QDialogButtonBox::Cancel, Qt::Horizontal,
this);
38 connect(buttons, SIGNAL(accepted()),
this, SLOT(accept()));
39 connect(buttons, SIGNAL(rejected()),
this, SLOT(reject()));
40 layout->addWidget(buttons, line, 0, 1, 2);