1 #include "mainwindow.h"
4 #include "ui_mainwindow.h"
13 MainWindow *global_mainwindow = nullptr;
15 MainWindow::MainWindow()
16 : ui(new Ui::MainWindow)
18 global_mainwindow = this;
21 ClipList *clips = new ClipList;
22 ui->clip_list->setModel(clips);
24 QShortcut *shortcut = new QShortcut(QKeySequence(Qt::Key_Q), this);
25 connect(shortcut, &QShortcut::activated, [clips]{
26 clips->add_clip(12345);