本文整理汇总了C++中QMenuBar::addAction方法的典型用法代码示例。如果您正苦于以下问题:C++ QMenuBar::addAction方法的具体用法?C++ QMenuBar::addAction怎么用?C++ QMenuBar::addAction使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QMenuBar
的用法示例。
在下文中一共展示了QMenuBar::addAction方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: updateDocumentFileMenu
/**
* <p>Adjust the "File" menu and toolbar contents as appropriate for the
* document screen. Sets the "File" menu to have the following content:</p>
* <ul>
* <li>Save</li>
* <li>(items added using addToFileMenu() go here)</li>
* <li><i>(separator)</i></li>
* <li>Close</li>
* <li>Preferences</li>
* <li><i>(separator)</i></li>
* <li>Quit</li>
* </ul>
* <p>Also shows the "Save" button on the toolbar. If creating
* a new file which isn't automatically saved, follow this with a call
* to setEdited(true). On the Mac, also shows a document icon in the
* titlebar. This method should be called after the visibility of any
* application-specific actions has been updated (due to a Maemo
* implementation detail).</p>
*/
void QQMenuHelper::updateDocumentFileMenu()
{
// update action visibility
fileSaveAction->setVisible(true);
fileSeparatorAction->setVisible(true);
closeAction->setVisible(true);
fileNewAction->setVisible(false);
fileOpenAction->setVisible(false);
recent->menuAction()->setVisible(false);
// enable and disable actions as appropriate for the current state
fileNewAction->setEnabled(false);
fileOpenAction->setEnabled(false);
fileSaveAction->setEnabled(false);
closeAction->setEnabled(true);
#if defined(Q_WS_HILDON) || defined(Q_WS_MAEMO_5)
QMenuBar *mb = mainWindow->menuBar();
mb->clear();
int count = extraFileActions.count();
for (int i = 0; i < count; i++) {
if (extraFileActions[i]->isVisible()) {
mb->addAction(extraFileActions[i]);
}
}
mb->addAction(prefsAction);
mb->addAction(helpAction);
#endif
#if defined(Q_WS_MAC)
mainWindow->setWindowIcon(docIcon);
#endif
}
示例2: createMenuBar
void MainWindow::createMenuBar()
{
QMenuBar* menubar = new QMenuBar(this);
QMenu* pMenuFile = new QMenu(tr("&File"), menubar);
QMenu* pMenuEdit = new QMenu(tr("&Edit"), menubar);
QMenu* pMenuView = new QMenu(tr("&View"), menubar);
QMenu* pMenuWindow = new QMenu(tr("&Window"), menubar);
QMenu* pMenuHelp = new QMenu(tr("&Help"), menubar);
menubar->addAction(pMenuFile->menuAction());
menubar->addAction(pMenuEdit->menuAction());
menubar->addAction(pMenuView->menuAction());
#if !defined(Q_OS_MAC)
menubar->addAction(pMenuWindow->menuAction());
#endif
menubar->addAction(pMenuHelp->menuAction());
pMenuFile->addAction(m_pActionStartSynergy);
pMenuFile->addAction(m_pActionStopSynergy);
pMenuFile->addSeparator();
pMenuFile->addAction(m_pActionSave);
pMenuFile->addSeparator();
pMenuFile->addAction(m_pActionQuit);
pMenuEdit->addAction(m_pActionSettings);
pMenuView->addAction(m_pActionLogOutput);
pMenuWindow->addAction(m_pActionMinimize);
pMenuWindow->addAction(m_pActionRestore);
pMenuHelp->addAction(m_pActionAbout);
setMenuBar(menubar);
}
示例3: QWidget
SCNXViewerWidget::SCNXViewerWidget(const PlugIn &plugIn, QWidget *prnt) :
QWidget(prnt),
m_viewerWidget(NULL),
m_scnxViewerWidget(NULL) {
// Set size.
setMinimumSize(640, 480);
// Layout manager.
QGridLayout* mainBox = new QGridLayout(this);
QMenuBar* menubar = new QMenuBar(this);
QAction* open = new QAction(tr("op&en .scnx.."), this);
open->setShortcut(tr("Ctrl+O"));
open->setToolTip("Close the application.");
connect(open, SIGNAL(triggered()), SLOT(openSCNX()));
menubar->addAction(open);
mainBox->addWidget(menubar, 0, 0);
// OpenGL scene viewer.
m_scnxViewerWidget = new SCNXGLWidget(plugIn, this);
m_scnxViewerWidget->setMinimumWidth(540);
m_scnxViewerWidget->setMinimumHeight(300);
// Controllable frame.
m_viewerWidget = new GLControlFrame(m_scnxViewerWidget);
mainBox->addWidget(m_viewerWidget, 1, 0);
// Set layout manager.
setLayout(mainBox);
}
示例4: QMainWindow
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
#ifdef Q_WS_MAEMO_5
this->setAttribute(Qt::WA_Maemo5StackedWindow);
this->setWindowFlags(Qt::Window);
#endif
_games = new GamesData();
QAction * settingsAction = new QAction(tr("Settings"), this);
connect(settingsAction, SIGNAL(triggered()), this, SLOT(Settings()));
QMenuBar * menuBar = new QMenuBar(this);
menuBar->addAction(settingsAction);
UpdateLabels();
#ifdef Q_WS_MAEMO_5
ui->installButton->setIcon(QIcon("/etc/hildon/theme/backgrounds/app_install_games.png"));
ui->savesButton->setIcon(QIcon("/etc/hildon/theme/backgrounds/app_install_multimedia.png"));
#else
ui->installButton->setText(tr("Install"));
ui->savesButton->setText(tr("Saves"));
#endif
UpdateTracker();
}
示例5: AddEntryExitPairPanel
/*public*/ void AddEntryExitPairFrame::initComponents(LayoutEditor* panel) //throws Exception
{
// the following code sets the frame's initial state
nxPanel = new AddEntryExitPairPanel(panel);
setTitle("Add Entry Exit Points");
//getContentPane().setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS));
QWidget* centralWidget = new QWidget;
QVBoxLayout* centralWidgetLayout = new QVBoxLayout(centralWidget);
setCentralWidget(centralWidget);
centralWidgetLayout->addWidget(nxPanel);
QMenuBar* menuBar = new QMenuBar();//getJMenuBar();
QAction* options = new QAction(tr("Options"), this);
menuBar->addAction(options);
// options.addActionListener(new ActionListener() {
// /*public*/ void actionPerformed(ActionEvent event) {
// nxPanel.optionWindow(event);
// }
// });
connect(options, SIGNAL(triggered()), this, SLOT(on_options()));
setMenuBar(menuBar);
addHelpMenu("package.jmri.jmrit.signalling.EntryExitFrame", true);
// pack for display
adjustSize();
}
示例6: QWidget
VisualizerContainer::VisualizerContainer(QMdiArea *container, voxie::visualization::Visualizer *visualizer) :
QWidget(nullptr),
//icon(":/icons/application-blue.png"),
icon(visualizer->icon()),
visualizer(visualizer),
container(container),
window(nullptr)
{
visualizer->setParent(this);
this->setWindowTitle(this->visualizer->mainView()->windowTitle());
this->setWindowIcon(icon);
{
QVBoxLayout *layout = new QVBoxLayout();
layout->setMargin(0);
layout->setSpacing(0);
{
QMenuBar *bar = new QMenuBar();
bar->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Maximum);
QAction *popOutAction = bar->addAction("&Pop Out");
connect(popOutAction, &QAction::triggered, this, &VisualizerContainer::switchPopState);
layout->addWidget(bar);
layout->addWidget(visualizer->mainView());
}
this->setLayout(layout);
}
this->moveToNewMdiChild();
}
示例7: setup
void MenuManager::setup(MenuItem* menuItems) const
{
if (!menuItems)
return; // empty menu bar
QMenuBar* menuBar = getMainWindow()->menuBar();
//menuBar->setUpdatesEnabled(false);
QList<MenuItem*> items = menuItems->getItems();
QList<QAction*> actions = menuBar->actions();
for (QList<MenuItem*>::ConstIterator it = items.begin(); it != items.end(); ++it)
{
// search for the menu action
QAction* action = findAction(actions, QString::fromAscii((*it)->command().c_str()));
if (!action) {
// There must be not more than one separator in the menu bar, so
// we can safely remove it if available and append it at the end
if ((*it)->command() == "Separator") {
action = menuBar->addSeparator();
action->setObjectName(QLatin1String("Separator"));
}
else {
// create a new menu
std::string menuName = (*it)->command();
QMenu* menu = menuBar->addMenu(
QApplication::translate("Workbench", menuName.c_str(),
0, QApplication::UnicodeUTF8));
action = menu->menuAction();
menu->setObjectName(QString::fromAscii(menuName.c_str()));
action->setObjectName(QString::fromAscii(menuName.c_str()));
}
// set the menu user data
action->setData(QString::fromAscii((*it)->command().c_str()));
}
else {
// put the menu at the end
menuBar->removeAction(action);
menuBar->addAction(action);
action->setVisible(true);
int index = actions.indexOf(action);
actions.removeAt(index);
}
// flll up the menu
if (!action->isSeparator())
setup(*it, action->menu());
}
// hide all menus which we don't need for the moment
for (QList<QAction*>::Iterator it = actions.begin(); it != actions.end(); ++it) {
(*it)->setVisible(false);
}
// enable update again
//menuBar->setUpdatesEnabled(true);
}
示例8: createToolBar
void Window_Control_t::createToolBar() {
QMenuBar *MenuBar = new QMenuBar(this);
this->setMenuBar(MenuBar);
// newAct = new QAction(tr("&New"), this);
// newAct->setShortcuts(QKeySequence::New);
// newAct->setStatusTip(tr("Create a new file"));
// connect(newAct, SIGNAL(triggered()), this, SLOT(newFile()));
A_newProject = new QAction(tr("&New"), this);
A_newProject->setShortcuts(QKeySequence::New);
A_newProject->setToolTip(tr("Create a new project"));
connect(A_newProject, SIGNAL(triggered()), this, SLOT(newProjectDialog()));
A_loadProject = new QAction(tr("&Open"), this);
A_loadProject->setShortcuts(QKeySequence::Open);
A_loadProject->setToolTip(tr("O a old Project"));
connect(A_loadProject, SIGNAL(triggered()), this, SLOT(loadProject()));
A_saveProject = new QAction(tr("&Save"), this);
A_saveProject->setShortcuts(QKeySequence::Save);
A_saveProject->setToolTip(tr("Save a project"));
connect(A_saveProject, SIGNAL(triggered()), this, SLOT(saveProject()));
A_exportProject = new QAction(tr("&Export"), this);
A_exportProject->setShortcut(tr("Ctrl+E"));
A_exportProject->setToolTip(tr("Export a project"));
connect(A_exportProject, SIGNAL(triggered()), this, SLOT(exportProject()));
MenuBar->addAction(A_newProject);
MenuBar->addAction(A_loadProject);
MenuBar->addAction(A_saveProject);
MenuBar->addAction(A_exportProject);
//toolbar: dá se všemožně posouvat atd
/*QToolBar *ToolBar = new QToolBar(this);
this->addToolBar(ToolBar);
ToolBar->addAction("New project");*/
}
示例9: setupMenuBar
void ActionManager::setupMenuBar()
{
QMenuBar *menubar = new QMenuBar(m_ui);
// File menu
m_menuFile = new QMenu(menubar);
m_menuFile->setTitle(tr("&File"));
m_menuFile->addAction(m_collectionsScanSection.value("quit-action"));
// Settings menu
m_menuSettings = new QMenu(menubar);
m_menuSettings->setTitle(tr("S&ettings"));
m_menuSettings->addAction(m_collectionsScanSection.value("fullscreen-action"));
m_menuSettings->addAction(m_collectionsScanSection.value("showmenubar-action"));
m_menuSettings->addSeparator();
m_menuSettings->addAction(m_collectionsScanSection.value("preferences-action"));
// Tools menu
m_menuTools = new QMenu(menubar);
m_menuTools->setTitle(tr("&Tools"));
m_menuTools->addAction(m_collectionsScanSection.value("sectionScan-action"));
m_menuTools->addAction(m_collectionsScanSection.value("sectionVuln-action"));
m_menuTools->addAction(m_collectionsScanSection.value("sectionDiscover-action"));
// Help menu
m_menuHelp = new QMenu(menubar);
m_menuHelp->setTitle(tr("&Help"));
m_menuHelp->addAction(m_collectionsScanSection.value("bug-action"));
m_menuHelp->addAction(m_collectionsScanSection.value("home-action"));
m_menuHelp->addAction(m_collectionsScanSection.value("documentation-action"));
m_menuHelp->addAction(m_collectionsScanSection.value("donate-action"));
m_menuHelp->addSeparator();
m_menuHelp->addAction(m_collectionsScanSection.value("aboutui-action"));
m_menuHelp->addAction(m_collectionsScanSection.value("aboutqt-action"));
menubar->addAction(m_menuFile->menuAction());
menubar->addAction(m_menuTools->menuAction());
menubar->addAction(m_menuSettings->menuAction());
menubar->addAction(m_menuHelp->menuAction());
m_ui->setMenuBar(menubar);
}
示例10: QWidget
CGraphicMonth::CGraphicMonth(CMonth* _miesiac, QWidget *parent) :
QWidget(parent)
{
miesiacComboBOx = new QComboBox;
kalendarzWidget = NULL;
miesiac=_miesiac;
pomoc = new QAction(QString("Pomoc"),this);
connect(pomoc,SIGNAL(triggered()),this,SLOT(pokazPomoc()));
QMenuBar* menu = new QMenuBar;
menu->addAction(pomoc);
menu->setFixedHeight(30);
QFont font;
font.setPointSize(mainFontSize);
QLabel* miesiacLabel = new QLabel(QString("Miesiąc: "));
miesiacLabel->setFont(font);
for(int i=0; i<12;i++)
{ miesiacComboBOx->addItem(QDate::longMonthName(i+1));
miesiacComboBOx->setFont(font);
}
QLabel* rokLabel = new QLabel(QString("Rok: "));
rokLabel->setFont(font);
yearEdit = new QDateTimeEdit;
yearEdit->setDisplayFormat("yyyy");
yearEdit->setDateRange(QDate(1900,1,1),QDate(2200,1,1));
yearEdit->setFont(font);
miesiacComboBOx->setCurrentIndex(miesiac->getWybranaData().month()-1);
yearEdit->setDate(miesiac->getWybranaData());
connect(miesiacComboBOx,SIGNAL(activated(int)),this,SLOT(setMiesiac(int)));
connect(yearEdit,SIGNAL(dateChanged(QDate)),this,SLOT(setRok(QDate)));
QHBoxLayout *controlLayout = new QHBoxLayout;
controlLayout->addWidget(miesiacLabel);
controlLayout->addWidget(miesiacComboBOx);
controlLayout->addSpacing(15);
controlLayout->addWidget(rokLabel);
controlLayout->addWidget(yearEdit);
mainLayout = new QVBoxLayout;
mainLayout->addWidget(menu);
mainLayout->addLayout(controlLayout);
wstawKalendarz();
this->setLayout(mainLayout);
this->setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint | Qt::Dialog);
this->setWindowTitle(QString("Kalendarz."));
}
示例11: serviceProvider
MainWindow::MainWindow() :
serviceProvider(0),
markerManager(0),
positionSource(0),
lastNavigator(0),
tracking(true),
firstUpdate(true)
{
// our actual maps widget is the centre of the mainwindow
mapsWidget = new MapsWidget;
setCentralWidget(mapsWidget);
// set up the menus
QMenuBar *mbar = new QMenuBar(this);
mbar->addAction("Quit", qApp, SLOT(quit()));
mbar->addAction("My Location", this, SLOT(goToMyLocation()));
QMenu *searchMenu = new QMenu("Search");
mbar->addMenu(searchMenu);
searchMenu->addAction("For address or name", this, SLOT(showSearchDialog()));
QMenu *navigateMenu = new QMenu("Directions");
mbar->addMenu(navigateMenu);
navigateMenu->addAction("From here to address", this, SLOT(showNavigateDialog()));
setMenuBar(mbar);
setWindowTitle("Maps Demo");
// now begin the process of opening the network link
netConfigManager = new QNetworkConfigurationManager;
connect(netConfigManager, SIGNAL(updateCompleted()),
this, SLOT(openNetworkSession()));
netConfigManager->updateConfigurations();
}
示例12: buildMenu
void CalendarDemo::buildMenu()
{
// Build Options menu
#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) || defined(Q_OS_WINCE)
// These platforms need their menu items added directly to the menu bar.
QMenuBar *optionsMenu = menuBar();
#else
QMenu *optionsMenu = new QMenu("&Options", this);
#if !(defined(Q_OS_SYMBIAN) || defined(Q_WS_SIMULATOR))
// We add the options menu to the softkey manually later
menuBar()->addMenu(optionsMenu);
#endif
#endif
// Add editing options in the menu for Symbian (other platforms get buttons)
QOrganizerManager defaultManager;
QStringList supportedItemTypes = defaultManager.supportedItemTypes();
if (supportedItemTypes.contains(QOrganizerItemType::TypeEvent)) {
QAction* addEventAction = optionsMenu->addAction("Add E&vent");
connect(addEventAction, SIGNAL(triggered(bool)), this, SLOT(addNewEvent()));
}
示例13: mainwindow
void
qt_tm_widget_rep::install_main_menu () {
if (main_menu_widget == waiting_main_menu_widget) return;
main_menu_widget = waiting_main_menu_widget;
QList<QAction*>* src = main_menu_widget->get_qactionlist();
if (!src) return;
QMenuBar* dest = mainwindow()->menuBar();
dest->clear();
for (int i = 0; i < src->count(); i++) {
QAction* a = (*src)[i];
if (a->menu()) {
//TRICK: Mac native QMenuBar accepts only menus which are already populated
// this will cause a problem for us, since menus are lazy and populated only after triggering
// this is the reason we add a dummy action before inserting the menu
a->menu()->addAction("native menubar trick");
dest->addAction(a->menu()->menuAction());
QObject::connect (a->menu(), SIGNAL (aboutToShow()),
the_gui->gui_helper, SLOT (aboutToShowMainMenu()));
QObject::connect (a->menu(), SIGNAL (aboutToHide()),
the_gui->gui_helper, SLOT (aboutToHideMainMenu()));
}
}
}
示例14: QMainWindow
/* main window constructor */
rfc::gui::WindowMain::WindowMain(Dispatcher *dispatcher, QWidget *parent) :
dispatcher(dispatcher), QMainWindow(parent),
tabWidget(new QTabWidget(this)),
splitter(new QSplitter(this))
{
this->setWindowTitle(
QString("raftcomp - ") + dispatcher->getSavingFile());
/* add splitter to widget */
setCentralWidget(splitter);
/* add menu */
QMenuBar *qMenuBar = new QMenuBar(this);
/* create 'save' button */
QAction *act = new QAction(lang::save, qMenuBar);
connect(act, SIGNAL(triggered(bool)),
this, SLOT(slotSavePushed()));
qMenuBar->addAction(act);
setMenuBar(qMenuBar);
/* all rules tabs */
// QTabWidget *tabWidget = new QTabWidget(this);
splitter->addWidget(tabWidget);
tabWidget->addTab(new gui::mandat::Mandat(dispatcher, this), lang::mandat);
addDisciplineToTab(new gui::Qualify(dispatcher, this), lang::qualify);
addDisciplineToTab(new gui::Sprint(dispatcher, this), lang::sprint);
addDisciplineToTab(new gui::Slalom(dispatcher, this), lang::slalom);
addDisciplineToTab(new gui::LongRace(dispatcher, this), lang::longRace);
protocol = new gui::Protocol(dispatcher, this);
tabWidget->addTab(protocol, lang::protocol);
} /* end of 'WindowMain' constructor */
示例15: setupUi
//.........这里部分代码省略.........
horizontalLayout_4->addWidget(uavTakeoffLandButton);
gridLayout->addLayout(horizontalLayout_4, 2, 0, 1, 1);
horizontalLayout_2 = new QHBoxLayout();
horizontalLayout_2->setSpacing(6);
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
label = new QLabel(gridLayoutWidget);
label->setObjectName(QString::fromUtf8("label"));
horizontalLayout_2->addWidget(label);
ugvSpeedLCD = new QLCDNumber(gridLayoutWidget);
ugvSpeedLCD->setObjectName(QString::fromUtf8("ugvSpeedLCD"));
ugvSpeedLCD->setFrameShape(QFrame::Box);
horizontalLayout_2->addWidget(ugvSpeedLCD);
gridLayout->addLayout(horizontalLayout_2, 4, 2, 1, 1);
horizontalLayout_6 = new QHBoxLayout();
horizontalLayout_6->setSpacing(6);
horizontalLayout_6->setObjectName(QString::fromUtf8("horizontalLayout_6"));
label_3 = new QLabel(gridLayoutWidget);
label_3->setObjectName(QString::fromUtf8("label_3"));
horizontalLayout_6->addWidget(label_3);
ugvSpeakerButton = new QPushButton(gridLayoutWidget);
ugvSpeakerButton->setObjectName(QString::fromUtf8("ugvSpeakerButton"));
horizontalLayout_6->addWidget(ugvSpeakerButton);
gridLayout->addLayout(horizontalLayout_6, 2, 2, 1, 1);
verticalLayout = new QVBoxLayout();
verticalLayout->setSpacing(6);
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
label_4 = new QLabel(gridLayoutWidget);
label_4->setObjectName(QString::fromUtf8("label_4"));
label_4->setAlignment(Qt::AlignCenter);
verticalLayout->addWidget(label_4);
sauverStatus = new QTextBrowser(gridLayoutWidget);
sauverStatus->setObjectName(QString::fromUtf8("sauverStatus"));
sauverStatus->setEnabled(true);
QSizePolicy sizePolicy2(QSizePolicy::Minimum, QSizePolicy::Minimum);
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(sauverStatus->sizePolicy().hasHeightForWidth());
sauverStatus->setSizePolicy(sizePolicy2);
sauverStatus->setMaximumSize(QSize(777215, 215));
verticalLayout->addWidget(sauverStatus);
gridLayout->addLayout(verticalLayout, 4, 3, 1, 1);
label_5 = new QLabel(gridLayoutWidget);
label_5->setObjectName(QString::fromUtf8("label_5"));
gridLayout->addWidget(label_5, 0, 0, 1, 1);
Detection->setCentralWidget(centralWidget);
menuBar = new QMenuBar(Detection);
menuBar->setObjectName(QString::fromUtf8("menuBar"));
menuBar->setGeometry(QRect(0, 0, 729, 23));
menuFile = new QMenu(menuBar);
menuFile->setObjectName(QString::fromUtf8("menuFile"));
menu_Tools = new QMenu(menuBar);
menu_Tools->setObjectName(QString::fromUtf8("menu_Tools"));
menu_Help = new QMenu(menuBar);
menu_Help->setObjectName(QString::fromUtf8("menu_Help"));
Detection->setMenuBar(menuBar);
mainToolBar = new QToolBar(Detection);
mainToolBar->setObjectName(QString::fromUtf8("mainToolBar"));
Detection->addToolBar(Qt::TopToolBarArea, mainToolBar);
statusBar = new QStatusBar(Detection);
statusBar->setObjectName(QString::fromUtf8("statusBar"));
Detection->setStatusBar(statusBar);
menuBar->addAction(menuFile->menuAction());
menuBar->addAction(menu_Tools->menuAction());
menuBar->addAction(menu_Help->menuAction());
menuFile->addAction(action_Load_Map);
menuFile->addAction(action_Disconnect);
menuFile->addAction(actionE_xit);
menu_Tools->addAction(action_Connect);
retranslateUi(Detection);
QObject::connect(actionE_xit, SIGNAL(activated()), Detection, SLOT(close()));
QObject::connect(action_Connect, SIGNAL(activated()), connectionButton, SLOT(click()));
QMetaObject::connectSlotsByName(Detection);
} // setupUi