0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-28 01:04:41 +08:00

(GUI) Increased length of text edit - IP: [ ]

This commit is contained in:
Victor Zarubkin 2016-12-10 12:58:16 +03:00
parent e5b1485cec
commit 24e0ac261b

View File

@ -194,7 +194,7 @@ EasyMainWindow::EasyMainWindow() : Parent(), m_lastAddress("localhost"), m_lastP
//QRegExp rx("^0*(2(5[0-5]|[0-4]\\d)|1?\\d{1,2})(\\.0*(2(5[0-5]|[0-4]\\d)|1?\\d{1,2})){3}$"); //QRegExp rx("^0*(2(5[0-5]|[0-4]\\d)|1?\\d{1,2})(\\.0*(2(5[0-5]|[0-4]\\d)|1?\\d{1,2})){3}$");
//m_ipEdit->setValidator(new QRegExpValidator(rx, m_ipEdit)); //m_ipEdit->setValidator(new QRegExpValidator(rx, m_ipEdit));
m_ipEdit->setText(m_lastAddress); m_ipEdit->setText(m_lastAddress);
m_ipEdit->setFixedWidth(m_ipEdit->fontMetrics().width(QString("255.255.255.255")) + 20); m_ipEdit->setFixedWidth((m_ipEdit->fontMetrics().width(QString("255.255.255.255")) * 3) / 2);
toolbar->addWidget(m_ipEdit); toolbar->addWidget(m_ipEdit);
lbl = new QLabel("Port:", toolbar); lbl = new QLabel("Port:", toolbar);