summaryrefslogtreecommitdiffhomepage
path: root/tracker-tobii-eyex/tobii-eyex-dialog.cpp
blob: 6ab916be7d45614649a3945c6e73fd4944ff3072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "tobii-eyex-dialog.hpp"

tobii_eyex_dialog::tobii_eyex_dialog()
{
    ui.setupUi(this);

    connect(ui.buttonBox, &QDialogButtonBox::accepted, this, &tobii_eyex_dialog::do_ok);
    connect(ui.buttonBox, &QDialogButtonBox::rejected, this, &tobii_eyex_dialog::do_cancel);

    //tie_setting(s.mode, ui.tracking_mode);
}

void tobii_eyex_dialog::do_ok()
{
    s.b->save();
    close();
}

void tobii_eyex_dialog::do_cancel()
{
    close();
}