Rev 328 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#include <QtCore/QVariant>#include <QtGui/QAction>#include <QtGui/QApplication>#include <QtGui/QButtonGroup>#include <QtGui/QDialog>#include <QtGui/QHeaderView>#include "qmteamdisplay.h"#include "qmdialogteameditor.h"qmDialogTeamEditor::qmDialogTeamEditor(int team, QWidget *parent) :QDialog(parent){setObjectName(QString::fromUtf8("qmDialogTeamEditor"));//resize(533, 507);widget = new qmTeamDisplay(this, team, TRUE);widget->setObjectName(QString::fromUtf8("qmDialogTeamEditorWidget"));widget->setEnabled(true);widget->setGeometry(QRect(0, 0, 531, 511));connect(widget, SIGNAL(dialogDone(int)), this, SLOT(done(int)));}qmDialogTeamEditor::~qmDialogTeamEditor(){delete widget;}/*----------------------------------------------------------------------------** FUNCTION : keyPressEvent**** DESCRIPTION : Interect keystrokes not processed by lower level** widgets.**** The intent is to 'swallow' return key strokes so that the** dialog does not do either a 'save' or 'restore' pushbutton event**** Want the user to explicity save the chnages****** INPUTS : evt - Key stroke events**** RETURNS :**----------------------------------------------------------------------------*/void qmDialogTeamEditor::keyPressEvent(QKeyEvent *evt){//qDebug("qmDialogTeamEditor::keyPressEvent");if(evt->key() == Qt::Key_Enter || evt->key() == Qt::Key_Return){return;}QDialog::keyPressEvent(evt);}