Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/kis_config.cc
| Show First 20 Lines • Show All 1741 Lines • ▼ Show 20 Line(s) | 1741 | return defaultValue ? | |||
|---|---|---|---|---|---|
| 1742 | defaultSampleSize : m_cfg.readEntry("stabilizerSampleSize", defaultSampleSize); | 1742 | defaultSampleSize : m_cfg.readEntry("stabilizerSampleSize", defaultSampleSize); | ||
| 1743 | } | 1743 | } | ||
| 1744 | 1744 | | |||
| 1745 | void KisConfig::setStabilizerSampleSize(int value) | 1745 | void KisConfig::setStabilizerSampleSize(int value) | ||
| 1746 | { | 1746 | { | ||
| 1747 | m_cfg.writeEntry("stabilizerSampleSize", value); | 1747 | m_cfg.writeEntry("stabilizerSampleSize", value); | ||
| 1748 | } | 1748 | } | ||
| 1749 | 1749 | | |||
| 1750 | int KisConfig::stabilizerDelayedPaintInterval(bool defaultValue) const | 1750 | bool KisConfig::stabilizerDelayedPaint(bool defaultValue) const | ||
| 1751 | { | 1751 | { | ||
| 1752 | const int defaultInterval = 20; | 1752 | const bool defaultEnabled = true; | ||
| 1753 | 1753 | | |||
| 1754 | return defaultValue ? | 1754 | return defaultValue ? | ||
| 1755 | defaultInterval : m_cfg.readEntry("stabilizerDelayedPaintInterval", defaultInterval); | 1755 | defaultEnabled : m_cfg.readEntry("stabilizerDelayedPaint", defaultEnabled); | ||
| 1756 | } | 1756 | } | ||
| 1757 | 1757 | | |||
| 1758 | void KisConfig::setStabilizerDelayedPaintInterval(int value) | 1758 | void KisConfig::setStabilizerDelayedPaint(bool value) | ||
| 1759 | { | 1759 | { | ||
| 1760 | m_cfg.writeEntry("stabilizerDelayedPaintInterval", value); | 1760 | m_cfg.writeEntry("stabilizerDelayedPaint", value); | ||
| 1761 | } | 1761 | } | ||
| 1762 | 1762 | | |||
| 1763 | QString KisConfig::customFFMpegPath(bool defaultValue) const | 1763 | QString KisConfig::customFFMpegPath(bool defaultValue) const | ||
| 1764 | { | 1764 | { | ||
| 1765 | return defaultValue ? QString() : m_cfg.readEntry("ffmpegExecutablePath", QString()); | 1765 | return defaultValue ? QString() : m_cfg.readEntry("ffmpegExecutablePath", QString()); | ||
| 1766 | } | 1766 | } | ||
| 1767 | 1767 | | |||
| 1768 | void KisConfig::setCustomFFMpegPath(const QString &value) const | 1768 | void KisConfig::setCustomFFMpegPath(const QString &value) const | ||
| ▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines | |||||