From 24e0ac261bf9b54fef3c2cd23226ebc932a04775 Mon Sep 17 00:00:00 2001 From: Victor Zarubkin Date: Sat, 10 Dec 2016 12:58:16 +0300 Subject: [PATCH] (GUI) Increased length of text edit - IP: [ ] --- profiler_gui/main_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler_gui/main_window.cpp b/profiler_gui/main_window.cpp index c2c3f4c..98ac949 100644 --- a/profiler_gui/main_window.cpp +++ b/profiler_gui/main_window.cpp @@ -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}$"); //m_ipEdit->setValidator(new QRegExpValidator(rx, m_ipEdit)); 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); lbl = new QLabel("Port:", toolbar);