]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiWorkArea.cpp
- make the advanced search/replace dialog play nice with size
[features.git] / src / frontends / qt4 / GuiWorkArea.cpp
index c418184ab55f1049982b441410ab804d89d430d7..0fa43708e19bd0945b23e5c662b596e5e2c712f8 100644 (file)
@@ -1280,6 +1280,18 @@ void EmbeddedWorkArea::hideEvent(QHideEvent * ev)
 }
 
 
+QSize EmbeddedWorkArea::sizeHint () const
+{
+       // FIXME(?):
+       // GuiWorkArea sets the size to the screen's viewport
+       // by returning a value this gets overridden
+       // EmbeddedWorkArea is now sized to fit in the layout
+       // of the parent, and has a minimum size set in GuiWorkArea
+       // which is what we return here
+       return QSize(100, 70);
+}
+
+
 void EmbeddedWorkArea::disable()
 {
        stopBlinkingCursor();