summaryrefslogtreecommitdiffhomepage
path: root/proto-iokit-foohid/iokitprotocoldialog.cpp
blob: 443a30b67e6fe13832c4d20f15d4387dca832c2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Copyright (c) 2017, Eike Ziller                                               *
 *                                                                               *
 * Permission to use, copy, modify, and/or distribute this software for any      *
 * purpose with or without fee is hereby granted, provided that the above        *
 * copyright notice and this permission notice appear in all copies.             *
 */

#include "iokitprotocoldialog.h"

#include <QDialogButtonBox>
#include <QLabel>
#include <QVBoxLayout>

IOKitProtocolDialog::IOKitProtocolDialog()
{
    setLayout(new QVBoxLayout);
    layout()->addWidget(new QLabel(tr("No settings available.")));
    layout()->addItem(new QSpacerItem(0, 0, QSizePolicy::Ignored, QSizePolicy::Expanding));
    auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok);
    layout()->addWidget(buttonBox);
    connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
}

void IOKitProtocolDialog::register_protocol(IProtocol *)
{
}

void IOKitProtocolDialog::unregister_protocol()
{
}