Warning, file /plasma/plasma-activities/tests/slc-interface/main.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2015 Ivan Cukic <ivan.cukic(at)kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "window.h" 0008 #include <QApplication> 0009 0010 int main(int argc, char *argv[]) 0011 { 0012 QApplication app(argc, argv); 0013 0014 Window w; 0015 w.show(); 0016 0017 // ResultSet results(UsedResources | Agent{"gvim"}); 0018 // 0019 // int count = 20; 0020 // for (const auto& result: results) { 0021 // qDebug() << "Result:" << result.title << result.resource; 0022 // if (count -- == 0) break; 0023 // } 0024 // 0025 // ResultModel model(UsedResources | Agent{"gvim"}); 0026 // model.setItemCountLimit(50); 0027 // 0028 // QListView view; 0029 // view.setModel(&model); 0030 // 0031 // view.show(); 0032 0033 return app.exec(); 0034 }