diff --git a/src/domain/UBGraphicsItemDelegate.cpp b/src/domain/UBGraphicsItemDelegate.cpp index b01190c5..cb9a6929 100644 --- a/src/domain/UBGraphicsItemDelegate.cpp +++ b/src/domain/UBGraphicsItemDelegate.cpp @@ -190,13 +190,6 @@ void UBGraphicsItemDelegate::init() connect(mMenuButton, SIGNAL(clicked()), this, SLOT(showMenu())); mButtons << mMenuButton; - if (mShowGoContentButton) - { - mContentSourceButton = new DelegateButton(":/images/home.svg", mDelegated, mFrame, Qt::TopLeftSection); - connect(mContentSourceButton, SIGNAL(clicked()), this, SLOT(gotoContentSource())); - mButtons << mContentSourceButton; - } - mZOrderUpButton = new DelegateButton(":/images/z_layer_up.svg", mDelegated, mFrame, Qt::BottomLeftSection); mZOrderUpButton->setShowProgressIndicator(true); connect(mZOrderUpButton, SIGNAL(clicked()), this, SLOT(increaseZLevelUp())); @@ -630,6 +623,15 @@ void UBGraphicsItemDelegate::decorateMenu(QMenu* menu) showIcon.addPixmap(QPixmap(":/images/eyeOpened.svg"), QIcon::Normal, QIcon::On); showIcon.addPixmap(QPixmap(":/images/eyeClosed.svg"), QIcon::Normal, QIcon::Off); mShowOnDisplayAction->setIcon(showIcon); + + if (mShowGoContentButton) + { + mGotoContentSourceAction = menu->addAction(tr("Go to Content Source"), this, SLOT(gotoContentSource())); + + QIcon sourceIcon; + sourceIcon.addPixmap(QPixmap(":/images/toolbar/internet.png"), QIcon::Normal, QIcon::On); + mGotoContentSourceAction->setIcon(sourceIcon); + } } void UBGraphicsItemDelegate::updateMenuActionState() diff --git a/src/domain/UBGraphicsItemDelegate.h b/src/domain/UBGraphicsItemDelegate.h index 4a3cadf4..f6271ab7 100644 --- a/src/domain/UBGraphicsItemDelegate.h +++ b/src/domain/UBGraphicsItemDelegate.h @@ -287,7 +287,6 @@ class UBGraphicsItemDelegate : public QObject //buttons from the top left section of delegate frame DelegateButton* mDeleteButton; DelegateButton* mDuplicateButton; - DelegateButton *mContentSourceButton; DelegateButton* mMenuButton; //buttons from the bottom left section of delegate frame