<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::Progress;
use strict;
use QtCore4;
use QtGui4;
use base qw(Debconf::Element::Kde);
use Debconf::Encoding qw(to_Unicode);


sub start {
	my $this=shift;
	my $description=to_Unicode($this-&gt;question-&gt;description);
	my $frontend=$this-&gt;frontend;

	$this-&gt;SUPER::create($frontend-&gt;frame);

	$this-&gt;startsect;
	$this-&gt;addhelp;
	$this-&gt;adddescription;
	my $vbox = Qt::VBoxLayout($this-&gt;widget);

	$this-&gt;progress_bar(Qt::ProgressBar($this-&gt;cur-&gt;top));
	$this-&gt;progress_bar-&gt;setMinimum($this-&gt;progress_min());
	$this-&gt;progress_bar-&gt;setMaximum($this-&gt;progress_max());
	$this-&gt;progress_bar-&gt;show;
	$this-&gt;addwidget($this-&gt;progress_bar);

	$this-&gt;progress_label(Qt::Label($this-&gt;cur-&gt;top));
	$this-&gt;progress_label-&gt;show;
	$this-&gt;addwidget($this-&gt;progress_label);

	$this-&gt;endsect;
}

sub set {
	my $this=shift;
	my $value=shift;


	$this-&gt;progress_cur($value);
	$this-&gt;progress_bar-&gt;setValue($this-&gt;progress_cur);
	return 1;
}

sub info {
	my $this=shift;
	my $question=shift;

	$this-&gt;progress_label-&gt;setText(to_Unicode($question-&gt;description));
	
	return 1;
}

sub stop {
}

1;
</pre></body></html>