1#include "appdrawermodel.h"
6#include <ubuntu-app-launch/registry.h>
8AppDrawerModel::AppDrawerModel(QObject *parent):
9 AppDrawerModelInterface(parent)
11 Q_FOREACH (const QString &appId, UalWrapper::installedApps()) {
12 UalWrapper::AppInfo info = UalWrapper::getApplicationInfo(appId);
14 qWarning() << "Failed to get app info for app" << appId;
17 m_list.append(new LauncherItem(appId, info.name, info.icon, this));
18 qDebug() << "added" << appId;
22int AppDrawerModel::rowCount(const QModelIndex &parent) const
24 return m_list.count();
27QVariant AppDrawerModel::data(const QModelIndex &index, int role) const
31 return m_list.at(index.row())->appId();
33 return m_list.at(index.row())->name();
35 return m_list.at(index.row())->icon();
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