Add insert/remove bar buttons in Song editor (fix #5602)
This commit is contained in:
committed by
Johannes Lorenz
parent
783db3e457
commit
8939b149e3
BIN
data/themes/default/insert_bar.png
Normal file
BIN
data/themes/default/insert_bar.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 545 B |
BIN
data/themes/default/remove_bar.png
Normal file
BIN
data/themes/default/remove_bar.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 559 B |
@@ -210,6 +210,9 @@ private:
|
||||
ComboBox * m_zoomingComboBox;
|
||||
ComboBox * m_snappingComboBox;
|
||||
QLabel* m_snapSizeLabel;
|
||||
|
||||
QAction* m_insertBarAction;
|
||||
QAction* m_removeBarAction;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -955,6 +955,13 @@ SongEditorWindow::SongEditorWindow(Song* song) :
|
||||
DropToolBar *timeLineToolBar = addDropToolBarToTop(tr("Timeline controls"));
|
||||
m_editor->m_timeLine->addToolButtons(timeLineToolBar);
|
||||
|
||||
DropToolBar *insertActionsToolBar = addDropToolBarToTop(tr("Bar insert controls"));
|
||||
m_insertBarAction = new QAction(embed::getIconPixmap("insert_bar"), tr("Insert bar"), this);
|
||||
m_removeBarAction = new QAction(embed::getIconPixmap("remove_bar"), tr("Remove bar"), this);
|
||||
insertActionsToolBar->addAction( m_insertBarAction );
|
||||
insertActionsToolBar->addAction( m_removeBarAction );
|
||||
connect(m_insertBarAction, SIGNAL(triggered()), song, SLOT(insertBar()));
|
||||
connect(m_removeBarAction, SIGNAL(triggered()), song, SLOT(removeBar()));
|
||||
|
||||
DropToolBar *zoomToolBar = addDropToolBarToTop(tr("Zoom controls"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user