Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
imagedialog.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4#include "imagedialog.h"
5
6ImageDialog::ImageDialog(QWidget *parent)
7 : QDialog(parent)
8{
9 ui.setupUi(this);
10
11 ui.colorDepthCombo->addItem(tr("2 colors (1 bit per pixel)"));
12 ui.colorDepthCombo->addItem(tr("4 colors (2 bits per pixel)"));
13 ui.colorDepthCombo->addItem(tr("16 colors (4 bits per pixel)"));
14 ui.colorDepthCombo->addItem(tr("256 colors (8 bits per pixel)"));
15 ui.colorDepthCombo->addItem(tr("65536 colors (16 bits per pixel)"));
16 ui.colorDepthCombo->addItem(tr("16 million colors (24 bits per pixel)"));
17
18 connect(ui.okButton, &QAbstractButton::clicked, this, &QDialog::accept);
19 connect(ui.cancelButton, &QAbstractButton::clicked, this, &QDialog::reject);
20}