Changeset View
Changeset View
Standalone View
Standalone View
src/covermanager/CoverFoundDialog.cpp
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Line(s) | 64 | { | |||
---|---|---|---|---|---|
123 | m_searchButton = new KPushButton( KStandardGuiItem::find(), searchBox ); | 123 | m_searchButton = new KPushButton( KStandardGuiItem::find(), searchBox ); | ||
124 | KPushButton *sourceButton = new KPushButton( KStandardGuiItem::configure(), searchBox ); | 124 | KPushButton *sourceButton = new KPushButton( KStandardGuiItem::configure(), searchBox ); | ||
125 | updateSearchButton( firstRunQuery ); | 125 | updateSearchButton( firstRunQuery ); | ||
126 | 126 | | |||
127 | QMenu *sourceMenu = new QMenu( sourceButton ); | 127 | QMenu *sourceMenu = new QMenu( sourceButton ); | ||
128 | QAction *lastFmAct = new QAction( i18n( "Last.fm" ), sourceMenu ); | 128 | QAction *lastFmAct = new QAction( i18n( "Last.fm" ), sourceMenu ); | ||
129 | QAction *googleAct = new QAction( i18n( "Google" ), sourceMenu ); | 129 | QAction *googleAct = new QAction( i18n( "Google" ), sourceMenu ); | ||
130 | QAction *discogsAct = new QAction( i18n( "Discogs" ), sourceMenu ); | 130 | QAction *discogsAct = new QAction( i18n( "Discogs" ), sourceMenu ); | ||
131 | // TODO: currently broken, re-enable after adjusting to current API/returned doc | ||||
132 | googleAct->setEnabled( false ); | ||||
133 | // TODO: currently broken, re-enable after adjusting to current API/returned doc | ||||
134 | discogsAct->setEnabled( false ); | ||||
131 | lastFmAct->setCheckable( true ); | 135 | lastFmAct->setCheckable( true ); | ||
132 | googleAct->setCheckable( true ); | 136 | googleAct->setCheckable( true ); | ||
133 | discogsAct->setCheckable( true ); | 137 | discogsAct->setCheckable( true ); | ||
134 | connect( lastFmAct, SIGNAL(triggered()), this, SLOT(selectLastFm()) ); | 138 | connect( lastFmAct, SIGNAL(triggered()), this, SLOT(selectLastFm()) ); | ||
135 | connect( googleAct, SIGNAL(triggered()), this, SLOT(selectGoogle()) ); | 139 | connect( googleAct, SIGNAL(triggered()), this, SLOT(selectGoogle()) ); | ||
136 | connect( discogsAct, SIGNAL(triggered()), this, SLOT(selectDiscogs()) ); | 140 | connect( discogsAct, SIGNAL(triggered()), this, SLOT(selectDiscogs()) ); | ||
137 | 141 | | |||
138 | m_sortAction = new QAction( i18n( "Sort by size" ), sourceMenu ); | 142 | m_sortAction = new QAction( i18n( "Sort by size" ), sourceMenu ); | ||
▲ Show 20 Lines • Show All 779 Lines • Show Last 20 Lines |