- Timestamp:
- Aug 3, 2017 7:39:41 AM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkManager.cpp
r68264 r68265 198 198 , m_pActionRemove(0) 199 199 , m_pActionDetails(0) 200 , m_pActionRefresh(0) 200 201 , m_pTreeWidget(0) 201 202 , m_pDetailsWidget(0) … … 229 230 m_pActionDetails->setToolTip(UIHostNetworkManager::tr("Open Host-only Network Properties (%1)").arg(m_pActionDetails->shortcut().toString())); 230 231 m_pActionDetails->setStatusTip(UIHostNetworkManager::tr("Open pane with selected host-only network properties")); 232 } 233 if (m_pActionRefresh) 234 { 235 m_pActionRefresh->setText(UIHostNetworkManager::tr("&Refresh...")); 236 m_pActionRefresh->setToolTip(UIHostNetworkManager::tr("Refresh Host-only Networks (%1)").arg(m_pActionRefresh->shortcut().toString())); 237 m_pActionRefresh->setStatusTip(UIHostNetworkManager::tr("Refresh the list of host-only networks")); 231 238 } 232 239 … … 537 544 } 538 545 546 void UIHostNetworkManagerWidget::sltRefreshHostNetworks() 547 { 548 // Not implemented. 549 AssertMsgFailed(("Not implemented!")); 550 } 551 539 552 void UIHostNetworkManagerWidget::sltAdjustTreeWidget() 540 553 { … … 749 762 } 750 763 764 /* Create 'Refresh' action: */ 765 m_pActionRefresh = new QAction(this); 766 AssertPtrReturnVoid(m_pActionRefresh); 767 { 768 /* Configure 'Details' action: */ 769 m_pActionRefresh->setCheckable(true); 770 m_pActionRefresh->setShortcut(QKeySequence(QKeySequence::Refresh)); 771 m_pActionRefresh->setIcon(UIIconPool::iconSetFull(":/refresh_22px.png", 772 ":/refresh_16px.png", 773 ":/refresh_disabled_22px.png", 774 ":/refresh_disabled_16px.png")); 775 connect(m_pActionRefresh, &QAction::toggled, this, &UIHostNetworkManagerWidget::sltRefreshHostNetworks); 776 } 777 751 778 /* Prepare menu: */ 752 779 prepareMenu(); … … 766 793 if (m_pActionDetails) 767 794 m_pMenu->addAction(m_pActionDetails); 795 // if (m_pActionRefresh) 796 // m_pMenu->addAction(m_pActionRefresh); 768 797 } 769 798 } … … 811 840 if (m_pActionDetails) 812 841 m_pToolBar->addAction(m_pActionDetails); 842 // if (m_pActionDetails && m_pActionRefresh) 843 // m_pToolBar->addSeparator(); 844 // if (m_pActionRefresh) 845 // m_pToolBar->addAction(m_pActionRefresh); 813 846 #ifdef VBOX_WS_MAC 814 847 /* Check whether we are embedded into a stack: */ -
trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkManager.h
r67811 r68265 97 97 /** Handles command to make host network details @a fVisible. */ 98 98 void sltToggleHostNetworkDetailsVisibility(bool fVisible); 99 /** Handles command to refresh host networks. */ 100 void sltRefreshHostNetworks(); 99 101 /** @} */ 100 102 … … 168 170 /** Holds the Details action instance. */ 169 171 QAction *m_pActionDetails; 172 /** Holds the Refresh action instance. */ 173 QAction *m_pActionRefresh; 170 174 /** @} */ 171 175
Note:
See TracChangeset
for help on using the changeset viewer.