Asger Ottar Alstrup wrote:
- The preferences dialog has the wrong size initially
the attached patch makes things better on my side
can others confirm?
(the treewidget is too wide though...)
Index: panelstack.C
===================================================================
--- panelstack.C (revision 15519)
+++ panelstack.C (working copy)
@@ -142,6 +142,14 @@
stack_->setCurrentWidget(cit->second);
}
+
+QSize PanelStack::sizeHint() const
+{
+ return QSize(list_->width() + stack_->width(),
+ list_->height() + stack_->height());
+}
+
+
#include "panelstack_moc.cpp"
Index: panelstack.h
===================================================================
--- panelstack.h (revision 15519)
+++ panelstack.h (working copy)
@@ -43,6 +43,8 @@
/// set current panel by logical name
void setCurrentPanel(lyx::docstring const &);
+ virtual QSize sizeHint() const;
+
public Q_SLOTS:
/// set current panel from an item
void switchPanel(QTreeWidgetItem * i, QTreeWidgetItem* previous=0);