36 lines
533 B
C++
Executable File
36 lines
533 B
C++
Executable File
|
|
|
|
|
|
#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());
|
|
|
|
return true;
|
|
}
|
|
|
|
}
|