namespace views {
namespace trace {
+/**
+ * The Flag class represents items on the @ref Ruler that mark important
+ * events on the timeline to the user. They are editable and thus non-static.
+ */
class Flag : public TimeMarker, public enable_shared_from_this<Flag>
{
Q_OBJECT
public:
- static const QColor FillColour;
+ static const QColor FillColor;
public:
/**
/**
* Returns true if the item is visible and enabled.
*/
- bool enabled() const;
+ virtual bool enabled() const override;
/**
* Gets the text to show in the marker.
*/
- QString get_text() const;
+ virtual QString get_text() const override;
+
+ virtual pv::widgets::Popup* create_popup(QWidget *parent) override;
- pv::widgets::Popup* create_popup(QWidget *parent);
+ virtual QMenu* create_header_context_menu(QWidget *parent) override;
- QMenu* create_context_menu(QWidget *parent);
+ virtual void delete_pressed() override;
- void delete_pressed();
+ QRectF label_rect(const QRectF &rect) const override;
private Q_SLOTS:
void on_delete();