Changeset View
Changeset View
Standalone View
Standalone View
src/EditProfileDialog.cpp
Show First 20 Lines • Show All 1572 Lines • ▼ Show 20 Line(s) | 1547 | { | |||
---|---|---|---|---|---|
1573 | 1573 | | |||
1574 | const auto pageamounts = QVector<RadioOption>{ | 1574 | const auto pageamounts = QVector<RadioOption>{ | ||
1575 | {_scrollingUi->scrollHalfPage, Enum::ScrollPageHalf, SLOT(scrollHalfPage())}, | 1575 | {_scrollingUi->scrollHalfPage, Enum::ScrollPageHalf, SLOT(scrollHalfPage())}, | ||
1576 | {_scrollingUi->scrollFullPage, Enum::ScrollPageFull, SLOT(scrollFullPage())} | 1576 | {_scrollingUi->scrollFullPage, Enum::ScrollPageFull, SLOT(scrollFullPage())} | ||
1577 | }; | 1577 | }; | ||
1578 | 1578 | | |||
1579 | setupRadio(pageamounts, scrollFullPage); | 1579 | setupRadio(pageamounts, scrollFullPage); | ||
1580 | 1580 | | |||
1581 | | ||||
1582 | const auto options = QVector<BooleanOption>{ | ||||
1583 | {_scrollingUi->highlightScrolledLinesButton, Profile::HighlightScrolledLines, SLOT(toggleHighlightScrolledLines(bool))} | ||||
1584 | }; | ||||
1585 | setupCheckBoxes(options, profile); | ||||
1586 | | ||||
1581 | // signals and slots | 1587 | // signals and slots | ||
1582 | connect(_scrollingUi->historySizeWidget, &Konsole::HistorySizeWidget::historySizeChanged, this, | 1588 | connect(_scrollingUi->historySizeWidget, &Konsole::HistorySizeWidget::historySizeChanged, this, | ||
1583 | &Konsole::EditProfileDialog::historySizeChanged); | 1589 | &Konsole::EditProfileDialog::historySizeChanged); | ||
1584 | } | 1590 | } | ||
1585 | 1591 | | |||
1586 | void EditProfileDialog::historySizeChanged(int lineCount) | 1592 | void EditProfileDialog::historySizeChanged(int lineCount) | ||
1587 | { | 1593 | { | ||
1588 | updateTempProfileProperty(Profile::HistorySize, lineCount); | 1594 | updateTempProfileProperty(Profile::HistorySize, lineCount); | ||
Show All 9 Lines | 1603 | { | |||
1598 | updateTempProfileProperty(Profile::ScrollFullPage, Enum::ScrollPageFull); | 1604 | updateTempProfileProperty(Profile::ScrollFullPage, Enum::ScrollPageFull); | ||
1599 | } | 1605 | } | ||
1600 | 1606 | | |||
1601 | void EditProfileDialog::scrollHalfPage() | 1607 | void EditProfileDialog::scrollHalfPage() | ||
1602 | { | 1608 | { | ||
1603 | updateTempProfileProperty(Profile::ScrollFullPage, Enum::ScrollPageHalf); | 1609 | updateTempProfileProperty(Profile::ScrollFullPage, Enum::ScrollPageHalf); | ||
1604 | } | 1610 | } | ||
1605 | 1611 | | |||
1612 | void EditProfileDialog::toggleHighlightScrolledLines(bool enable) | ||||
1613 | { | ||||
1614 | updateTempProfileProperty(Profile::HighlightScrolledLines, enable); | ||||
1615 | } | ||||
1616 | | ||||
1606 | void EditProfileDialog::setupMousePage(const Profile::Ptr &profile) | 1617 | void EditProfileDialog::setupMousePage(const Profile::Ptr &profile) | ||
1607 | { | 1618 | { | ||
1608 | const auto options = QVector<BooleanOption>{ | 1619 | const auto options = QVector<BooleanOption>{ | ||
1609 | { | 1620 | { | ||
1610 | _mouseUi->underlineLinksButton, Profile::UnderlineLinksEnabled, | 1621 | _mouseUi->underlineLinksButton, Profile::UnderlineLinksEnabled, | ||
1611 | SLOT(toggleUnderlineLinks(bool)) | 1622 | SLOT(toggleUnderlineLinks(bool)) | ||
1612 | }, | 1623 | }, | ||
1613 | { | 1624 | { | ||
▲ Show 20 Lines • Show All 342 Lines • Show Last 20 Lines |