Changeset 52181 in vbox
- Timestamp:
- Jul 25, 2014 12:24:50 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 95232
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp
r52179 r52181 619 619 if (m_pInstance == this) 620 620 m_pInstance = 0; 621 } 622 623 UIActionPoolRuntime* UIActionPool::toRuntime() 624 { 625 return qobject_cast<UIActionPoolRuntime*>(this); 626 } 627 628 UIActionPoolSelector* UIActionPool::toSelector() 629 { 630 return qobject_cast<UIActionPoolSelector*>(this); 621 631 } 622 632 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h
r52152 r52181 28 28 class UIActionPolymorphic; 29 29 class UIActionPool; 30 class UIActionPoolRuntime; 31 class UIActionPoolSelector; 30 32 31 33 … … 282 284 static void createTemporary(UIActionPoolType type); 283 285 286 /** Cast action-pool to Runtime one. */ 287 UIActionPoolRuntime* toRuntime(); 288 /** Cast action-pool to Selector one. */ 289 UIActionPoolSelector* toSelector(); 290 284 291 /** Returns action-pool type. */ 285 292 UIActionPoolType type() const { return m_type; } … … 290 297 QList<UIAction*> actions() const { return m_pool.values(); } 291 298 299 /** Hot-key processing delegate. */ 300 bool processHotKey(const QKeySequence &key); 301 292 302 /** Returns extra-data ID to save keyboard shortcuts under. */ 293 303 virtual QString shortcutsExtraDataID() const = 0; … … 295 305 /** Recreates menus. */ 296 306 void recreateMenus() { createMenus(); } 297 298 /** Hot-key processing delegate. */299 bool processHotKey(const QKeySequence &key);300 307 301 308 protected slots:
Note:
See TracChangeset
for help on using the changeset viewer.