X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mainwindow.cpp;h=e14834502e216cac0ba61a9672f6a9dafbf223b0;hb=d23244e5582e7cbb453e23e0d4b5b1faa7605e87;hp=5432408c876820a2d17cb974d4c1164448beffc7;hpb=fa5f60c44f4f38ec85a08fe14032e473b17755ca;p=nageru diff --git a/mainwindow.cpp b/mainwindow.cpp index 5432408..e148345 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,7 +1,15 @@ #include "mainwindow.h" +#include "clip_list.h" #include "ui_mainwindow.h" +#include +#include + +#include + +using namespace std; + MainWindow *global_mainwindow = nullptr; MainWindow::MainWindow() @@ -9,4 +17,12 @@ MainWindow::MainWindow() { global_mainwindow = this; ui->setupUi(this); + + ClipList *clips = new ClipList; + ui->clip_list->setModel(clips); + + QShortcut *shortcut = new QShortcut(QKeySequence(Qt::Key_Q), this); + connect(shortcut, &QShortcut::activated, [clips]{ + clips->add_clip(12345); + }); }