File indexing completed on 2024-04-21 16:32:36

0001 /***************************************************************************
0002                        starttupinfo.cüü  -  description
0003                              -------------------
0004     begin                : Sat Oct 18 2009
0005     copyright            : (C) 2009 by Dominik Seichter
0006     email                : domseichter@web.de
0007 ***************************************************************************/
0008 
0009 /***************************************************************************
0010  *                                                                         *
0011  *   This program is free software; you can redistribute it and/or modify  *
0012  *   it under the terms of the GNU General Public License as published by  *
0013  *   the Free Software Foundation; either version 2 of the License, or     *
0014  *   (at your option) any later version.                                   *
0015  *                                                                         *
0016  ***************************************************************************/
0017 
0018 #include "startupinfo.h"
0019 
0020 #include "ui_startupinfowidget.h"
0021 
0022 #include <QIcon>
0023 
0024 #include <kiconloader.h>
0025 
0026 StartUpInfo::StartUpInfo(QWidget *parent)
0027     : QFrame(parent)
0028 {
0029     m_widget = new Ui::StartUpInfoWidget();
0030     m_widget->setupUi(this);
0031 
0032     m_widget->krenameIcon->setPixmap(QIcon::fromTheme("krename").pixmap(KIconLoader::SizeMedium));
0033     m_widget->addIcon->setPixmap(QIcon::fromTheme("document-open-folder").pixmap(KIconLoader::SizeSmallMedium));
0034     m_widget->templateIcon->setPixmap(QIcon::fromTheme("edit-rename").pixmap(KIconLoader::SizeSmallMedium));
0035 
0036     connect(m_widget->labelAdd, static_cast<void (KUrlLabel::*)()>(&KUrlLabel::leftClickedUrl),
0037             this, &StartUpInfo::addFiles);
0038     connect(m_widget->labelTemplate, static_cast<void (KUrlLabel::*)()>(&KUrlLabel::leftClickedUrl),
0039             this, &StartUpInfo::enterTemplate);
0040 }
0041 
0042 StartUpInfo::~StartUpInfo()
0043 {
0044     delete m_widget;
0045 }
0046