File indexing completed on 2022-09-27 16:33:57

0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 // SPDX-FileCopyrightText: 2009 Dominik Seichter <domseichter@web.de>
0003 
0004 #include "startupinfo.h"
0005 
0006 #include "ui_startupinfowidget.h"
0007 
0008 #include <QIcon>
0009 
0010 #include <kiconloader.h>
0011 
0012 StartUpInfo::StartUpInfo(QWidget *parent)
0013     : QFrame(parent)
0014 {
0015     m_widget = new Ui::StartUpInfoWidget();
0016     m_widget->setupUi(this);
0017 
0018     m_widget->krenameIcon->setPixmap(QIcon::fromTheme("krename").pixmap(KIconLoader::SizeMedium));
0019     m_widget->addIcon->setPixmap(QIcon::fromTheme("document-open-folder").pixmap(KIconLoader::SizeSmallMedium));
0020     m_widget->templateIcon->setPixmap(QIcon::fromTheme("edit-rename").pixmap(KIconLoader::SizeSmallMedium));
0021 
0022     connect(m_widget->labelAdd, static_cast<void (KUrlLabel::*)()>(&KUrlLabel::leftClickedUrl),
0023             this, &StartUpInfo::addFiles);
0024     connect(m_widget->labelTemplate, static_cast<void (KUrlLabel::*)()>(&KUrlLabel::leftClickedUrl),
0025             this, &StartUpInfo::enterTemplate);
0026 }
0027 
0028 StartUpInfo::~StartUpInfo()
0029 {
0030     delete m_widget;
0031 }
0032