Skip to content

Commit abe8125

Browse files
committed
Add checkbox to PreferencesDialog for URL finder
Closes #784
1 parent 390a953 commit abe8125

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/NotepadNext/dialogs/PreferencesDialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ PreferencesDialog::PreferencesDialog(ApplicationSettings *settings, QWidget *par
9696
int index = ui->comboBoxLineEndings->findData(defaultEOLMode);
9797
ui->comboBoxLineEndings->setCurrentIndex(index == -1 ? 0 : index);
9898
});
99+
100+
MapSettingToCheckBox(ui->checkBoxHighlightURLs, &ApplicationSettings::urlHighlighting, &ApplicationSettings::setURLHighlighting, &ApplicationSettings::urlHighlightingChanged);
99101
}
100102

101103
PreferencesDialog::~PreferencesDialog()

src/NotepadNext/dialogs/PreferencesDialog.ui

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,13 @@
194194
</item>
195195
</layout>
196196
</item>
197+
<item>
198+
<widget class="QCheckBox" name="checkBoxHighlightURLs">
199+
<property name="text">
200+
<string>Highlight URLs</string>
201+
</property>
202+
</widget>
203+
</item>
197204
<item>
198205
<spacer name="verticalSpacer">
199206
<property name="orientation">
@@ -255,8 +262,8 @@
255262
<slot>accept()</slot>
256263
<hints>
257264
<hint type="sourcelabel">
258-
<x>641</x>
259-
<y>439</y>
265+
<x>792</x>
266+
<y>553</y>
260267
</hint>
261268
<hint type="destinationlabel">
262269
<x>157</x>
@@ -271,8 +278,8 @@
271278
<slot>reject()</slot>
272279
<hints>
273280
<hint type="sourcelabel">
274-
<x>709</x>
275-
<y>439</y>
281+
<x>792</x>
282+
<y>553</y>
276283
</hint>
277284
<hint type="destinationlabel">
278285
<x>286</x>

0 commit comments

Comments
 (0)