compile fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6611 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-03-28 17:29:07 +00:00
parent 00c6ddd964
commit 0f09a4d35c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-03-28 John Levon <levon@movementarian.org>
* panelstack.C: compile fixes for Qt 2.3
2003-03-28 John Levon <levon@movementarian.org>
* QFloat.C:

View File

@ -34,7 +34,9 @@ PanelStack::PanelStack(QWidget * parent, const char * name)
list_->setVScrollBarMode(QScrollView::AlwaysOff);
list_->addColumn("");
list_->setColumnWidthMode(0, QListView::Maximum);
#if QT_VERSION >= 300
list_->setResizeMode(QListView::AllColumns);
#endif
list_->setRootIsDecorated(true);
connect(list_, SIGNAL(currentChanged(QListViewItem*)),
@ -94,7 +96,7 @@ void PanelStack::addPanel(QWidget * panel, string const & name, string const & p
item->setSelectable(true);
widget_map_[item] = panel;
stack_->addWidget(panel);
stack_->addWidget(panel, -1);
stack_->setMinimumSize(panel->minimumSize());
resize(sizeHint());
}