always show child indicator in shortcut tree
This commit is contained in:
@@ -57,6 +57,7 @@ void PreferencesDialog::setup_kbd_shortcut_worker(QMenu* menu, QTreeWidgetItem*
|
||||
parent->addChild(item);
|
||||
|
||||
if (a->menu() != NULL) {
|
||||
item->setChildIndicatorPolicy(QTreeWidgetItem::ShowIndicator);
|
||||
setup_kbd_shortcut_worker(a->menu(), item);
|
||||
} else {
|
||||
item->setData(0, Qt::UserRole + 1, reinterpret_cast<quintptr>(a));
|
||||
|
||||
@@ -499,6 +499,7 @@ void MainWindow::setup_menus() {
|
||||
|
||||
QMenu* file_menu = menuBar->addMenu("&File");
|
||||
connect(file_menu, SIGNAL(aboutToShow()), this, SLOT(fileMenu_About_To_Be_Shown()));
|
||||
connect(file_menu, SIGNAL(aboutToHide()), this, SLOT(fileMenu_About_To_Hide()));
|
||||
|
||||
QMenu* new_menu = file_menu->addMenu("&New");
|
||||
make_new_menu(new_menu);
|
||||
@@ -1113,6 +1114,10 @@ void MainWindow::fileMenu_About_To_Be_Shown() {
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::fileMenu_About_To_Hide() {
|
||||
open_recent->clear();
|
||||
}
|
||||
|
||||
void MainWindow::load_recent_project() {
|
||||
int index = static_cast<QAction*>(sender())->data().toInt();
|
||||
QString recent_url = recent_projects.at(index);
|
||||
|
||||
@@ -71,6 +71,7 @@ private slots:
|
||||
void zoom_out_tracks();
|
||||
|
||||
void fileMenu_About_To_Be_Shown();
|
||||
void fileMenu_About_To_Hide();
|
||||
void editMenu_About_To_Be_Shown();
|
||||
void windowMenu_About_To_Be_Shown();
|
||||
void viewMenu_About_To_Be_Shown();
|
||||
|
||||
Reference in New Issue
Block a user