Subversion Repositories svn1-original

Rev

Rev 261 | Rev 327 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 261 Rev 305
Line 23... Line 23...
23
 
23
 
24
qmDialogTeamEditor::~qmDialogTeamEditor()
24
qmDialogTeamEditor::~qmDialogTeamEditor()
25
{
25
{
26
    delete widget;
26
    delete widget;
27
}
27
}
-
 
28
 
-
 
29
/*----------------------------------------------------------------------------
-
 
30
** FUNCTION           : keyPressEvent
-
 
31
**
-
 
32
** DESCRIPTION        : Interect keystrokes not processed by lower level
-
 
33
**                      widgets.
-
 
34
** 
-
 
35
**                      The intent is to 'swallow' return key strokes so that the
-
 
36
**                      dialog does not either a 'save' or 'restore' pushbutton event
-
 
37
** 
-
 
38
**                      Want the user to explicity save the chnages
-
 
39
**
-
 
40
**
-
 
41
** INPUTS             : evt         - Key stroke events
-
 
42
**
-
 
43
** RETURNS            :
-
 
44
**
-
 
45
----------------------------------------------------------------------------*/
-
 
46
 
-
 
47
void qmDialogTeamEditor::keyPressEvent(QKeyEvent *evt)
-
 
48
{
-
 
49
    //qDebug("qmDialogTeamEditor::keyPressEvent");
-
 
50
    if(evt->key() == Qt::Key_Enter || evt->key() == Qt::Key_Return)
-
 
51
    {
-
 
52
        return;
-
 
53
    }
-
 
54
    QDialog::keyPressEvent(evt);
-
 
55
}