|
a/src/qtgui/uiprefs_w.cpp |
|
b/src/qtgui/uiprefs_w.cpp |
|
... |
|
... |
287 |
}
|
287 |
}
|
288 |
|
288 |
|
289 |
void UIPrefsDialog::editParaFormat()
|
289 |
void UIPrefsDialog::editParaFormat()
|
290 |
{
|
290 |
{
|
291 |
EditDialog dialog(this);
|
291 |
EditDialog dialog(this);
|
|
|
292 |
dialog.setWindowTitle(tr("Result list paragraph format "
|
|
|
293 |
"(erase all to reset to default)"));
|
292 |
dialog.plainTextEdit->setPlainText(paraFormat);
|
294 |
dialog.plainTextEdit->setPlainText(paraFormat);
|
293 |
int result = dialog.exec();
|
295 |
int result = dialog.exec();
|
294 |
if (result == QDialog::Accepted)
|
296 |
if (result == QDialog::Accepted)
|
295 |
paraFormat = dialog.plainTextEdit->toPlainText();
|
297 |
paraFormat = dialog.plainTextEdit->toPlainText();
|
296 |
}
|
298 |
}
|
297 |
void UIPrefsDialog::editHeaderText()
|
299 |
void UIPrefsDialog::editHeaderText()
|
298 |
{
|
300 |
{
|
299 |
EditDialog dialog(this);
|
301 |
EditDialog dialog(this);
|
|
|
302 |
dialog.setWindowTitle(tr("Result list header (default is empty)"));
|
300 |
dialog.plainTextEdit->setPlainText(headerText);
|
303 |
dialog.plainTextEdit->setPlainText(headerText);
|
301 |
int result = dialog.exec();
|
304 |
int result = dialog.exec();
|
302 |
if (result == QDialog::Accepted)
|
305 |
if (result == QDialog::Accepted)
|
303 |
headerText = dialog.plainTextEdit->toPlainText();
|
306 |
headerText = dialog.plainTextEdit->toPlainText();
|
304 |
}
|
307 |
}
|