File indexing completed on 2024-04-21 04:04:04
0001 /*************************************************************************** 0002 tcpconnectwidget.cpp - description 0003 ------------------- 0004 begin : Sun Sep 20 2009 0005 copyright : (C) 2009 by Gaƫl de Chalendar 0006 email : kleag@free.fr 0007 ***************************************************************************/ 0008 0009 /*************************************************************************** 0010 * * 0011 * This program is free software; you can redistribute it and/or modify * 0012 * it under the terms of the GNU General Public License as published by * 0013 * the Free Software Foundation; either either version 2 0014 of the License, or (at your option) any later version.of the License, or * 0015 * (at your option) any later version. * 0016 * * 0017 * You should have received a copy of the GNU General Public License 0018 * along with this program; if not, write to the Free Software 0019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 0020 * 02110-1301, USA 0021 ***************************************************************************/ 0022 0023 #include "tcpconnectwidget.h" 0024 0025 #include "ksirk_debug.h" 0026 0027 #include <QRegularExpression> 0028 #include <QRegularExpressionValidator> 0029 0030 namespace Ksirk 0031 { 0032 0033 TcpConnectWidget::TcpConnectWidget(QWidget *parent) : QWidget(parent), Ui::TcpConnectWidget() 0034 { 0035 qCDebug(KSIRK_LOG) << ""; 0036 setupUi(this); 0037 QRegularExpression rx(QStringLiteral("^.+$")); 0038 auto *v = new QRegularExpressionValidator(rx, this); 0039 hostEdit->setValidator(v); 0040 0041 connect(nextButton,&QAbstractButton::clicked,this,&TcpConnectWidget::next); 0042 connect(previousButton,&QAbstractButton::clicked,this,&TcpConnectWidget::previous); 0043 connect(cancelButton,&QAbstractButton::clicked,this,&TcpConnectWidget::cancel); 0044 } 0045 0046 TcpConnectWidget::~TcpConnectWidget() 0047 { 0048 } 0049 0050 } 0051 0052 #include "moc_tcpconnectwidget.cpp"