Changeset View
Changeset View
Standalone View
Standalone View
src/amarokurls/BookmarkCurrentButton.cpp
Show All 25 Lines | |||||
26 | #include <QString> | 26 | #include <QString> | ||
27 | 27 | | |||
28 | BookmarkCurrentButton::BookmarkCurrentButton( QWidget *parent ) | 28 | BookmarkCurrentButton::BookmarkCurrentButton( QWidget *parent ) | ||
29 | : QToolButton( parent ) | 29 | : QToolButton( parent ) | ||
30 | { | 30 | { | ||
31 | setIcon( QIcon::fromTheme( "bookmark-new" ) ); | 31 | setIcon( QIcon::fromTheme( "bookmark-new" ) ); | ||
32 | setText( i18n( "New Bookmark" ) ); | 32 | setText( i18n( "New Bookmark" ) ); | ||
33 | setToolButtonStyle( Qt::ToolButtonTextBesideIcon ); | 33 | setToolButtonStyle( Qt::ToolButtonTextBesideIcon ); | ||
34 | connect( this, SIGNAL(clicked(bool)), this, SLOT(showMenu()) ); | 34 | connect( this, &BookmarkCurrentButton::clicked, this, &BookmarkCurrentButton::showMenu ); | ||
35 | } | 35 | } | ||
36 | 36 | | |||
37 | BookmarkCurrentButton::~BookmarkCurrentButton() | 37 | BookmarkCurrentButton::~BookmarkCurrentButton() | ||
38 | { | 38 | { | ||
39 | } | 39 | } | ||
40 | 40 | | |||
41 | void BookmarkCurrentButton::showMenu() | 41 | void BookmarkCurrentButton::showMenu() | ||
42 | { | 42 | { | ||
Show All 28 Lines |