Changeset View
Changeset View
Standalone View
Standalone View
src/kcombobox.cpp
Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Line(s) | 118 | { | |||
---|---|---|---|---|---|
128 | } | 128 | } | ||
129 | } | 129 | } | ||
130 | 130 | | |||
131 | bool KComboBox::autoCompletion() const | 131 | bool KComboBox::autoCompletion() const | ||
132 | { | 132 | { | ||
133 | return completionMode() == KCompletion::CompletionAuto; | 133 | return completionMode() == KCompletion::CompletionAuto; | ||
134 | } | 134 | } | ||
135 | 135 | | |||
136 | #ifndef KCOMPLETION_NO_DEPRECATED | 136 | #if KCOMPLETION_BUILD_DEPRECATED_SINCE(4, 5) | ||
137 | void KComboBox::setContextMenuEnabled(bool showMenu) | 137 | void KComboBox::setContextMenuEnabled(bool showMenu) | ||
138 | { | 138 | { | ||
139 | Q_D(KComboBox); | 139 | Q_D(KComboBox); | ||
140 | if (d->klineEdit) { | 140 | if (d->klineEdit) { | ||
141 | d->klineEdit->setContextMenuPolicy(showMenu ? Qt::DefaultContextMenu : Qt::NoContextMenu); | 141 | d->klineEdit->setContextMenuPolicy(showMenu ? Qt::DefaultContextMenu : Qt::NoContextMenu); | ||
142 | } | 142 | } | ||
143 | } | 143 | } | ||
144 | #endif | ||||
144 | 145 | | |||
146 | #if KCOMPLETION_BUILD_DEPRECATED_SINCE(5, 0) | ||||
145 | void KComboBox::setUrlDropsEnabled(bool enable) | 147 | void KComboBox::setUrlDropsEnabled(bool enable) | ||
146 | { | 148 | { | ||
147 | Q_D(KComboBox); | 149 | Q_D(KComboBox); | ||
148 | if (d->klineEdit) { | 150 | if (d->klineEdit) { | ||
149 | d->klineEdit->setUrlDropsEnabled(enable); | 151 | d->klineEdit->setUrlDropsEnabled(enable); | ||
150 | } | 152 | } | ||
151 | } | 153 | } | ||
152 | #endif | 154 | #endif | ||
▲ Show 20 Lines • Show All 256 Lines • Show Last 20 Lines |