Image: move to new style connect()

This commit is contained in:
wmayer
2023-01-13 16:03:16 +01:00
parent 2ff9ff02d7
commit 7d65afdf59
2 changed files with 7 additions and 7 deletions

View File

@@ -42,10 +42,10 @@ ImageOrientationDialog::ImageOrientationDialog()
ui->setupUi(this);
onPreview();
connect(ui->Reverse_checkBox, SIGNAL(clicked(bool)), this, SLOT(onPreview()));
connect(ui->XY_radioButton , SIGNAL(clicked(bool)), this, SLOT(onPreview()));
connect(ui->XZ_radioButton , SIGNAL(clicked(bool)), this, SLOT(onPreview()));
connect(ui->YZ_radioButton , SIGNAL(clicked(bool)), this, SLOT(onPreview()));
connect(ui->Reverse_checkBox, &QCheckBox::clicked, this, &ImageOrientationDialog::onPreview);
connect(ui->XY_radioButton , &QRadioButton::clicked, this, &ImageOrientationDialog::onPreview);
connect(ui->XZ_radioButton , &QRadioButton::clicked, this, &ImageOrientationDialog::onPreview);
connect(ui->YZ_radioButton , &QRadioButton::clicked, this, &ImageOrientationDialog::onPreview);
}
ImageOrientationDialog::~ImageOrientationDialog()

View File

@@ -92,7 +92,7 @@ ImageView::ImageView(QWidget* parent)
_invertZoom = hGrp->GetBool("InvertZoom", true);
// connect other slots
connect(_pGLImageBox, SIGNAL(drawGraphics()), this, SLOT(drawGraphics()));
connect(_pGLImageBox, &GLImageBox::drawGraphics, this, &ImageView::drawGraphics);
}
ImageView::~ImageView()
@@ -108,13 +108,13 @@ void ImageView::createActions()
_pFitAct->setText(tr("&Fit image"));
_pFitAct->setIcon(QPixmap(image_stretch));
_pFitAct->setStatusTip(tr("Stretch the image to fit the view"));
connect(_pFitAct, SIGNAL(triggered()), this, SLOT(fitImage()));
connect(_pFitAct, &QAction::triggered, this, &ImageView::fitImage);
_pOneToOneAct = new QAction(this);
_pOneToOneAct->setText(tr("&1:1 scale"));
_pOneToOneAct->setIcon(QPixmap(image_oneToOne));
_pOneToOneAct->setStatusTip(tr("Display the image at a 1:1 scale"));
connect(_pOneToOneAct, SIGNAL(triggered()), this, SLOT(oneToOneImage()));
connect(_pOneToOneAct, &QAction::triggered, this, &ImageView::oneToOneImage);
// Create the menus and add the actions
_pContextMenu = new QMenu(this);