Skip to content

Commit

Permalink
[0.21.0] Remove Item::hasActions
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelSchneid3r committed Jun 23, 2023
1 parent 6a711e5 commit 55ab5f7
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion include/albert/extensions/item.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class ALBERT_EXPORT Item ///< Items displayed in the query results list
/// '<path>' is interpreted as path to a local image file.
virtual QStringList iconUrls() const = 0;
virtual QString inputActionText() const; ///< Input replacement for input action (usually Tab)
virtual bool hasActions() const; ///< Indicates that the item has actions
virtual std::vector<Action> actions() const; ///< List of item actions
};

Expand Down
1 change: 0 additions & 1 deletion include/albert/util/standarditem.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ struct ALBERT_EXPORT StandardItem : public Item
QString subtext() const override;
QString inputActionText() const override;
QStringList iconUrls() const override;
bool hasActions() const override;
std::vector<Action> actions() const override;

static std::shared_ptr<StandardItem> make(
Expand Down
2 changes: 1 addition & 1 deletion plugins
2 changes: 0 additions & 2 deletions src/extensions/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ Action::Action(QString i, QString t, std::function<void()> f):

QString Item::inputActionText() const { return {}; }

bool Item::hasActions() const { return true; }

std::vector<Action> Item::actions() const { return {}; }
1 change: 0 additions & 1 deletion src/util/standarditem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ QString StandardItem::text() const { return text_; }
QString StandardItem::subtext() const { return subtext_; }
QString StandardItem::inputActionText() const { return input_action_text_; }
QStringList StandardItem::iconUrls() const { return icon_urls_; }
bool StandardItem::hasActions() const { return !actions_.empty(); }
std::vector<Action> StandardItem::actions() const { return actions_; }


Expand Down

0 comments on commit 55ab5f7

Please sign in to comment.