1#include "appdrawermodel.h"
7AppDrawerModel::AppDrawerModel(QObject *parent):
8 AppDrawerModelInterface(parent)
10 Q_FOREACH (const QString &appId, UalWrapper::installedApps()) {
11 UalWrapper::AppInfo info = UalWrapper::getApplicationInfo(appId);
13 qWarning() << "Failed to get app info for app" << appId;
16 m_list.append(new LauncherItem(appId, info.name, info.icon, this));
17 qDebug() << "added" << appId;
19 qsrand(QDateTime::currentMSecsSinceEpoch() / 100);
22int AppDrawerModel::rowCount(const QModelIndex &parent) const
25 return m_list.count();
28QVariant AppDrawerModel::data(const QModelIndex &index, int role) const
32 return m_list.at(index.row())->appId();
34 return m_list.at(index.row())->name();
36 return m_list.at(index.row())->icon();
38 // FIXME: u-a-l needs to provide API for usage stats.
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list