|
a/src/qtgui/uiprefs_w.cpp |
|
b/src/qtgui/uiprefs_w.cpp |
|
... |
|
... |
137 |
initStartAdvCB->setChecked(prefs.startWithAdvSearchOpen);
|
137 |
initStartAdvCB->setChecked(prefs.startWithAdvSearchOpen);
|
138 |
|
138 |
|
139 |
keepSortCB->setChecked(prefs.keepSort);
|
139 |
keepSortCB->setChecked(prefs.keepSort);
|
140 |
showTrayIconCB->setChecked(prefs.showTrayIcon);
|
140 |
showTrayIconCB->setChecked(prefs.showTrayIcon);
|
141 |
closeToTrayCB->setChecked(prefs.closeToTray);
|
141 |
closeToTrayCB->setChecked(prefs.closeToTray);
|
|
|
142 |
showTempFileWarningCB->setChecked(prefs.showTempFileWarning == -1);
|
142 |
previewHtmlCB->setChecked(prefs.previewHtml);
|
143 |
previewHtmlCB->setChecked(prefs.previewHtml);
|
143 |
switch (prefs.previewPlainPre) {
|
144 |
switch (prefs.previewPlainPre) {
|
144 |
case PrefsPack::PP_BR:
|
145 |
case PrefsPack::PP_BR:
|
145 |
plainBRRB->setChecked(1);
|
146 |
plainBRRB->setChecked(1);
|
146 |
break;
|
147 |
break;
|
|
... |
|
... |
320 |
prefs.startWithAdvSearchOpen = initStartAdvCB->isChecked();
|
321 |
prefs.startWithAdvSearchOpen = initStartAdvCB->isChecked();
|
321 |
|
322 |
|
322 |
prefs.keepSort = keepSortCB->isChecked();
|
323 |
prefs.keepSort = keepSortCB->isChecked();
|
323 |
prefs.showTrayIcon = showTrayIconCB->isChecked();
|
324 |
prefs.showTrayIcon = showTrayIconCB->isChecked();
|
324 |
prefs.closeToTray = closeToTrayCB->isChecked();
|
325 |
prefs.closeToTray = closeToTrayCB->isChecked();
|
|
|
326 |
prefs.showTempFileWarning = showTempFileWarningCB->isChecked() ?
|
|
|
327 |
-1 : 1024;
|
325 |
prefs.previewHtml = previewHtmlCB->isChecked();
|
328 |
prefs.previewHtml = previewHtmlCB->isChecked();
|
326 |
|
329 |
|
327 |
if (plainBRRB->isChecked()) {
|
330 |
if (plainBRRB->isChecked()) {
|
328 |
prefs.previewPlainPre = PrefsPack::PP_BR;
|
331 |
prefs.previewPlainPre = PrefsPack::PP_BR;
|
329 |
} else if (plainPRERB->isChecked()) {
|
332 |
} else if (plainPRERB->isChecked()) {
|
|
... |
|
... |
369 |
dialog.plainTextEdit->setPlainText(paraFormat);
|
372 |
dialog.plainTextEdit->setPlainText(paraFormat);
|
370 |
int result = dialog.exec();
|
373 |
int result = dialog.exec();
|
371 |
if (result == QDialog::Accepted)
|
374 |
if (result == QDialog::Accepted)
|
372 |
paraFormat = dialog.plainTextEdit->toPlainText();
|
375 |
paraFormat = dialog.plainTextEdit->toPlainText();
|
373 |
}
|
376 |
}
|
|
|
377 |
|
374 |
void UIPrefsDialog::editHeaderText()
|
378 |
void UIPrefsDialog::editHeaderText()
|
375 |
{
|
379 |
{
|
376 |
EditDialog dialog(this);
|
380 |
EditDialog dialog(this);
|
377 |
dialog.setWindowTitle(tr("Result list header (default is empty)"));
|
381 |
dialog.setWindowTitle(tr("Result list header (default is empty)"));
|
378 |
dialog.plainTextEdit->setPlainText(headerText);
|
382 |
dialog.plainTextEdit->setPlainText(headerText);
|