Changeset 46650 in vbox
- Timestamp:
- Jun 19, 2013 11:49:38 AM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIStateIndicator.cpp
r46648 r46650 26 26 #endif 27 27 28 /** @clas QIStateIndicator 29 * 30 * The QIStateIndicator class is a simple class that can visually indicate 31 * the state of some thing, as described by the state property. 32 */ 33 34 QIStateIndicator::QIStateIndicator(QWidget *pParent /* = 0 */) 35 : QFrame(pParent) 28 QIStateIndicator::QIStateIndicator(QWidget *pParent /*= 0*/) 29 : QIWithRetranslateUI<QFrame>(pParent) 36 30 , mState(0) 37 31 , mSize(0, 0) -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIStateIndicator.h
r46648 r46650 24 24 #include <QHash> 25 25 26 class QIStateIndicator : public QFrame 26 /* GUI includes: */ 27 #include "QIWithRetranslateUI.h" 28 29 class QIStateIndicator : public QIWithRetranslateUI<QFrame> 27 30 { 28 31 Q_OBJECT; … … 30 33 public: 31 34 32 QIStateIndicator 35 QIStateIndicator(QWidget *pParent = 0); 33 36 ~QIStateIndicator(); 34 37 -
trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkManagerIndicator.h
r41461 r46650 25 25 26 26 /* Local includes: */ 27 #include "QIWithRetranslateUI.h"28 27 #include "QIStateIndicator.h" 29 28 … … 40 39 41 40 /* Network-manager status-bar indicator: */ 42 class UINetworkManagerIndicator : public QI WithRetranslateUI<QIStateIndicator>41 class UINetworkManagerIndicator : public QIStateIndicator 43 42 { 44 43 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r46582 r46650 25 25 #include "VBoxGlobal.h" 26 26 #include "UIMachineDefs.h" 27 #include "QIWithRetranslateUI.h"28 27 #include "UIConverter.h" 29 28 … … 45 44 #include <iprt/time.h> 46 45 47 class UIIndicatorHardDisks : public QI WithRetranslateUI<QIStateIndicator>46 class UIIndicatorHardDisks : public QIStateIndicator 48 47 { 49 48 Q_OBJECT; … … 52 51 53 52 UIIndicatorHardDisks(CSession &session) 54 : QIWithRetranslateUI<QIStateIndicator>() 55 , m_session(session) 53 : m_session(session) 56 54 { 57 55 setStateIcon(KDeviceActivity_Idle, QPixmap(":/hd_16px.png")); … … 112 110 }; 113 111 114 class UIIndicatorOpticalDisks : public QI WithRetranslateUI<QIStateIndicator>112 class UIIndicatorOpticalDisks : public QIStateIndicator 115 113 { 116 114 Q_OBJECT; … … 119 117 120 118 UIIndicatorOpticalDisks(CSession &session) 121 : QIWithRetranslateUI<QIStateIndicator>() 122 , m_session(session) 119 : m_session(session) 123 120 { 124 121 setStateIcon(KDeviceActivity_Idle, QPixmap(":/cd_16px.png")); … … 183 180 }; 184 181 185 class UIIndicatorFloppyDisks : public QI WithRetranslateUI<QIStateIndicator>182 class UIIndicatorFloppyDisks : public QIStateIndicator 186 183 { 187 184 Q_OBJECT; … … 190 187 191 188 UIIndicatorFloppyDisks(CSession &session) 192 : QIWithRetranslateUI<QIStateIndicator>() 193 , m_session(session) 189 : m_session(session) 194 190 { 195 191 setStateIcon(KDeviceActivity_Idle, QPixmap(":/fd_16px.png")); … … 254 250 }; 255 251 256 class UIIndicatorNetworkAdapters : public QI WithRetranslateUI<QIStateIndicator>252 class UIIndicatorNetworkAdapters : public QIStateIndicator 257 253 { 258 254 Q_OBJECT; … … 261 257 262 258 UIIndicatorNetworkAdapters(CSession &session) 263 : QIWithRetranslateUI<QIStateIndicator>() 264 , m_session(session) 259 : m_session(session) 265 260 , m_pUpdateTimer(new QTimer(this)) 266 261 { … … 361 356 }; 362 357 363 class UIIndicatorUSBDevices : public QI WithRetranslateUI<QIStateIndicator>358 class UIIndicatorUSBDevices : public QIStateIndicator 364 359 { 365 360 Q_OBJECT; … … 368 363 369 364 UIIndicatorUSBDevices(CSession &session) 370 : QIWithRetranslateUI<QIStateIndicator>() 371 , m_session(session) 365 : m_session(session) 372 366 { 373 367 setStateIcon(KDeviceActivity_Idle, QPixmap(":/usb_16px.png")); … … 419 413 }; 420 414 421 class UIIndicatorSharedFolders : public QI WithRetranslateUI<QIStateIndicator>415 class UIIndicatorSharedFolders : public QIStateIndicator 422 416 { 423 417 Q_OBJECT; … … 426 420 427 421 UIIndicatorSharedFolders(CSession &session) 428 : QIWithRetranslateUI<QIStateIndicator>() 429 , m_session(session) 422 : m_session(session) 430 423 { 431 424 setStateIcon(KDeviceActivity_Idle, QPixmap(":/shared_folder_16px.png")); … … 495 488 }; 496 489 497 class UIIndicatorVideoCapture : public QI WithRetranslateUI<QIStateIndicator>490 class UIIndicatorVideoCapture : public QIStateIndicator 498 491 { 499 492 Q_OBJECT; … … 511 504 /* Constructor: */ 512 505 UIIndicatorVideoCapture(CSession &session) 513 : QIWithRetranslateUI<QIStateIndicator>() 514 , m_session(session) 506 : m_session(session) 515 507 , m_pUpdateTimer(new QTimer(this)) 516 508 { … … 587 579 }; 588 580 589 class UIIndicatorVirtualization : public QI WithRetranslateUI<QIStateIndicator>581 class UIIndicatorVirtualization : public QIStateIndicator 590 582 { 591 583 Q_OBJECT; … … 594 586 595 587 UIIndicatorVirtualization(CSession &session) 596 : QIWithRetranslateUI<QIStateIndicator>() 597 , m_session(session) 588 : m_session(session) 598 589 { 599 590 setStateIcon(0, QPixmap(":/vtx_amdv_disabled_16px.png")); … … 663 654 }; 664 655 665 class UIIndicatorMouse : public QI WithRetranslateUI<QIStateIndicator>656 class UIIndicatorMouse : public QIStateIndicator 666 657 { 667 658 Q_OBJECT; … … 670 661 671 662 UIIndicatorMouse(CSession &session) 672 : QIWithRetranslateUI<QIStateIndicator>() 673 , m_session(session) 663 : m_session(session) 674 664 { 675 665 setStateIcon(0, QPixmap(":/mouse_disabled_16px.png")); … … 715 705 }; 716 706 717 class UIIndicatorHostkey : public QI WithRetranslateUI<QIStateIndicator>707 class UIIndicatorHostkey : public QIStateIndicator 718 708 { 719 709 Q_OBJECT; … … 722 712 723 713 UIIndicatorHostkey(CSession &session) 724 : QIWithRetranslateUI<QIStateIndicator>() 725 , m_session(session) 714 : m_session(session) 726 715 { 727 716 setStateIcon(0, QPixmap(":/hostkey_16px.png"));
Note:
See TracChangeset
for help on using the changeset viewer.