VirtualBox

Changeset 92012 in vbox


Ignore:
Timestamp:
Oct 22, 2021 6:02:12 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: Extend notification-center with UINotificationReceiver class able to receive notification value and store is as a property.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.cpp

    r91877 r92012  
    713713
    714714
     715/*********************************************************************************************************************************
     716*   Class UINotificationReceiver implementation.                                                                                 *
     717*********************************************************************************************************************************/
     718
     719void UINotificationReceiver::setReceiverProperty(const QVariant &value)
     720{
     721    setProperty("received_value", value);
     722}
     723
     724
    715725#include "UINotificationCenter.moc"
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.h

    r91877 r92012  
    182182#define gpNotificationCenter UINotificationCenter::instance()
    183183
     184/** QObject subclass receiving notification value and storing is as a property. */
     185class SHARED_LIBRARY_STUFF UINotificationReceiver : public QObject
     186{
     187    Q_OBJECT;
     188
     189public slots:
     190
     191    /** Defines received property by @a value. */
     192    void setReceiverProperty(const QVariant &value);
     193};
     194
    184195#endif /* !FEQT_INCLUDED_SRC_notificationcenter_UINotificationCenter_h */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette