Subversion Repositories svn1

Rev

Rev 383 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
380 david 1
#include <QtCore/QVariant>
384 david 2
#include <QAction>
3
#include <QApplication>
4
#include <QButtonGroup>
5
#include <QDialog>
6
#include <QHeaderView>
380 david 7
#include "qmteamdisplay.h"
139 david 8
#include "qmdialogteameditor.h"
9
 
10
qmDialogTeamEditor::qmDialogTeamEditor(int team, QWidget *parent) :
380 david 11
    QDialog(parent)
139 david 12
{
380 david 13
    setObjectName(QString::fromUtf8("qmDialogTeamEditor"));
14
    //resize(533, 507);
15
 
16
    widget = new qmTeamDisplay(this, team, TRUE);
17
    widget->setObjectName(QString::fromUtf8("qmDialogTeamEditorWidget"));
18
    widget->setEnabled(true);
19
    widget->setGeometry(QRect(0, 0, 531, 511));
20
 
21
    connect(widget, SIGNAL(dialogDone(int)), this, SLOT(done(int)));
139 david 22
}
23
 
24
qmDialogTeamEditor::~qmDialogTeamEditor()
25
{
380 david 26
    delete widget;
139 david 27
}
380 david 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 do 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
}