connectionmonitoring/connectionview/src/connectionview.cpp
changeset 27 489cf6208544
parent 20 9c97ad6591ae
child 40 c5b848e6c7d1
equal deleted inserted replaced
23:7ec726f93df1 27:489cf6208544
   141     mScrollArea->setContentWidget(scrollContent);
   141     mScrollArea->setContentWidget(scrollContent);
   142     
   142     
   143     // Create the toolbar and the disconnection action
   143     // Create the toolbar and the disconnection action
   144     mToolBar = new HbToolBar();    
   144     mToolBar = new HbToolBar();    
   145     HbIcon icon("qtg_mono_disconnect");
   145     HbIcon icon("qtg_mono_disconnect");
   146     mDisconnectAction = mToolBar->addAction(icon, hbTrId("txt_occ_button_disconnect_all"));
   146     HbAction *disconnectAction = new HbAction(mToolBar);
       
   147     disconnectAction->setIcon(icon);
       
   148     mToolBar->addAction(disconnectAction);
   147     mMainView->setToolBar(mToolBar);
   149     mMainView->setToolBar(mToolBar);
   148     bool connectStatus = connect(
   150     bool connectStatus = connect(
   149             mDisconnectAction,
   151             disconnectAction,
   150             SIGNAL(triggered(bool)),
   152             SIGNAL(triggered(bool)),
   151             this,
   153             this,
   152             SLOT(disconnectAll()));
   154             SLOT(disconnectAll()));
   153     
   155     
   154     // Create the actual groupboxes for all the active connections
   156     // Create the actual groupboxes for all the active connections