Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / network / WirelessManager / wpa_supplicant / wpa_gui-qt4 / stringquery.cpp
blob1ca98d9ffaed5d149541e1106cb4d1f4a7c4cffe
1 /*
2 * wpa_gui - StringQuery class
3 * Copyright (c) 2009, Atheros Communications
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * Alternatively, this software may be distributed under the terms of BSD
10 * license.
12 * See README and COPYING for more details.
15 #include <cstdio>
16 #include <QLabel>
18 #include "stringquery.h"
21 StringQuery::StringQuery(QString label)
23 edit = new QLineEdit;
24 edit->setFocus();
25 QGridLayout *layout = new QGridLayout;
26 layout->addWidget(new QLabel(label), 0, 0);
27 layout->addWidget(edit, 0, 1);
28 setLayout(layout);
30 connect(edit, SIGNAL(returnPressed()), this, SLOT(accept()));
34 QString StringQuery::get_string()
36 return edit->text();