mirror of
https://github.com/YACReader/yacreader
synced 2025-07-20 14:04:40 -04:00
first working version of the search edit in YACReaderLibrary when native NSToolbar is used, //TODO add search modifiers
This commit is contained in:
@ -176,7 +176,10 @@ void LibraryWindow::doLayout()
|
||||
|
||||
//FOLDERS FILTER-------------------------------------------------------------
|
||||
//---------------------------------------------------------------------------
|
||||
#ifndef Q_OS_MAC
|
||||
//in MacOSX the searchEdit is created using the toolbar wrapper
|
||||
searchEdit = new YACReaderSearchLineEdit();
|
||||
#endif
|
||||
|
||||
//SIDEBAR--------------------------------------------------------------------
|
||||
//---------------------------------------------------------------------------
|
||||
@ -825,7 +828,8 @@ void LibraryWindow::createToolBars()
|
||||
|
||||
//Native toolbar search edit
|
||||
//libraryToolBar->addWidget(searchEdit);
|
||||
libraryToolBar->addSearchEdit();
|
||||
searchEdit = libraryToolBar->addSearchEdit();
|
||||
//connect(libraryToolBar,SIGNAL(searchTextChanged(YACReader::SearchModifiers,QString)),this,SLOT(setSearchFilter(YACReader::SearchModifiers, QString)));
|
||||
|
||||
//libraryToolBar->setMovable(false);
|
||||
|
||||
|
Reference in New Issue
Block a user