diff --git a/include/albert/extensions/item.h b/include/albert/extensions/item.h index 7962928f..135e92f0 100644 --- a/include/albert/extensions/item.h +++ b/include/albert/extensions/item.h @@ -36,7 +36,6 @@ class ALBERT_EXPORT Item ///< Items displayed in the query results list /// '' 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 actions() const; ///< List of item actions }; diff --git a/include/albert/util/standarditem.h b/include/albert/util/standarditem.h index 4e584bd1..0ebf4530 100644 --- a/include/albert/util/standarditem.h +++ b/include/albert/util/standarditem.h @@ -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 actions() const override; static std::shared_ptr make( diff --git a/plugins b/plugins index e9c39a3c..cf36f3e0 160000 --- a/plugins +++ b/plugins @@ -1 +1 @@ -Subproject commit e9c39a3c7d33290b426a17f6b32dd94d749cae9b +Subproject commit cf36f3e0a78363e72072564889826b20c7900d42 diff --git a/src/extensions/item.cpp b/src/extensions/item.cpp index 0c54a69a..2a3de96a 100644 --- a/src/extensions/item.cpp +++ b/src/extensions/item.cpp @@ -10,6 +10,4 @@ Action::Action(QString i, QString t, std::function f): QString Item::inputActionText() const { return {}; } -bool Item::hasActions() const { return true; } - std::vector Item::actions() const { return {}; } diff --git a/src/util/standarditem.cpp b/src/util/standarditem.cpp index 49c2d921..040b31c0 100644 --- a/src/util/standarditem.cpp +++ b/src/util/standarditem.cpp @@ -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 StandardItem::actions() const { return actions_; }