Changeset View
Changeset View
Standalone View
Standalone View
src/EditProfileDialog.cpp
Show First 20 Lines • Show All 1423 Lines • ▼ Show 20 Line(s) | 1416 | const auto options = QVector<BooleanOption>{ | |||
---|---|---|---|---|---|
1424 | }, | 1424 | }, | ||
1425 | { | 1425 | { | ||
1426 | _ui->enableBlinkingCursorButton, Profile::BlinkingCursorEnabled, | 1426 | _ui->enableBlinkingCursorButton, Profile::BlinkingCursorEnabled, | ||
1427 | SLOT(toggleBlinkingCursor(bool)) | 1427 | SLOT(toggleBlinkingCursor(bool)) | ||
1428 | }, | 1428 | }, | ||
1429 | { | 1429 | { | ||
1430 | _ui->enableBidiRenderingButton, Profile::BidiRenderingEnabled, | 1430 | _ui->enableBidiRenderingButton, Profile::BidiRenderingEnabled, | ||
1431 | SLOT(togglebidiRendering(bool)) | 1431 | SLOT(togglebidiRendering(bool)) | ||
1432 | }, | ||||
1433 | { | ||||
1434 | _ui->enableReverseUrlHints, Profile::ReverseUrlHints, | ||||
1435 | SLOT(toggleReverseUrlHints(bool)) | ||||
1432 | } | 1436 | } | ||
1433 | }; | 1437 | }; | ||
1434 | setupCheckBoxes(options, profile); | 1438 | setupCheckBoxes(options, profile); | ||
1435 | 1439 | | |||
1436 | // Setup the URL hints modifier checkboxes | 1440 | // Setup the URL hints modifier checkboxes | ||
1437 | { | 1441 | { | ||
1438 | int modifiers = profile->property<int>(Profile::UrlHintsModifiers); | 1442 | int modifiers = profile->property<int>(Profile::UrlHintsModifiers); | ||
1439 | _ui->urlHintsModifierShift->setChecked((modifiers &Qt::ShiftModifier) != 0u); | 1443 | _ui->urlHintsModifierShift->setChecked((modifiers &Qt::ShiftModifier) != 0u); | ||
▲ Show 20 Lines • Show All 167 Lines • ▼ Show 20 Line(s) | 1610 | if (_ui->urlHintsModifierAlt->isChecked()) { | |||
1607 | modifiers |= Qt::AltModifier; | 1611 | modifiers |= Qt::AltModifier; | ||
1608 | } | 1612 | } | ||
1609 | if (_ui->urlHintsModifierMeta->isChecked()) { | 1613 | if (_ui->urlHintsModifierMeta->isChecked()) { | ||
1610 | modifiers |= Qt::MetaModifier; | 1614 | modifiers |= Qt::MetaModifier; | ||
1611 | } | 1615 | } | ||
1612 | updateTempProfileProperty(Profile::UrlHintsModifiers, int(modifiers)); | 1616 | updateTempProfileProperty(Profile::UrlHintsModifiers, int(modifiers)); | ||
1613 | } | 1617 | } | ||
1614 | 1618 | | |||
1619 | void EditProfileDialog::toggleReverseUrlHints(bool enable) | ||||
1620 | { | ||||
1621 | updateTempProfileProperty(Profile::ReverseUrlHints, enable); | ||||
1622 | } | ||||
1623 | | ||||
1615 | void EditProfileDialog::toggleBlinkingText(bool enable) | 1624 | void EditProfileDialog::toggleBlinkingText(bool enable) | ||
1616 | { | 1625 | { | ||
1617 | updateTempProfileProperty(Profile::BlinkingTextEnabled, enable); | 1626 | updateTempProfileProperty(Profile::BlinkingTextEnabled, enable); | ||
1618 | } | 1627 | } | ||
1619 | 1628 | | |||
1620 | void EditProfileDialog::toggleFlowControl(bool enable) | 1629 | void EditProfileDialog::toggleFlowControl(bool enable) | ||
1621 | { | 1630 | { | ||
1622 | updateTempProfileProperty(Profile::FlowControlEnabled, enable); | 1631 | updateTempProfileProperty(Profile::FlowControlEnabled, enable); | ||
▲ Show 20 Lines • Show All 127 Lines • Show Last 20 Lines |