From 93e334df145c1682214d0c386ae7e621c188a2cc Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 15 Jul 2012 04:07:22 -0500 Subject: [PATCH] Fix trace viewer --- clients/tde/src/part/commanalyzer/layout.ui | 26 +++++++-------------- clients/tde/src/part/scope/layout.ui | 24 +++++++------------ clients/tde/src/widgets/tracewidget.cpp | 1 + 3 files changed, 18 insertions(+), 33 deletions(-) diff --git a/clients/tde/src/part/commanalyzer/layout.ui b/clients/tde/src/part/commanalyzer/layout.ui index 82b011e..172fc93 100644 --- a/clients/tde/src/part/commanalyzer/layout.ui +++ b/clients/tde/src/part/commanalyzer/layout.ui @@ -45,13 +45,21 @@ unnamed - + groupSpectrumAnalyzerView Trace Viewer + + + 7 + 7 + 1 + 1 + + unnamed @@ -60,14 +68,6 @@ traceWidget - - - 7 - 7 - 1 - 1 - - 80 @@ -79,14 +79,6 @@ traceZoomWidget - - - 7 - 7 - 1 - 1 - - 80 diff --git a/clients/tde/src/part/scope/layout.ui b/clients/tde/src/part/scope/layout.ui index f824d7a..038bf7f 100644 --- a/clients/tde/src/part/scope/layout.ui +++ b/clients/tde/src/part/scope/layout.ui @@ -52,6 +52,14 @@ Trace Viewer + + + 7 + 7 + 1 + 1 + + unnamed @@ -60,14 +68,6 @@ traceWidget - - - 7 - 7 - 1 - 1 - - 80 @@ -79,14 +79,6 @@ traceZoomWidget - - - 7 - 7 - 1 - 1 - - 80 diff --git a/clients/tde/src/widgets/tracewidget.cpp b/clients/tde/src/widgets/tracewidget.cpp index eda2c53..10299e5 100644 --- a/clients/tde/src/widgets/tracewidget.cpp +++ b/clients/tde/src/widgets/tracewidget.cpp @@ -601,6 +601,7 @@ TraceWidget::TraceWidget(TQWidget* parent, const char* name) : TQWidget(parent, m_zoomBoxDarkness(ZOOM_SHADING_DARKNESS_FACTOR), m_zoomBoxEnabled(false) { setBackgroundMode(NoBackground); + setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding)); m_primaryLayout = new TQGridLayout(this); m_graticuleWidget = new GraticuleWidget(this);