Changeset View
Changeset View
Standalone View
Standalone View
src/browsers/playlistbrowser/PodcastCategory.cpp
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 81 | { | |||
---|---|---|---|---|---|
92 | // set background | 92 | // set background | ||
93 | if( AmarokConfig::showBrowserBackgroundImage() ) | 93 | if( AmarokConfig::showBrowserBackgroundImage() ) | ||
94 | setBackgroundImage( imagePath() ); | 94 | setBackgroundImage( imagePath() ); | ||
95 | 95 | | |||
96 | QAction *addPodcastAction = new QAction( QIcon::fromTheme( "list-add-amarok" ), i18n("&Add Podcast"), | 96 | QAction *addPodcastAction = new QAction( QIcon::fromTheme( "list-add-amarok" ), i18n("&Add Podcast"), | ||
97 | m_toolBar ); | 97 | m_toolBar ); | ||
98 | addPodcastAction->setPriority( QAction::NormalPriority ); | 98 | addPodcastAction->setPriority( QAction::NormalPriority ); | ||
99 | m_toolBar->insertAction( m_separator, addPodcastAction ); | 99 | m_toolBar->insertAction( m_separator, addPodcastAction ); | ||
100 | connect( addPodcastAction, SIGNAL(triggered(bool)), The::podcastModel(), SLOT(addPodcast()) ); | 100 | connect( addPodcastAction, &QAction::triggered, The::podcastModel(), &PodcastModel::addPodcast ); | ||
101 | 101 | | |||
102 | QAction *updateAllAction = new QAction( QIcon::fromTheme("view-refresh-amarok"), QString(), m_toolBar ); | 102 | QAction *updateAllAction = new QAction( QIcon::fromTheme("view-refresh-amarok"), QString(), m_toolBar ); | ||
103 | updateAllAction->setToolTip( i18n("&Update All") ); | 103 | updateAllAction->setToolTip( i18n("&Update All") ); | ||
104 | updateAllAction->setPriority( QAction::LowPriority ); | 104 | updateAllAction->setPriority( QAction::LowPriority ); | ||
105 | m_toolBar->insertAction( m_separator, updateAllAction ); | 105 | m_toolBar->insertAction( m_separator, updateAllAction ); | ||
106 | connect( updateAllAction, SIGNAL(triggered(bool)), | 106 | connect( updateAllAction, &QAction::triggered, | ||
107 | The::podcastModel(), SLOT(refreshPodcasts()) ); | 107 | The::podcastModel(), &PodcastModel::refreshPodcasts ); | ||
108 | 108 | | |||
109 | 109 | | |||
110 | QAction *importOpmlAction = new QAction( QIcon::fromTheme("document-import") | 110 | QAction *importOpmlAction = new QAction( QIcon::fromTheme("document-import") | ||
111 | , i18n( "Import OPML File" ) | 111 | , i18n( "Import OPML File" ) | ||
112 | , m_toolBar | 112 | , m_toolBar | ||
113 | ); | 113 | ); | ||
114 | importOpmlAction->setToolTip( i18n( "Import OPML File" ) ); | 114 | importOpmlAction->setToolTip( i18n( "Import OPML File" ) ); | ||
115 | importOpmlAction->setPriority( QAction::LowPriority ); | 115 | importOpmlAction->setPriority( QAction::LowPriority ); | ||
116 | m_toolBar->addAction( importOpmlAction ); | 116 | m_toolBar->addAction( importOpmlAction ); | ||
117 | connect( importOpmlAction, SIGNAL(triggered()), SLOT(slotImportOpml()) ); | 117 | connect( importOpmlAction, &QAction::triggered, this, &PodcastCategory::slotImportOpml ); | ||
118 | 118 | | |||
119 | PlaylistBrowserView *view = static_cast<PlaylistBrowserView*>( playlistView() ); | 119 | PlaylistBrowserView *view = static_cast<PlaylistBrowserView*>( playlistView() ); | ||
120 | connect( view, SIGNAL(currentItemChanged(QModelIndex)), SLOT(showInfo(QModelIndex)) ); | 120 | connect( view, &PlaylistBrowserView::currentItemChanged, this, &PodcastCategory::showInfo ); | ||
121 | 121 | | |||
122 | //transparency | 122 | //transparency | ||
123 | // QPalette p = m_podcastTreeView->palette(); | 123 | // QPalette p = m_podcastTreeView->palette(); | ||
124 | // QColor c = p.color( QPalette::Base ); | 124 | // QColor c = p.color( QPalette::Base ); | ||
125 | // c.setAlpha( 0 ); | 125 | // c.setAlpha( 0 ); | ||
126 | // p.setColor( QPalette::Base, c ); | 126 | // p.setColor( QPalette::Base, c ); | ||
127 | // | 127 | // | ||
128 | // c = p.color( QPalette::AlternateBase ); | 128 | // c = p.color( QPalette::AlternateBase ); | ||
▲ Show 20 Lines • Show All 155 Lines • Show Last 20 Lines |