[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdevelop/parts/debugger
From:       Jens Dagerbo <jens.dagerbo () swipnet ! se>
Date:       2003-08-23 21:22:06
[Download RAW message or body]

CVS commit by dagerbo: 

Quick fix to have the variable widget of the left pane in IDEAl mode not take up so \
much room horizontally. 


  M +16 -8     variablewidget.cpp   1.32


--- kdevelop/parts/debugger/variablewidget.cpp  #1.31:1.32
@@ -25,4 +25,5 @@
 #include <qlabel.h>
 #include <qlayout.h>
+#include <qhbox.h>
 #include <qpainter.h>
 #include <qpushbutton.h>
@@ -48,20 +49,27 @@ VariableWidget::VariableWidget(QWidget *
     QLabel *label = new QLabel(i18n("Expression to watch:"), this);
 
-    watchVarEditor_ = new KHistoryCombo(this, "var-to-watch editor");
+    QHBox *watchEntry = new QHBox( this );
+
+    watchVarEditor_ = new KHistoryCombo( watchEntry, "var-to-watch editor");
 
 //    watchVarEntry_ = new KLineEdit(this);
 
-    QPushButton *addButton = new QPushButton(i18n("Add"), this);
+    QPushButton *addButton = new QPushButton(i18n("Add"), watchEntry );
 
-    QBoxLayout *watchEntry = new QHBoxLayout();
-    watchEntry->addWidget(label);
+    QBoxLayout * vbox = new QVBoxLayout();
+
+//    QBoxLayout *watchEntry = new QHBoxLayout();
+//    watchEntry->addWidget(label);
 //    watchEntry->addWidget(watchVarEntry_);
-    watchEntry->addWidget(watchVarEditor_);
-    watchEntry->setStretchFactor(watchVarEditor_, 1);
-    watchEntry->addWidget(addButton);
+//    watchEntry->addWidget(watchVarEditor_);
+//    watchEntry->setStretchFactor(watchVarEditor_, 1);
+//    watchEntry->addWidget(addButton);
+
+    vbox->addWidget( label );
+    vbox->addWidget( watchEntry );
 
     QVBoxLayout *topLayout = new QVBoxLayout(this, 2);
     topLayout->addWidget(varTree_, 10);
-    topLayout->addLayout(watchEntry);
+    topLayout->addLayout( vbox );
 
     connect( addButton, SIGNAL(clicked()), SLOT(slotAddWatchVariable()) );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic