mirror of
https://github.com/vale981/Taevitas
synced 2025-03-04 17:11:40 -05:00
Flippable
This commit is contained in:
parent
a36d125a84
commit
8bb4f2f7df
3 changed files with 17 additions and 0 deletions
|
@ -229,6 +229,13 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item alignment="Qt::AlignHCenter">
|
||||
<widget class="QCheckBox" name="flipPreview">
|
||||
<property name="text">
|
||||
<string>Flip Preview</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -259,6 +259,9 @@ void MainWindow::displayPreview( FlyCapture2::Image * last_capture ) {
|
|||
last_preview.convertFromImage( last_preview_image );
|
||||
ui->preview_widget->setPixmap( last_preview );
|
||||
|
||||
if ( ui->flipPreview->isChecked() )
|
||||
last_preview_image = last_preview_image.mirrored();
|
||||
|
||||
if ( resize ) {
|
||||
fit();
|
||||
resize = false;
|
||||
|
|
|
@ -58,6 +58,7 @@ public:
|
|||
QCheckBox *saveFrames;
|
||||
QPushButton *startButton;
|
||||
QPushButton *preview_button;
|
||||
QCheckBox *flipPreview;
|
||||
QGroupBox *groupBox_2;
|
||||
QVBoxLayout *verticalLayout_2;
|
||||
QLabel *statusLabel;
|
||||
|
@ -230,6 +231,11 @@ public:
|
|||
|
||||
verticalLayout_4->addWidget(preview_button);
|
||||
|
||||
flipPreview = new QCheckBox(recOptions);
|
||||
flipPreview->setObjectName(QStringLiteral("flipPreview"));
|
||||
|
||||
verticalLayout_4->addWidget(flipPreview, 0, Qt::AlignHCenter);
|
||||
|
||||
|
||||
verticalLayout->addWidget(recOptions);
|
||||
|
||||
|
@ -356,6 +362,7 @@ public:
|
|||
saveFrames->setText(QApplication::translate("MainWindow", " Save Frames", Q_NULLPTR));
|
||||
startButton->setText(QApplication::translate("MainWindow", "Start", Q_NULLPTR));
|
||||
preview_button->setText(QApplication::translate("MainWindow", "Preview Camera", Q_NULLPTR));
|
||||
flipPreview->setText(QApplication::translate("MainWindow", "Flip Preview", Q_NULLPTR));
|
||||
groupBox_2->setTitle(QApplication::translate("MainWindow", "Status", Q_NULLPTR));
|
||||
statusLabel->setText(QApplication::translate("MainWindow", "Waiting.", Q_NULLPTR));
|
||||
label_3->setText(QApplication::translate("MainWindow", "Frames", Q_NULLPTR));
|
||||
|
|
Loading…
Add table
Reference in a new issue