private void CreateSimMenu() { menuSimItem = new QMenu(mainwindow_Ui.LstSimContacts); menuSimActions = new List <QAction>(); menuSimActions.Add(new QAction(new QIcon(":/toolbar/resources/qt/list-add.png"), GlobalObjUI.LMan.GetString("addcontacts"), menuSimItem)); menuSimActions.Add(new QAction(new QIcon(":/toolbar/resources/qt/edit-delete.png"), GlobalObjUI.LMan.GetString("delcontacts"), menuSimItem)); menuSimActions.Add(new QAction(new QIcon(":/toolbar/resources/qt/go-up.png"), GlobalObjUI.LMan.GetString("copycontactstofile"), menuSimItem)); menuSimItem.AddActions(menuSimActions); menuSimActions[0].ObjectName = "simadd"; menuSimActions[1].ObjectName = "simdel"; menuSimActions[2].ObjectName = "simcopy"; foreach (QAction qa in menuSimActions) { qa.SetVisible(true); qa.IconVisibleInMenu = true; } }