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// Qt-Security score:significant reason:default
4
5#include "imagedialog.h"
6
7ImageDialog::ImageDialog(QWidget *parent)
8 : QDialog(parent)
9{
10 setupUi(this);
11
12 colorDepthCombo->addItem(tr("2 colors (1 bit per pixel)"));
13 colorDepthCombo->addItem(tr("4 colors (2 bits per pixel)"));
14 colorDepthCombo->addItem(tr("16 colors (4 bits per pixel)"));
15 colorDepthCombo->addItem(tr("256 colors (8 bits per pixel)"));
16 colorDepthCombo->addItem(tr("65536 colors (16 bits per pixel)"));
17 colorDepthCombo->addItem(tr("16 million colors (24 bits per pixel)"));
18
19 connect(okButton, &QAbstractButton::clicked, this, &QDialog::accept);
20 connect(cancelButton, &QAbstractButton::clicked, this, &QDialog::reject);
21}