Switch to unified view

a/src/qtgui/uiprefs_w.cpp b/src/qtgui/uiprefs_w.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: uiprefs_w.cpp,v 1.19 2007-07-12 10:13:37 dockes Exp $ (C) 2005 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: uiprefs_w.cpp,v 1.20 2007-08-01 07:55:03 dockes Exp $ (C) 2005 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
231
{
231
{
232
    setFromPrefs();
232
    setFromPrefs();
233
    QDialog::reject();
233
    QDialog::reject();
234
}
234
}
235
235
236
void UIPrefsDialog::setStemLang(const QString& lang)
237
{
238
    int cur = 0;
239
    if (lang == "") {
240
  cur = 0;
241
    } else {
242
  for (int i = 1; i < stemLangCMB->count(); i++) {
243
      if (lang == stemLangCMB->text(i)) {
244
      cur = i;
245
      break;
246
      }
247
  }
248
    }
249
    stemLangCMB->setCurrentItem(cur);
250
}
251
236
void UIPrefsDialog::showFontDialog()
252
void UIPrefsDialog::showFontDialog()
237
{
253
{
238
    bool ok;
254
    bool ok;
239
    QFont font;
255
    QFont font;
240
    if (prefs.reslistfontfamily.length()) {
256
    if (prefs.reslistfontfamily.length()) {