manViever::manViever(QWidget *parent) : QWidget(parent) { lneSearch = new QLineEdit; lneSearch->setText(""); txtMan = new QTextEdit; txtMan->setText(""); txtMan->setReadOnly(true); btnSearch = new QPushButton; btnSearch->setText("Search"); Hlayout = new QHBoxLayout; Hlayout->addWidget(lneSearch); Hlayout->addWidget(btnSearch); Vlayout = new QVBoxLayout; Vlayout->addLayout(Hlayout); Vlayout->addWidget(txtMan); setLayout(Vlayout); out=""; connect(btnSearch,SIGNAL(clicked()),this,SLOT(startSearch())); connect(lneSearch,SIGNAL(returnPressed()),this,SLOT(startSearch())); connect(&proc,SIGNAL(readyReadStandardOutput()),this,SLOT(stdOut())); connect(&proc,SIGNAL(readyReadStandardError()),this,SLOT(stdErr())); connect(&proc,SIGNAL(finished(int ,QProcess::ExitStatus)),this,SLOT(procFinished(int,QProcess::ExitStatus))); }
FlightInfo(QMainWindow *parent = 0): QMainWindow(parent) { QWidget *w = new QWidget(this); ui.setupUi(w); setCentralWidget(w); ui.searchBar->hide(); ui.infoBox->hide(); connect(ui.searchButton, SIGNAL(clicked()), SLOT(startSearch())); connect(ui.flightEdit, SIGNAL(returnPressed()), SLOT(startSearch())); setWindowTitle("Flight Info"); QTimer::singleShot(0, this, SLOT(delayedInit())); // Rendered from the public-domain vectorized aircraft // http://openclipart.org/media/people/Jarno m_map = QPixmap(":/aircraft.png"); QAction *searchTodayAction = new QAction("Today's Flight", this); QAction *searchYesterdayAction = new QAction("Yesterday's Flight", this); QAction *randomAction = new QAction("Random Flight", this); connect(searchTodayAction, SIGNAL(triggered()), SLOT(today())); connect(searchYesterdayAction, SIGNAL(triggered()), SLOT(yesterday())); connect(randomAction, SIGNAL(triggered()), SLOT(randomFlight())); #if defined(Q_OS_SYMBIAN) menuBar()->addAction(searchTodayAction); menuBar()->addAction(searchYesterdayAction); menuBar()->addAction(randomAction); #else addAction(searchTodayAction); addAction(searchYesterdayAction); addAction(randomAction); setContextMenuPolicy(Qt::ActionsContextMenu); #endif }
FlightInfo(QMainWindow *parent = 0): QMainWindow(parent) { QWidget *w = new QWidget(this); ui.setupUi(w); setCentralWidget(w); ui.searchBar->hide(); ui.infoBox->hide(); connect(ui.searchButton, SIGNAL(clicked()), SLOT(startSearch())); connect(ui.flightEdit, SIGNAL(returnPressed()), SLOT(startSearch())); setWindowTitle("Flight Info"); // Rendered from the public-domain vectorized aircraft // http://openclipart.org/media/people/Jarno m_map = QPixmap(":/aircraft.png"); QAction *searchTodayAction = new QAction("Today's Flight", this); QAction *searchYesterdayAction = new QAction("Yesterday's Flight", this); QAction *randomAction = new QAction("Random Flight", this); connect(searchTodayAction, SIGNAL(triggered()), SLOT(today())); connect(searchYesterdayAction, SIGNAL(triggered()), SLOT(yesterday())); connect(randomAction, SIGNAL(triggered()), SLOT(randomFlight())); connect(&m_manager, SIGNAL(finished(QNetworkReply*)), this, SLOT(handleNetworkData(QNetworkReply*))); addAction(searchTodayAction); addAction(searchYesterdayAction); addAction(randomAction); setContextMenuPolicy(Qt::ActionsContextMenu); }
void TextShow::searchAgain(int n) { if (n) return; if (!srchdialog) return; if (srchdialog->get_direction()){ startSearch(paragraphs(), 0); }else{ startSearch(0, 0); } }
void FmDriverView::initDiskListWidget() { mDriverList = new FmDriverListWidget( this ); connect( mDriverList, SIGNAL( activated( QString ) ), this, SLOT( activated( QString ) ), Qt::QueuedConnection ); connect( mDriverList, SIGNAL( startSearch( QString ) ), this, SLOT( startSearch( QString ) ) ); setWidget( mDriverList ); }
void ICQSearch::showEvent(QShowEvent *e) { ICQSearchBase::showEvent(e); if (m_wizard == NULL){ m_wizard = static_cast<QWizard*>(topLevelWidget()); connect(this, SIGNAL(goNext()), m_wizard, SLOT(goNext())); } if (m_result == NULL){ m_result = new ICQSearchResult(m_wizard, m_client); connect(m_result, SIGNAL(finished()), this, SLOT(resultFinished())); connect(m_result, SIGNAL(startSearch()), this, SLOT(startSearch())); m_wizard->addPage(m_result, i18n("ICQ search results")); } m_result->clear(); changed(); }
bool HelpDialogBase::qt_invoke( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->slotOffset() ) { case 0: languageChange(); break; case 1: init(); break; case 2: destroy(); break; case 3: addBookmark(); break; case 4: currentBookmarkChanged((QListViewItem*)static_QUType_ptr.get(_o+1)); break; case 5: currentIndexChanged((QListBoxItem*)static_QUType_ptr.get(_o+1)); break; case 6: currentTabChanged((const QString&)static_QUType_QString.get(_o+1)); break; case 7: loadIndexFile(); break; case 8: currentContentsChanged((QListViewItem*)static_QUType_ptr.get(_o+1)); break; case 9: removeBookmark(); break; case 10: searchInIndex((const QString&)static_QUType_QString.get(_o+1)); break; case 11: showTopic(); break; case 12: showTopic((int)static_QUType_int.get(_o+1),(QListBoxItem*)static_QUType_ptr.get(_o+2),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+3))); break; case 13: showSearchHelp(); break; case 14: startSearch(); break; case 15: showResultPage((QListBoxItem*)static_QUType_ptr.get(_o+1)); break; case 16: showResultPage((int)static_QUType_int.get(_o+1),(QListBoxItem*)static_QUType_ptr.get(_o+2),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+3))); break; case 17: showResultPage((int)static_QUType_int.get(_o+1),(QListViewItem*)static_QUType_ptr.get(_o+2),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+3))); break; default: return QWidget::qt_invoke( _id, _o ); } return TRUE; }
void TextShow::search_slot() { if (!srchdialog) return; int parag, index; getCursorPosition(¶g, &index); startSearch(parag, index); }
//bool g_bIndexingDone = false; HelpWindow::HelpWindow(const char * name) : KviWindow(KviWindow::Help,name) { g_pHelpWindowList->append(this); m_pSplitter = new KviTalSplitter(Qt::Horizontal,this); m_pSplitter->setObjectName("main_splitter"); m_pSplitter->setChildrenCollapsible(false); m_pHelpWidget = new HelpWidget(m_pSplitter); m_pToolBar=new KviTalVBox(m_pSplitter); m_pTabWidget = new QTabWidget(m_pToolBar); m_pBottomLayout = new KviTalHBox(m_pToolBar); m_pProgressBar = new QProgressBar(m_pBottomLayout); m_pCancelButton = new QPushButton(m_pBottomLayout); m_pCancelButton->setText(__tr2qs_ctx("Cancel","logview")); connect(m_pCancelButton,SIGNAL(clicked()),g_pDocIndex,SLOT(setLastWinClosed())); m_pBottomLayout->setVisible(false); m_pIndexTab = new KviTalVBox(m_pTabWidget); m_pTabWidget->addTab(m_pIndexTab,__tr2qs("Help Index")); KviTalHBox* pSearchBox = new KviTalHBox(m_pIndexTab); m_pIndexSearch = new QLineEdit(pSearchBox); connect( m_pIndexSearch, SIGNAL( textChanged(const QString&) ), this, SLOT( searchInIndex(const QString&) ) ); connect( m_pIndexSearch, SIGNAL( returnPressed() ), this, SLOT( showIndexTopic() ) ); m_pBtnRefreshIndex = new QPushButton(pSearchBox); m_pBtnRefreshIndex->setIcon(*g_pIconManager->getBigIcon(KVI_REFRESH_IMAGE_NAME)); connect(m_pBtnRefreshIndex,SIGNAL(clicked()),this,SLOT(refreshIndex())); m_pBtnRefreshIndex->setToolTip(__tr2qs("Refresh index") ); m_pIndexListWidget = new KviTalListWidget(m_pIndexTab); connect(m_pIndexListWidget,SIGNAL(itemActivated(QListWidgetItem *)),this,SLOT(indexSelected (QListWidgetItem * ))); m_pSearchTab = new KviTalVBox(m_pTabWidget); m_pTabWidget->addTab(m_pSearchTab,__tr2qs("Search")); m_pTermsEdit = new QLineEdit(m_pSearchTab); connect( m_pTermsEdit, SIGNAL( returnPressed() ), this, SLOT( startSearch() ) ); m_pResultBox = new KviTalListWidget(m_pSearchTab); connect(m_pResultBox,SIGNAL(itemActivated(QListWidgetItem *)),this,SLOT(searchSelected (QListWidgetItem *))); QList<int> li; li.append(width()-80); li.append(80); m_pSplitter->setSizes(li); connect(g_pDocIndex, SIGNAL(indexingStart(int)), this, SLOT(indexingStart(int))); connect(g_pDocIndex, SIGNAL(indexingProgress(int)), this, SLOT(indexingProgress(int))); connect(g_pDocIndex, SIGNAL(indexingEnd()), this, SLOT(indexingEnd())); QTimer::singleShot(0,this,SLOT(initialSetup())); }
BOOL LLInventoryView::handleKeyHere(KEY key, MASK mask) { LLFolderView* root_folder = mActivePanel ? mActivePanel->getRootFolder() : NULL; if (root_folder) { // first check for user accepting current search results if (mSearchEditor && mSearchEditor->hasFocus() && (key == KEY_RETURN || key == KEY_DOWN) && mask == MASK_NONE) { // move focus to inventory proper root_folder->setFocus(TRUE); root_folder->scrollToShowSelection(); return TRUE; } if (root_folder->hasFocus() && key == KEY_UP) { startSearch(); } } return LLFloater::handleKeyHere(key, mask); }
void OsmNominatimRunner::search( const QString &searchTerm, const GeoDataLatLonBox &preferred ) { QString base = "http://nominatim.openstreetmap.org/search?"; QString query = "q=%1&format=xml&addressdetails=1&accept-language=%2"; QString url = QString(base + query).arg(searchTerm).arg(MarbleLocale::languageCode()); if( !preferred.isEmpty() ) { GeoDataCoordinates::Unit deg = GeoDataCoordinates::Degree; QString viewbox( "&viewbox=%1,%2,%3,%4&bounded=1" ); // left, top, right, bottom url += viewbox.arg(preferred.west(deg)) .arg(preferred.north(deg)) .arg(preferred.east(deg)) .arg(preferred.south(deg)); } m_request.setUrl(QUrl(url)); m_request.setRawHeader("User-Agent", TinyWebBrowser::userAgent("Browser", "OsmNominatimRunner") ); QEventLoop eventLoop; QTimer timer; timer.setSingleShot( true ); timer.setInterval( 15000 ); connect( &timer, SIGNAL(timeout()), &eventLoop, SLOT(quit())); connect( this, SIGNAL(searchFinished(QVector<GeoDataPlacemark*>)), &eventLoop, SLOT(quit()) ); // @todo FIXME Must currently be done in the main thread, see bug 257376 QTimer::singleShot( 0, this, SLOT(startSearch()) ); timer.start(); eventLoop.exec(); }
void TrackerDocumentProvider::componentComplete() { QDBusConnection sessionBus = QDBusConnection::sessionBus(); sessionBus.connect(dbusService, dbusPath, dbusInterface, dbusSignal, this, SLOT(trackerGraphChanged(QString,QVariantList,QVariantList))); d->connection = new QSparqlConnection(trackerDriver); startSearch(); }
// ---------------------------------------------------------------------------- // Entry point ---------------------------------------------------------------- // ---------------------------------------------------------------------------- int main(int argc, char *argv[]) { parseArgs(argc, argv); startScanner(); startIndexer(); startSearch(); cleanup(); return 0; }
/** Starts the search with the given module list and given search text. */ void CSearchDialog::startSearch( const QList<CSwordModuleInfo*> modules, const QString& searchText) { m_searchResultArea->reset(); m_searchOptionsArea->reset(); setModules(modules); setSearchText(searchText); startSearch(); }
void JabberAdd::searchName(const QString &first, const QString &last, const QString &nick) { m_first = first; m_last = last; m_nick = nick; m_mail = ""; startSearch(); }
void JabberAdd::searchMail(const QString &mail) { m_mail = mail; m_first = ""; m_last = ""; m_nick = ""; startSearch(); }
bool Patient:: search(const QString &type, const QString &content,int serchType,const QString &table) { static QHash<QString,QString> ser; emit startSearch(); d->cDataInit(); qDebug()<<"hans " << ser; qDebug()<<type; qDebug()<<content; qDebug()<<serchType; if(!serchType) { ser.clear(); if(content.size() != 0) { //QString cmd = QString("select * from %1 where %2 LIKE '%3%' or %2 = '%3' ORDER BY id DESC").arg(table,type,content); if(type == "检查日期时间之后") { QString ttype = "检查日期时间"; qDebug()<<QString("select * from %1 where %2 > '%3' ORDER BY id DESC").arg(table,ttype,content); this->setQuery(QString("select * from %1 where %2 > '%3' ORDER BY id DESC").arg(table,ttype,content)); } else { this->setQuery(QString("select * from %1 where %2 LIKE '%3%'or %2 = '%3' ORDER BY id DESC").arg(table,type,content)); } } else { this->setQuery(QString("select * from %1 ORDER BY id DESC ").arg(table)); } ser[type] = content; } else { ser[type] = content; QHashIterator< QString ,QString> it(ser); QString cmd = ""; while(it.hasNext()) { it.next(); // qDebug()<< it.key() << it.value(); cmd = QString("%1 and (%2 LIKE '%3%' or %2 = '%3') ").arg(cmd,it.key(),it.value()); } cmd = cmd.mid(4,-1); //cmd = " select * from Patient where (病人ID LIKE '2016%' or 病人ID = '2016') and (姓名 LIKE '1%' or 姓名 = '1') ORDER BY id DESC"; qDebug()<<cmd; //this->setQuery(cmd); this->setQuery(QString("select * from %1 where %2 ORDER BY id DESC").arg(table,cmd)); } // emit layoutChanged(); this->setCurrentPatientNum(rowCount()); setSelectedPatientNum(0); updateCurrentPID(); return true; }
Kfind::Kfind(QWidget *parent, const char *name) : QWidget(parent, name) { kdDebug() << "Kfind::Kfind " << this << endl; QBoxLayout *mTopLayout = new QBoxLayout(this, QBoxLayout::LeftToRight, KDialog::marginHint(), KDialog::spacingHint()); // create tabwidget tabWidget = new KfindTabWidget(this); mTopLayout->addWidget(tabWidget); /* * This is ugly. Might be a KSeparator bug, but it makes a small black * pixel for me which is visually distracting (GS). // create separator KSeparator * mActionSep = new KSeparator( this ); mActionSep->setFocusPolicy( QWidget::ClickFocus ); mActionSep->setOrientation( QFrame::VLine ); mTopLayout->addWidget(mActionSep); */ // create button box QVBox *mButtonBox = new QVBox(this); QVBoxLayout *lay = (QVBoxLayout *)mButtonBox->layout(); lay->addStretch(1); mTopLayout->addWidget(mButtonBox); mSearch = new KPushButton(KGuiItem(i18n("&Find"), "find"), mButtonBox); mButtonBox->setSpacing((tabWidget->sizeHint().height() - 4 * mSearch->sizeHint().height()) / 4); connect(mSearch, SIGNAL(clicked()), this, SLOT(startSearch())); mStop = new KPushButton(KGuiItem(i18n("Stop"), "stop"), mButtonBox); connect(mStop, SIGNAL(clicked()), this, SLOT(stopSearch())); mSave = new KPushButton(KStdGuiItem::saveAs(), mButtonBox); connect(mSave, SIGNAL(clicked()), this, SLOT(saveResults())); KPushButton *mClose = new KPushButton(KStdGuiItem::close(), mButtonBox); connect(mClose, SIGNAL(clicked()), this, SIGNAL(destroyMe())); // react to search requests from widget connect(tabWidget, SIGNAL(startSearch()), this, SLOT(startSearch())); mSearch->setEnabled(true); // Enable "Search" mStop->setEnabled(false); // Disable "Stop" mSave->setEnabled(false); // Disable "Save..." dirlister = new KDirLister(); }
void PackageWidget::cacheReloadFinished() { QApt::PackageList packageList = m_backend->availablePackages(); QFuture<QList<QApt::Package*> > future = QtConcurrent::run(sortPackages, packageList); m_watcher->setFuture(future); m_proxyModel->setSourceModel(m_model); m_packageView->header()->setSectionResizeMode(0, QHeaderView::Stretch); startSearch(); }
void DocumentListModel::rescan() { stopSearch(); beginResetModel(); m_allDocumentInfos.clear(); m_currentDocumentInfos.clear(); endResetModel(); qApp->processEvents(); startSearch(); }
void CMainWindow::searchTxt() { QModelIndex idx = ui->treeHives->currentIndex(); if (!idx.isValid()) return; bool ok; QString s = QInputDialog::getText(this,tr("Registry Editor - Search"), tr("Search text"),QLineEdit::Normal,QString(),&ok); if (ok && !s.isEmpty()) emit startSearch(idx,s); }
void SearchManager::slotRootChecked(const LinkStatus * link, LinkChecker * checker) { kdDebug(23100) << "SearchManager::slotRootChecked:" << endl; kdDebug(23100) << link->absoluteUrl().url() << " -> " << LinkStatus::lastRedirection(&root_)->absoluteUrl().url() << endl; Q_ASSERT(checked_links_ == 0); Q_ASSERT(search_results_.size() == 0); ++checked_links_; //kdDebug(23100) << "++checked_links_: SearchManager::slotRootChecked" << endl; emit signalRootChecked(link, checker); if(search_mode_ != depth || depth_ > 0) { current_depth_ = 1; vector<LinkStatus*> no = children(LinkStatus::lastRedirection(&root_)); emit signalLinksToCheckTotalSteps(no.size()); vector< vector<LinkStatus*> > nivel; nivel.push_back(no); search_results_.push_back(nivel); if(search_results_.size() != 1) { kdDebug(23100) << "search_results_.size() != 1:" << endl; kdDebug(23100) << "size: " << search_results_.size() << endl; } Q_ASSERT(search_results_.size() == 1); if(no.size() > 0) { startSearch(); } else { kdDebug(23100) << "SearchManager::slotRootChecked#1" << endl; finnish(); } } else { Q_ASSERT(search_results_.size() == 0); kdDebug(23100) << "SearchManager::slotRootChecked#2" << endl; finnish(); } delete checker; checker = 0; }
void FmDriverListWidget::on_searchPanel_criteriaChanged( const QString &criteria ) { emit startSearch( criteria ); mSearchPanel->hide(); mLayout->removeItem( mSearchPanel ); // clear keywords in searchpanel without signal criteriaChanged triggered again mSearchPanel->setProgressive( false ); mSearchPanel->setCriteria( QString() ); mSearchPanel->setProgressive( true ); }
void OsmNominatimRunner::search( const QString &searchTerm ) { QString base = "http://nominatim.openstreetmap.org/search?"; QString query = "q=%1&format=xml&addressdetails=1&accept-language=%2"; QString url = QString(base + query).arg(searchTerm).arg(MarbleLocale::languageCode()); m_searchRequest.setUrl(QUrl(url)); m_searchRequest.setRawHeader("User-Agent", TinyWebBrowser::userAgent("Browser", "OsmNominatimRunner") ); // @todo FIXME Must currently be done in the main thread, see bug 257376 QTimer::singleShot( 0, this, SLOT( startSearch() ) ); }
/** Initializes the signal slot connections */ void CSearchDialog::initConnections() { // Search button is clicked bool ok = connect(m_searchOptionsArea->searchButton(), SIGNAL(clicked()), this, SLOT(startSearch())); Q_ASSERT(ok); // Return/Enter is pressed in the search text field ok = connect(m_searchOptionsArea, SIGNAL(sigStartSearch()), this, SLOT(startSearch()) ); Q_ASSERT(ok); ok = connect(m_closeButton, SIGNAL(clicked()), this, SLOT(closeButtonClicked())); Q_ASSERT(ok); connect(m_analyseButton, SIGNAL(clicked()), m_searchResultArea, SLOT(showAnalysis())); }
void FmFileView::initMainWidget() { QGraphicsLinearLayout *vLayout = new QGraphicsLinearLayout( this ); vLayout->setOrientation( Qt::Vertical ); mWidget = new FmFileBrowseWidget( this ); mWidget->setObjectName( "mainWidget" ); setStyle( FmFileBrowseWidget::ListStyle ); setSelectable( false ); vLayout->addItem( mWidget ); //set stretch factor to file browser widget, so that it could fully cover the client area. vLayout->setStretchFactor( mWidget, 1 ); setLayout( vLayout ); connect( mWidget, SIGNAL( startSearch( QString ) ), this, SLOT( startSearch( QString ) ) ); connect( mWidget, SIGNAL( setEmptyMenu( bool ) ), this, SLOT( on_mainWidget_setEmptyMenu( bool ) ) ); connect( mWidget, SIGNAL( setTitle( QString ) ), this, SLOT( on_mainWidget_setTitle( QString ) ) ); }
void MSNSearch::showEvent(QShowEvent *e) { MSNSearchBase::showEvent(e); if (m_wizard == NULL){ m_wizard = static_cast<QWizard*>(topLevelWidget()); connect(this, SIGNAL(goNext()), m_wizard, SLOT(goNext())); } if (m_result == NULL){ m_result = new MSNResult(m_wizard, m_client); connect(m_result, SIGNAL(search()), this, SLOT(startSearch())); m_wizard->addPage(m_result, i18n("MSN search results")); } textChanged(""); }
void SearchLineEdit::findPrev() { if ( m_id == -1 || m_searchType != Okular::Document::PreviousMatch ) return; if ( !m_changed ) { emit searchStarted(); m_searchRunning = true; m_document->continueSearch( m_id, m_searchType ); } else startSearch(); }
void JabberAdd::showEvent(QShowEvent *e) { JabberAddBase::showEvent(e); if (m_wizard == NULL){ m_wizard = static_cast<QWizard*>(topLevelWidget()); connect(this, SIGNAL(goNext()), m_wizard, SLOT(goNext())); } if (m_result == NULL){ m_result = new AddResult(m_client); connect(m_result, SIGNAL(finished()), this, SLOT(addResultFinished())); connect(m_result, SIGNAL(search()), this, SLOT(startSearch())); m_wizard->addPage(m_result, i18n("Add Jabber contact")); } currentChanged(NULL); }
MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI) { ui->setupUi(this); //load the designer file //setupIcons(); ui->radio_apps->setChecked(true); //always default to starting here ui->tool_stop->setVisible(false); //no search running initially ui->tool_configure->setVisible(false); //app search initially set livetime = new QTimer(this); livetime->setInterval(300); //1/3 second for live searches livetime->setSingleShot(true); workthread = new QThread(this); workthread->setObjectName("Lumina Search Process"); searcher = new Worker(); searcher->moveToThread(workthread); closeShort = new QShortcut(QKeySequence(tr("Esc")), this); //Setup the connections connect(livetime, SIGNAL(timeout()), this, SLOT(startSearch()) ); connect(this, SIGNAL(SearchTerm(QString, bool)), searcher, SLOT(StartSearch(QString, bool)) ); connect(searcher, SIGNAL(FoundItem(QString)), this, SLOT(foundSearchItem(QString)) ); connect(searcher, SIGNAL(SearchUpdate(QString)), this, SLOT(searchMessage(QString)) ); connect(searcher, SIGNAL(SearchDone()), this, SLOT(searchFinished()) ); connect(ui->tool_stop, SIGNAL(clicked()), this, SLOT(stopSearch()) ); connect(ui->push_done, SIGNAL(clicked()), this, SLOT(closeApplication()) ); connect(ui->push_launch, SIGNAL(clicked()), this, SLOT(LaunchItem()) ); connect(ui->line_search, SIGNAL(textEdited(QString)), this, SLOT(searchChanged()) ); connect(ui->line_search, SIGNAL(returnPressed()), this, SLOT(LaunchItem()) ); connect(ui->radio_apps, SIGNAL(toggled(bool)), this, SLOT(searchTypeChanged()) ); connect(ui->listWidget, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(LaunchItem(QListWidgetItem*)) ); connect(ui->listWidget, SIGNAL(itemActivated(QListWidgetItem*)), this, SLOT(LaunchItem(QListWidgetItem*)) ); connect(ui->tool_configure, SIGNAL(clicked()), this, SLOT(configureSearch()) ); connect(closeShort, SIGNAL(activated()), this, SLOT( close() ) ); //Setup the settings file QSettings::setPath(QSettings::NativeFormat, QSettings::UserScope, QDir::homePath()+"/.lumina"); settings = new QSettings("LuminaDE", "lumina-search",this); searcher->startDir = settings->value("StartSearchDir", QDir::homePath()).toString(); searcher->skipDirs = settings->value("SkipSearchDirs", QStringList()).toStringList(); updateDefaultStatusTip(); this->show(); workthread->start(); QTimer::singleShot(0,this, SLOT(setupIcons()) ); }