Remove GUI menu items for global automation (#5230)
Co-authored-by: Hyunjin Song <tteu.ingog@gmail.com> Co-authored-by: Fawn <rubiefawn@gmail.com>
This commit is contained in:
@@ -97,8 +97,6 @@ public:
|
||||
public slots:
|
||||
void execConnectionDialog();
|
||||
void removeConnection();
|
||||
void editSongGlobalAutomation();
|
||||
void removeSongGlobalAutomation();
|
||||
|
||||
private slots:
|
||||
/// Copy the model's value to the clipboard.
|
||||
|
||||
@@ -84,18 +84,6 @@ void AutomatableModelView::addDefaultActions( QMenu* menu )
|
||||
|
||||
menu->addSeparator();
|
||||
|
||||
menu->addAction( embed::getIconPixmap( "automation" ),
|
||||
AutomatableModel::tr( "Edit song-global automation" ),
|
||||
amvSlots,
|
||||
SLOT(editSongGlobalAutomation()));
|
||||
|
||||
menu->addAction( QPixmap(),
|
||||
AutomatableModel::tr( "Remove song-global automation" ),
|
||||
amvSlots,
|
||||
SLOT(removeSongGlobalAutomation()));
|
||||
|
||||
menu->addSeparator();
|
||||
|
||||
if (model->isLinked())
|
||||
{
|
||||
menu->addAction(embed::getIconPixmap("edit_unlink"),
|
||||
@@ -261,21 +249,6 @@ void AutomatableModelViewSlots::removeConnection()
|
||||
|
||||
|
||||
|
||||
void AutomatableModelViewSlots::editSongGlobalAutomation()
|
||||
{
|
||||
getGUI()->automationEditor()->open(
|
||||
AutomationClip::globalAutomationClip(m_amv->modelUntyped())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void AutomatableModelViewSlots::removeSongGlobalAutomation()
|
||||
{
|
||||
delete AutomationClip::globalAutomationClip( m_amv->modelUntyped() );
|
||||
}
|
||||
|
||||
|
||||
void AutomatableModelViewSlots::copyToClipboard()
|
||||
{
|
||||
// For copyString() and MimeType enum class
|
||||
|
||||
Reference in New Issue
Block a user