Commit c560cd08 authored by Aleksei Kanash's avatar Aleksei Kanash Committed by Claudio Valerio

Go to content source is action again.

parent 8a21ba28
......@@ -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()
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment