mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 18:43:37 +00:00
compile fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6611 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
00c6ddd964
commit
0f09a4d35c
@ -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:
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user