1/* Copyright (C) 2013 Canonical, Ltd.
4 * Michael Zanetti <michael.zanetti@canonical.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 3.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19#include "quicklistmodel.h"
21QuickListModel::QuickListModel(QObject *parent) :
22 QuickListModelInterface(parent)
27QuickListModel::~QuickListModel()
32void QuickListModel::appendAction(const QuickListEntry &entry)
34 beginInsertRows(QModelIndex(), m_list.count() - 1, m_list.count() -1);
39QuickListEntry QuickListModel::get(int index) const
41 return m_list.at(index);
44int QuickListModel::rowCount(const QModelIndex &index) const
47 return m_list.count();
50QVariant QuickListModel::data(const QModelIndex &index, int role) const
54 return m_list.at(index.row()).text();
56 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