VirtualBox

Changeset 8629 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 6, 2008 3:54:29 PM (17 years ago)
Author:
vboxsync
Message:

FE/Qt4: Fixed a bug where the input isn't validated on every text change event.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/QIWidgetValidator.cpp

    r8170 r8629  
    225225                continue;
    226226            /* disconnect to avoid duplicate connections */
     227            disconnect (le, SIGNAL (editingFinished ()),
     228                        this, SLOT (doRevalidate()));
     229            disconnect (le, SIGNAL (cursorPositionChanged (int, int)),
     230                        this, SLOT (doRevalidate()));
    227231            disconnect (le, SIGNAL (textChanged (const QString &)),
    228232                        this, SLOT (doRevalidate()));
     233            /* Use all signals which indicate some change in the text. The
     234             * textChanged signal isn't sufficient in Qt4. */
    229235            connect (le, SIGNAL (textChanged (const QString &)),
     236                     this, SLOT (doRevalidate()));
     237            connect (le, SIGNAL (cursorPositionChanged (int, int)),
     238                     this, SLOT (doRevalidate()));
     239            connect (le, SIGNAL (editingFinished ()),
    230240                     this, SLOT (doRevalidate()));
    231241        }
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