From a4c86028210fe35879efda8a3ced3786548d8c5c Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Mon, 9 May 2011 09:10:24 +0200
Subject: [PATCH] debugger: "Add breakpoint" dialog cosmetics

---
 src/plugins/debugger/breakwindow.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/plugins/debugger/breakwindow.cpp b/src/plugins/debugger/breakwindow.cpp
index 1eaf24c392a..b493f2b5e9a 100644
--- a/src/plugins/debugger/breakwindow.cpp
+++ b/src/plugins/debugger/breakwindow.cpp
@@ -99,6 +99,8 @@ BreakpointDialog::BreakpointDialog(unsigned engineCapabilities, QWidget *parent)
     : QDialog(parent), m_enabledParts(-1), m_previousType(UnknownType),
       m_firstTypeChange(true)
 {
+    m_ui.setupUi(this);
+    m_ui.comboBoxType->setMaxVisibleItems(20);
     if (!(engineCapabilities & BreakConditionCapability))
         m_enabledParts &= ~ConditionPart;
     if (!(engineCapabilities & BreakModuleCapability))
@@ -106,14 +108,13 @@ BreakpointDialog::BreakpointDialog(unsigned engineCapabilities, QWidget *parent)
     if (!(engineCapabilities & TracePointCapability))
         m_enabledParts &= ~TracePointPart;
     // Match BreakpointType (omitting unknown type).
-    m_ui.setupUi(this);
     QStringList types;
     types << tr("File name and line number")
           << tr("Function name")
-          << tr("Address")
+          << tr("Memory address")
           << tr("Break when C++ exception is thrown")
           << tr("Break when C++ exception is caught")
-          << tr("Break when function \"main()\" starts")
+          << tr("Break when function \"main\" starts")
           << tr("Break when a new process is forked")
           << tr("Break when a new process is executed")
           << tr("Break when a system call is executed")
-- 
GitLab