OSDN Git Service

内蔵テキストビューアの行間を設定できるようにした
[gefu/Gefu.git] / preferencedialog.cpp
index 38ac0a2..58fea0d 100644 (file)
@@ -100,6 +100,7 @@ PreferenceDialog::PreferenceDialog(QWidget *parent) :
     setFont(ui->hvFontSpec, prefs.getHexViewFont());
 
     ui->lineHeight->setValue(prefs.getLineHeight());
+    ui->tvLineHeight->setValue(prefs.getTextViewLineHeight());
 
     // [プログラムパス]
     ui->editorPath->setText(prefs.getEditorPath());
@@ -504,6 +505,7 @@ void PreferenceDialog::accept()
     prefs.setHexViewFont(ui->hvFontSpec->font());
 
     prefs.setLineHeight(ui->lineHeight->value());
+    prefs.setTextViewLineHeight(ui->tvLineHeight->value());
 
     // [プログラムパス]
     prefs.setEditorPath(ui->editorPath->text());