TDE 0.1.0
 
Loading...
Searching...
No Matches
tde::widgets::AppItem Class Reference

Application item widget. More...

#include <appitem.hpp>

Inheritance diagram for tde::widgets::AppItem:

Signals

void request_launch_app (const app::Info &app)
 Emitted when the app is requested to be launched.
 

Public Member Functions

 AppItem (const app::Info &app, QWidget *parent=nullptr)
 Construct a new App Item object.
 
TDE_INLINE auto & exec () const
 Get the exec command.
 
app::Info to_app_info () const
 Convert the app item to app info.
 

Static Public Attributes

static constexpr int ICON_SIZE
 

Detailed Description

Application item widget.

Constructor & Destructor Documentation

◆ AppItem()

tde::widgets::AppItem::AppItem ( const app::Info app,
QWidget *  parent = nullptr 
)

Construct a new App Item object.

Parameters
appApp info.
parentParent widget.

Member Function Documentation

◆ exec()

TDE_INLINE auto & tde::widgets::AppItem::exec ( ) const
inline

Get the exec command.

Returns
QString Exec command.

◆ request_launch_app

void tde::widgets::AppItem::request_launch_app ( const app::Info app)
signal

Emitted when the app is requested to be launched.

Parameters
appApp info.

◆ to_app_info()

app::Info tde::widgets::AppItem::to_app_info ( ) const

Convert the app item to app info.

Returns
app::Info App info.

Member Data Documentation

◆ ICON_SIZE

constexpr int tde::widgets::AppItem::ICON_SIZE
staticconstexpr
Initial value:
=
48

Default icon size, which is immutable now.


The documentation for this class was generated from the following files: