mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-12-01 11:48:23 -05:00
e22d4d957b
Remove the GPL notification text from files that were initially contributed by Atheros Communications or Qualcomm Atheros. Signed-hostap: Jouni Malinen <j@w1.fi>
32 lines
605 B
C++
32 lines
605 B
C++
/*
|
|
* wpa_gui - StringQuery class
|
|
* Copyright (c) 2009, Atheros Communications
|
|
*
|
|
* This software may be distributed under the terms of the BSD license.
|
|
* See README for more details.
|
|
*/
|
|
|
|
#include <cstdio>
|
|
#include <QLabel>
|
|
|
|
#include "stringquery.h"
|
|
|
|
|
|
StringQuery::StringQuery(QString label)
|
|
{
|
|
edit = new QLineEdit;
|
|
edit->setFocus();
|
|
QGridLayout *layout = new QGridLayout;
|
|
layout->addWidget(new QLabel(label), 0, 0);
|
|
layout->addWidget(edit, 0, 1);
|
|
setLayout(layout);
|
|
|
|
connect(edit, SIGNAL(returnPressed()), this, SLOT(accept()));
|
|
}
|
|
|
|
|
|
QString StringQuery::get_string()
|
|
{
|
|
return edit->text();
|
|
}
|