Add Qt5 dependency and create a test window
This commit is contained in:
parent
49f2c3d4cb
commit
ba37dfebf9
5 changed files with 59 additions and 3 deletions
10
main.cpp
10
main.cpp
|
@ -15,6 +15,8 @@
|
|||
* along with remarkable_tool. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "main_window.hpp"
|
||||
#include <QApplication>
|
||||
#include <iostream>
|
||||
#include <simdjson.h>
|
||||
#include <string_view>
|
||||
|
@ -195,9 +197,13 @@ std::vector<const NotebookInfo*> make_dele_list (const Node& tree) {
|
|||
}
|
||||
} //unnamed namespace
|
||||
|
||||
int main() {
|
||||
int main (int argc, char* argv[]) {
|
||||
using std::string_view;
|
||||
|
||||
QApplication app(argc, argv);
|
||||
duck::MainWindow win;
|
||||
win.show();
|
||||
|
||||
auto notebooks = build_notebook_infos(BASE_PATH);
|
||||
std::vector<Node> roots = to_tree(notebooks);
|
||||
std::vector<const NotebookInfo*> dele_list;
|
||||
|
@ -211,5 +217,5 @@ int main() {
|
|||
std::cout << "/home/root/.local/share/remarkable/xochitl/" << f << '\n';
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
return app.exec();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue