VirtualBox

Changeset 57360 in vbox


Ignore:
Timestamp:
Aug 14, 2015 3:23:41 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
102123
Message:

FE/Qt: Port-forwarding dialog: Apply IP address changes on-the-fly as well as for the name/protocol/port changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPortForwardingTable.cpp

    r56159 r57360  
    219219        setAlignment(Qt::AlignCenter);
    220220        setValidator(new IPv4Validator(this));
    221         setInputMask("000.000.000.000");
     221        connect(this, SIGNAL(textEdited(const QString&)), this, SLOT(sltTextEdited(const QString&)));
     222    }
     223
     224private slots:
     225
     226    /** Drops the changed data to listener. */
     227    void sltTextEdited(const QString&)
     228    {
     229        emit sigCommitData(this);
    222230    }
    223231
     
    256264        setAlignment(Qt::AlignCenter);
    257265        setValidator(new IPv6Validator(this));
    258         // setInputMask("000.000.000.000"); // No mask for now...
     266        connect(this, SIGNAL(textEdited(const QString&)), this, SLOT(sltTextEdited(const QString&)));
     267    }
     268
     269private slots:
     270
     271    /** Drops the changed data to listener. */
     272    void sltTextEdited(const QString&)
     273    {
     274        emit sigCommitData(this);
    259275    }
    260276
Note: See TracChangeset for help on using the changeset viewer.

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