diff options
| author | 2015-10-02 12:18:47 +0200 | |
|---|---|---|
| committer | 2015-10-02 11:41:57 +0100 | |
| commit | 84f8b653fcc0d0f3c17cbb572351a042d9b7f690 (patch) | |
| tree | 1417b301765d2e6f271e6557def9f5a903059d30 /src/modules/options/OptionsWidget_input.cpp | |
| parent | fix #1591 add custom cursor thickness size options (diff) | |
| download | KVIrc-84f8b653fcc0d0f3c17cbb572351a042d9b7f690.tar.gz KVIrc-84f8b653fcc0d0f3c17cbb572351a042d9b7f690.tar.bz2 KVIrc-84f8b653fcc0d0f3c17cbb572351a042d9b7f690.zip | |
Update cursor width when the option is changed and enable or disable the spinbox depending on whether the checkbox is checked.
Diffstat (limited to 'src/modules/options/OptionsWidget_input.cpp')
| -rw-r--r-- | src/modules/options/OptionsWidget_input.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/options/OptionsWidget_input.cpp b/src/modules/options/OptionsWidget_input.cpp index 7a4c4d28c..6f76baa28 100644 --- a/src/modules/options/OptionsWidget_input.cpp +++ b/src/modules/options/OptionsWidget_input.cpp @@ -156,8 +156,9 @@ OptionsWidget_inputFeatures::OptionsWidget_inputFeatures(QWidget * parent) addStringSelector(g,__tr2qs_ctx("Nick completion postfix string","options"),KviOption_stringNickCompletionPostfix); addBoolSelector(g,__tr2qs_ctx("Use the completion postfix string for the first word only","options"),KviOption_boolUseNickCompletionPostfixForFirstWordOnly); - KviBoolSelector *d = addBoolSelector(0,6,0,6,__tr2qs_ctx("Enable custom cursor width","options"),KviOption_boolEnableCustomCursorWidth); - KviUIntSelector *f = addUIntSelector(0,7,0,7,__tr2qs_ctx("Cursor width - in pixels","options"),KviOption_uintCustomCursorWidth,1,24,8,true); + KviBoolSelector *d = addBoolSelector(0,6,0,6,__tr2qs_ctx("Use a custom cursor width","options"),KviOption_boolEnableCustomCursorWidth); + KviUIntSelector *f = addUIntSelector(0,7,0,7,__tr2qs_ctx("Custom cursor width:","options"),KviOption_uintCustomCursorWidth,1,24,8,KVI_OPTION_BOOL(KviOption_boolEnableCustomCursorWidth)); + f->setSuffix(__tr2qs_ctx(" px","options")); connect(d,SIGNAL(toggled(bool)),f,SLOT(setEnabled(bool))); addRowSpacer(0,8,0,8); } |
