Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/DeviceComboBox.qml
Show All 14 Lines | 1 | /* | |||
---|---|---|---|---|---|
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | 16 | GNU General Public License for more details. | ||
17 | 17 | | |||
18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | import QtQuick 2.0 | 22 | import QtQuick 2.0 | ||
23 | import QtQuick.Controls 1.3 | 23 | import QtQuick.Controls 2.0 | ||
24 | 24 | | |||
25 | ComboBox { | 25 | ComboBox { | ||
26 | onModelChanged: updateIndex() | 26 | onModelChanged: updateIndex() | ||
27 | onCountChanged: updateIndex() | 27 | onCountChanged: updateIndex() | ||
28 | 28 | | |||
29 | onActivated: { | 29 | onActivated: { | ||
30 | if (index === -1) { | 30 | if (index === -1) { | ||
31 | return; | 31 | return; | ||
Show All 34 Lines |