<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl -w
# This file was preprocessed, do not edit!
package Debconf::Element::Kde::Select;
use strict;
use Qt;
use base qw(Debconf::Element::Kde Debconf::Element::Select);
use Debconf::Encoding qw(to_Unicode);
sub create {
	my $this=shift;
	
	my $default=$this-&gt;translate_default;
	my @choices=map { to_Unicode($_) } $this-&gt;question-&gt;choices_split;
	
	$this-&gt;SUPER::create(@_);
	$this-&gt;startsect;
	$this-&gt;widget(Qt::ComboBox($this-&gt;cur-&gt;top));
	$this-&gt;widget-&gt;show;
	$this-&gt;widget-&gt;insertStringList(\@choices, 0);
	if (defined($default) and length($default) != 0) {
		$this-&gt;widget-&gt;setCurrentText(to_Unicode($default));
	}
	$this-&gt;addhelp;
	my $b = $this-&gt;addhbox;
	$b-&gt;addWidget($this-&gt;description);
	$b-&gt;addWidget($this-&gt;widget);
	$this-&gt;endsect;
}
sub value {
	my $this=shift;
	
	my @choices=$this-&gt;question-&gt;choices_split;
	return $this-&gt;translate_to_C_uni($this-&gt;widget-&gt;currentText());
}
1
</pre></body></html>