mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 13:04:58 +00:00
Remove unnecessary directives and preset search on fly.
This commit is contained in:
parent
f1ae30919f
commit
7d4292918e
@ -97,15 +97,11 @@ GuiCitation::GuiCitation(GuiView & lv)
|
|||||||
|
|
||||||
// The filter bar
|
// The filter bar
|
||||||
filter_ = new FancyLineEdit(this);
|
filter_ = new FancyLineEdit(this);
|
||||||
#if QT_VERSION >= 0x040600
|
|
||||||
filter_->setButtonPixmap(FancyLineEdit::Right, getPixmap("images/", "editclear", "svgz,png"));
|
filter_->setButtonPixmap(FancyLineEdit::Right, getPixmap("images/", "editclear", "svgz,png"));
|
||||||
filter_->setButtonVisible(FancyLineEdit::Right, true);
|
filter_->setButtonVisible(FancyLineEdit::Right, true);
|
||||||
filter_->setButtonToolTip(FancyLineEdit::Right, qt_("Clear text"));
|
filter_->setButtonToolTip(FancyLineEdit::Right, qt_("Clear text"));
|
||||||
filter_->setAutoHideButton(FancyLineEdit::Right, true);
|
filter_->setAutoHideButton(FancyLineEdit::Right, true);
|
||||||
#endif
|
|
||||||
#if QT_VERSION >= 0x040700
|
|
||||||
filter_->setPlaceholderText(qt_("All avail. citations"));
|
filter_->setPlaceholderText(qt_("All avail. citations"));
|
||||||
#endif
|
|
||||||
|
|
||||||
filterBarL->addWidget(filter_, 0);
|
filterBarL->addWidget(filter_, 0);
|
||||||
findKeysLA->setBuddy(filter_);
|
findKeysLA->setBuddy(filter_);
|
||||||
@ -117,6 +113,7 @@ GuiCitation::GuiCitation(GuiView & lv)
|
|||||||
casesense_->setCheckable(true);
|
casesense_->setCheckable(true);
|
||||||
instant_ = new QAction(qt_("Search as you &type"), this);
|
instant_ = new QAction(qt_("Search as you &type"), this);
|
||||||
instant_->setCheckable(true);
|
instant_->setCheckable(true);
|
||||||
|
instant_->setChecked(true);
|
||||||
|
|
||||||
QMenu * searchOpts = new QMenu(this);
|
QMenu * searchOpts = new QMenu(this);
|
||||||
searchOpts->addAction(regexp_);
|
searchOpts->addAction(regexp_);
|
||||||
|
Loading…
Reference in New Issue
Block a user