Place tune-in search button on item

This commit is contained in:
craig.p.drummond
2013-07-12 19:05:17 +00:00
committed by craig.p.drummond
parent ceae5ce8a3
commit 069b4668f5
3 changed files with 3 additions and 6 deletions

View File

@@ -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;
}

View File

@@ -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)));

View File

@@ -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">