[Kde-print-devel] [Bug 139882] JJ: "Driver Settings" tab: lower pane can only show 3 lines, has fixed height, should be resizeable (better usability)
Niko Sams
ns at vivid-planet.com
Fri Jan 12 07:39:19 CET 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=139882
------- Additional Comments From ns vivid-planet com 2007-01-12 07:39 -------
I hope I did understand this right, here my patch for kde 3.5 that adds a qsplitter:
--- driverview.cpp.orig 2007-01-12 07:32:18.000000000 +0100
+++ driverview.cpp 2007-01-12 07:23:09.000000000 +0100
@ -27,6 +27,7 @
#include <qlayout.h>
#include <qwhatsthis.h>
#include <klocale.h>
+#include <qsplitter.h>
DrListView::DrListView(QWidget *parent, const char *name)
: KListView(parent,name)
@ -93,14 +94,16 @
m_driver = 0;
- m_view = new DrListView(this);
+ QSplitter *splitter_ = new QSplitter(Qt::Vertical, this);
+ splitter_->setChildrenCollapsible(false);
+
+ m_view = new DrListView(splitter_);
QWhatsThis::add(m_view, whatsThisPPDOptionsDriverPage);
- m_optview = new DrOptionView(this);
+ m_optview = new DrOptionView(splitter_);
QWhatsThis::add(m_optview, whatsThisOptionSettingsDriverPage);
-
+
QVBoxLayout *main_ = new QVBoxLayout(this, 0, 10);
- main_->addWidget(m_view,1);
- main_->addWidget(m_optview,0);
+ main_->addWidget(splitter_);
connect(m_view,SIGNAL(selectionChanged(QListViewItem*)),m_optview,SLOT(slotItemSelected(QListViewItem*)));
connect(m_optview,SIGNAL(changed()),SLOT(slotChanged()));
More information about the Kde-print-devel
mailing list