QKeySequenceEdit: cleanup unused member variable

Change-Id: Ib1197aee7589be0afd0c639b362bf1c3fceffeb4
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
J-P Nurmi 2013-09-25 11:24:01 +02:00 committed by The Qt Project
parent f04b46f34e
commit c66d42f972
2 changed files with 1 additions and 3 deletions

View File

@ -59,7 +59,7 @@ void QKeySequenceEditPrivate::init()
prevKey = -1;
releaseTimer = 0;
layout = new QVBoxLayout(q);
QVBoxLayout *layout = new QVBoxLayout(q);
layout->setContentsMargins(0, 0, 0, 0);
layout->addWidget(lineEdit);

View File

@ -52,7 +52,6 @@ QT_BEGIN_NAMESPACE
#ifndef QT_NO_KEYSEQUENCEEDIT
class QLineEdit;
class QVBoxLayout;
class QKeySequenceEditPrivate : public QWidgetPrivate
{
@ -66,7 +65,6 @@ public:
void finishEditing();
QLineEdit *lineEdit;
QVBoxLayout *layout;
QKeySequence keySequence;
int keyNum;
int key[MaxKeyCount];