Identify desktop crop controls for interaction checks
This commit is contained in:
1 parent
a9dfdf6ae6
commit
6438df8168
1 file changed
+2
@@ -61,9 +61,11 @@ private:
|
||||
bool selectAvatarCrop(const QString& source, QRectF& crop, QWidget* parent) {
|
||||
QDialog dialog(parent); dialog.setWindowTitle(QCoreApplication::translate("ChatGui", "Crop avatar")); dialog.resize(620,650);
|
||||
auto* layout = new QVBoxLayout(&dialog); auto* view = new CropView(&dialog); layout->addWidget(view, 1);
|
||||
view->setObjectName("avatarCropView");
|
||||
auto* status = new QLabel(QCoreApplication::translate("ChatGui", "Drag photo and use the wheel to select a square"), &dialog);
|
||||
layout->addWidget(status); auto* buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, &dialog);
|
||||
buttons->button(QDialogButtonBox::Ok)->setText(QCoreApplication::translate("ChatGui", "Upload avatar"));
|
||||
buttons->button(QDialogButtonBox::Ok)->setObjectName("avatarCropUpload");
|
||||
buttons->button(QDialogButtonBox::Ok)->setEnabled(false); layout->addWidget(buttons);
|
||||
QObject::connect(buttons, &QDialogButtonBox::accepted, &dialog, &QDialog::accept);
|
||||
QObject::connect(buttons, &QDialogButtonBox::rejected, &dialog, &QDialog::reject);
|
||||
|
||||
Reference in new issue
Block a user