mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
- 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:
parent
a725704007
commit
ffaf512593
@ -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(".*");
|
||||
|
@ -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();
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user