Changeset 6652ac66a4 in tspsg for src/settingsdialog.cpp
- Timestamp:
- Sep 13, 2012, 12:38:53 PM (12 years ago)
- Branches:
- appveyor, imgbot, master, readme
- Children:
- 5f8c8ea92c
- Parents:
- 83e07f7194
- git-author:
- Oleksii Serdiuk <contacts@…> (09/13/12 12:38:53)
- git-committer:
- Oleksii Serdiuk <contacts@…> (09/13/12 13:43:55)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/settingsdialog.cpp
r83e07f7194 r6652ac66a4 80 80 hbox->addSpacing(10); 81 81 hbox->addWidget(cbHQGraph); 82 box->insertLayout(box->indexOf(cbGenerateGraph) + 2, hbox);82 box->insertLayout(box->indexOf(cbGenerateGraph) + 3, hbox); 83 83 connect(cbGenerateGraph, SIGNAL(toggled(bool)), cbHQGraph, SLOT(setEnabled(bool))); 84 84 #endif … … 268 268 cbGenerateGraph->setChecked(settings->value("GenerateGraph", DEF_GENERATE_GRAPH).toBool()); 269 269 270 #ifndef QT_NO_PRINTER 271 cbHQGraph->setEnabled(cbGenerateGraph->isChecked()); 272 cbHQGraph->setChecked(settings->value("HQGraph", DEF_HQ_GRAPH).toBool()); 273 #endif 270 spinGraphWidth->setEnabled(cbGenerateGraph->isChecked()); 271 spinGraphWidth->setValue(settings->value("GraphWidth", DEF_GRAPH_WIDTH).toDouble()); 274 272 275 273 #if !defined(NOSVG) && (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) … … 291 289 labelGraphImageFormat->setEnabled(cbGenerateGraph->isChecked()); 292 290 comboGraphImageFormat->setEnabled(cbGenerateGraph->isChecked()); 291 292 #ifndef QT_NO_PRINTER 293 cbHQGraph->setEnabled(cbGenerateGraph->isChecked()); 294 cbHQGraph->setChecked(settings->value("HQGraph", DEF_HQ_GRAPH).toBool()); 295 #endif 296 297 labelGraphWidth->setEnabled(cbGenerateGraph->isChecked()); 298 cbEmbedGraphIntoHTML->setEnabled(cbGenerateGraph->isChecked()); 293 299 cbEmbedGraphIntoHTML->setChecked(settings->value("EmbedGraphIntoHTML", DEF_EMBED_GRAPH_INTO_HTML).toBool()); 294 cbEmbedGraphIntoHTML->setEnabled(cbGenerateGraph->isChecked());295 300 296 301 cbShowMatrix->setChecked(settings->value("ShowMatrix", DEF_SHOW_MATRIX).toBool()); … … 406 411 settings->setValue("GenerateGraph", cbGenerateGraph->isChecked()); 407 412 if (cbGenerateGraph->isChecked()) { 408 #ifndef QT_NO_PRINTER 409 settings->setValue("HQGraph", cbHQGraph->isChecked()); 410 #endif 413 settings->setValue("GraphWidth", spinGraphWidth->value()); 411 414 if (cbGenerateGraph->isChecked()) { 412 415 if (comboGraphImageFormat->currentIndex() >= 0) … … 415 418 settings->setValue("GraphImageFormat", DEF_GRAPH_IMAGE_FORMAT); 416 419 } 420 #ifndef QT_NO_PRINTER 421 settings->setValue("HQGraph", cbHQGraph->isChecked()); 422 #endif 417 423 settings->setValue("EmbedGraphIntoHTML", cbEmbedGraphIntoHTML->isChecked()); 418 424 }
Note: See TracChangeset
for help on using the changeset viewer.