[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/nepomuk-kde/nepomuksearchgui/gui
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2010-11-21 18:46:31
Message-ID: 20101121184631.D3193AC8A0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1199374 by trueg:
Use a sane base query
M +1 -5 CMakeLists.txt
M +3 -5 mainwindow.cpp
--- trunk/playground/base/nepomuk-kde/nepomuksearchgui/gui/CMakeLists.txt #1199373:1199374
@@ -16,16 +16,12 @@
kde4_add_executable(nepomuksearchguiapp ${nepomuksearchguiapp_SRCS})
target_link_libraries(nepomuksearchguiapp
- nepomuksearchgui
- nepomukextras
- soprano
- sopranoclient
${QT_QTCORE_LIBRARY}
${KDE4_KIO_LIBS}
${SOPRANO_LIBRARIES}
- ${SOPRANO_CLIENT_LIBRARIES}
${NEPOMUK_LIBRARIES}
${NEPOMUK_QUERY_LIBRARIES}
+ nepomukutils
)
install(TARGETS nepomuksearchguiapp DESTINATION ${BIN_INSTALL_DIR})
--- trunk/playground/base/nepomuk-kde/nepomuksearchgui/gui/mainwindow.cpp #1199373:1199374
@@ -43,13 +43,11 @@
fileMenu->addAction(tr("&Quit"), this, SLOT(close()));
Nepomuk::Utils::SearchWidget *widget = new Nepomuk::Utils::SearchWidget();
- Nepomuk::Query::ResourceTypeTerm coreTerm(Soprano::Vocabulary::NAO::Tag());
-
connect(widget, SIGNAL(selectionChanged()), this, SLOT(selectionChanged()));
widget->setSelectionMode(QAbstractItemView::ContiguousSelection);
- Nepomuk::Query::Query query(coreTerm);
- query.setLimit(100);
- widget->setQuery(query);
+ Nepomuk::Query::Query query;
+ query.setLimit(10);
+ widget->setBaseQuery(query);
setCentralWidget(widget);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic