Application item widget.
More...
#include <appitem.hpp>
|
| 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.
|
|
◆ AppItem()
tde::widgets::AppItem::AppItem |
( |
const app::Info & |
app, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
Construct a new App Item object.
- Parameters
-
app | App info. |
parent | Parent widget. |
◆ 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
-
◆ to_app_info()
app::Info tde::widgets::AppItem::to_app_info |
( |
| ) |
const |
Convert the app item to app info.
- Returns
- app::Info App info.
◆ ICON_SIZE
constexpr int tde::widgets::AppItem::ICON_SIZE |
|
staticconstexpr |
Initial value:Default icon size, which is immutable now.
The documentation for this class was generated from the following files:
- include/tde/widgets/appitem.hpp
- src/widgets/appitem.cpp