ember/ui/welcome/recentprojectwidget.h

44 lines
813 B
C
Raw Permalink Normal View History

#ifndef RECENTPROJECTWIDGET_H
#define RECENTPROJECTWIDGET_H
#include <QWidget>
#include <model/project.h>
namespace Ui {
class RecentProjectWidget;
}
namespace Ember {
class RecentProjectWidget : public QWidget
{
Q_OBJECT
public:
explicit RecentProjectWidget(RecentProject project, QWidget *parent = 0);
virtual ~RecentProjectWidget();
const RecentProject& project() const;
void setSelected(bool selected);
signals:
void deleted(const RecentProject& project);
void pinToggled(const RecentProject& project, bool pinned);
private slots:
void onDeleteClicked();
void onPinToggled(bool pinned);
private:
void setupUi();
void setupActions();
Ui::RecentProjectWidget *ui;
RecentProject m_project;
bool m_selected;
};
}
#endif // RECENTPROJECTWIDGET_H