1
/****************************************************************************
2
** ui.h extension file, included from the uic-generated form implementation.
4
** If you wish to add, delete or rename functions or slots use
5
** Qt Designer which will update this file, preserving your code. Create an
6
** init() function in place of a constructor, and a destroy() function in
7
** place of a destructor.
8
*****************************************************************************/
10
#include <qdatetime.h>
12
void IconsetDetailsDlg::setIconset( const Iconset &is )
14
setCaption(caption().arg(is.name()));
16
lb_name->setText(is.name());
17
lb_version->setText(is.version());
19
if ( is.description().isEmpty() ) {
24
lb_desc->setText(is.description());
26
if ( !is.homeUrl().isEmpty() ) {
27
url_home->setTitle(is.homeUrl());
28
url_home->setUrl(is.homeUrl());
35
if ( is.creation().isEmpty() ) {
40
QDate date = QDate::fromString(is.creation(), ISODate);
41
lb_date->setText(date.toString(LocalDate));
44
if ( is.authors().count() == 0 ) {
50
QStringList::ConstIterator it = is.authors().begin();
51
for ( ; it != is.authors().end(); ++it) {
52
if ( !authors.isEmpty() )
53
authors += "<br><br>";
56
ptv_authors->setText( "<qt><nobr>" + authors + "</nobr></qt>" );
59
isd_iconset->setIconset(is);