Place tune-in search button on item
This commit is contained in:
committed by
craig.p.drummond
parent
ceae5ce8a3
commit
069b4668f5
@@ -572,6 +572,9 @@ QVariant StreamsModel::data(const QModelIndex &index, int role) const
|
||||
if (static_cast<const CategoryItem *>(item)->canReload()) {
|
||||
actions << reloadAction;
|
||||
}
|
||||
if (tuneIn==item) {
|
||||
actions << StdActions::self()->searchAction;
|
||||
}
|
||||
if (static_cast<const CategoryItem *>(item)->canBookmark) {
|
||||
actions << addBookmarkAction;
|
||||
}
|
||||
|
||||
@@ -63,9 +63,6 @@ StreamsPage::StreamsPage(QWidget *p)
|
||||
addAction = ActionCollection::get()->createAction("addstream", i18n("Add New Stream To Favourites"), Icons::self()->addRadioStreamIcon);
|
||||
editAction = ActionCollection::get()->createAction("editstream", i18n("Edit"), Icons::self()->editIcon);
|
||||
replacePlayQueue->setDefaultAction(StdActions::self()->replacePlayQueueAction);
|
||||
searchButton->setDefaultAction(StdActions::self()->searchAction);
|
||||
searchButton->setToolTip(i18n("Search TuneIn For Streams"));
|
||||
searchButton->setIcon(StreamsModel::self()->tuneInIcon());
|
||||
// connect(view, SIGNAL(itemsSelected(bool)), addToPlaylist, SLOT(setEnabled(bool)));
|
||||
connect(view, SIGNAL(doubleClicked(const QModelIndex &)), this, SLOT(itemDoubleClicked(const QModelIndex &)));
|
||||
connect(view, SIGNAL(searchIsActive(bool)), this, SLOT(controlSearch(bool)));
|
||||
|
||||
@@ -49,9 +49,6 @@
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="ToolButton" name="searchButton"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="diStatusLabel">
|
||||
<property name="font">
|
||||
|
||||
Reference in New Issue
Block a user