2 * Copyright (C) 2013, 2014 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
27class Q_DECL_EXPORT Preview : public QObject
31 Q_PROPERTY(QString rendererName READ rendererName NOTIFY previewChanged)
32 Q_PROPERTY(QString title READ title NOTIFY previewChanged)
33 Q_PROPERTY(QString subtitle READ subtitle NOTIFY previewChanged)
34 Q_PROPERTY(QString description READ description NOTIFY previewChanged)
35 Q_PROPERTY(QVariant actions READ actions NOTIFY previewChanged)
36 Q_PROPERTY(QVariant infoHints READ infoHints NOTIFY previewChanged)
37 Q_PROPERTY(QVariantMap infoMap READ infoHintsHash NOTIFY previewChanged)
38 Q_PROPERTY(QString image READ image NOTIFY previewChanged)
41 explicit Preview(const QString &rendererName, QObject *parent = 0);
43 QString rendererName() const;
44 QString title() const;
45 QString subtitle() const;
46 QString description() const;
49 QVariantMap infoHintsHash() const;
50 QString image() const;
52 Q_INVOKABLE void execute(const QString& actionId, const QHash<QString, QVariant>& hints);
54 Q_INVOKABLE void cancelAction();
57 void previewChanged();
60 QString m_rendererName;
63Q_DECLARE_METATYPE(Preview *)
65#endif // FAKE_PREVIEW_H
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