43 lines
776 B
C++
Executable File
43 lines
776 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* CustomView for App
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*
|
|
* Created by Mike Wille, SLSE, 2016-11-11
|
|
*/
|
|
|
|
#include "app.h"
|
|
#include "ui_app.h"
|
|
#include "AppChooser/app_chooser_model.h"
|
|
|
|
|
|
namespace LtsAppManager
|
|
{
|
|
|
|
CustomViewApp::CustomViewApp(QWidget *parent)
|
|
: AbstractDisplayWidget(parent)
|
|
, m_ui(new Ui::CustomViewApp)
|
|
{
|
|
m_ui->setupUi(this);
|
|
m_ui->image->setMenuEnabled(false);
|
|
}
|
|
|
|
CustomViewApp::~CustomViewApp()
|
|
{
|
|
delete m_ui;
|
|
}
|
|
|
|
bool CustomViewApp::init(const QModelIndex &idx)
|
|
{
|
|
if (!idx.isValid())
|
|
return false;
|
|
|
|
m_ui->lbAppName->setText(rowData(idx, AppChooserModel::Name).toString());
|
|
//m_ui->lbDescription->setText(rowData(idx, AppChooserModel::Description).toString());
|
|
return true;
|
|
}
|
|
|
|
} // namespace LtsAppManager
|