- make the advanced search/replace dialog play nice with size

- add frame

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33821 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2010-03-21 11:50:13 +00:00
parent a725704007
commit ffaf512593
4 changed files with 426 additions and 699 deletions

View File

@ -58,12 +58,13 @@ FindAndReplaceWidget::FindAndReplaceWidget(GuiView & view)
#endif
find_work_area_->setGuiView(view_);
find_work_area_->init();
find_work_area_->setFrameStyle(QFrame::StyledPanel);
setFocusProxy(find_work_area_);
replace_work_area_->setGuiView(view_);
replace_work_area_->init();
replace_work_area_->setFrameStyle(QFrame::StyledPanel);
// We don't want two cursors blinking.
replace_work_area_->stopBlinkingCursor();
QMenu * menu = new QMenu();
QAction * regAny = menu->addAction(qt_("&Anything"));
regAny->setData(".*");

View 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();

View File

@ -281,6 +281,7 @@ public:
void setWidgetResizable(bool) {}
void setWidget(QWidget *) {}
QSize sizeHint () const;
///
void disable();

File diff suppressed because it is too large Load Diff