Remove unneeded variable
This commit is contained in:
parent
9e72e67ee7
commit
c9b2677bec
@ -11,9 +11,8 @@
|
|||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
|
||||||
CaptureAreaEditor::CaptureAreaEditor(const CommonModels &models,
|
CaptureAreaEditor::CaptureAreaEditor(const CommonModels &models,
|
||||||
CaptureAreaSelector &selector)
|
QWidget *parent)
|
||||||
: QWidget(&selector)
|
: QWidget(parent)
|
||||||
, selector_(selector)
|
|
||||||
, doTranslation_(new QCheckBox(tr("Translate:"), this))
|
, doTranslation_(new QCheckBox(tr("Translate:"), this))
|
||||||
, sourceLanguage_(new QComboBox(this))
|
, sourceLanguage_(new QComboBox(this))
|
||||||
, targetLanguage_(new QComboBox(this))
|
, targetLanguage_(new QComboBox(this))
|
||||||
|
@ -12,7 +12,7 @@ class CaptureAreaEditor : public QWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit CaptureAreaEditor(const CommonModels& models,
|
explicit CaptureAreaEditor(const CommonModels& models,
|
||||||
CaptureAreaSelector& selector);
|
QWidget* parent = nullptr);
|
||||||
~CaptureAreaEditor();
|
~CaptureAreaEditor();
|
||||||
|
|
||||||
void set(const CaptureArea& area);
|
void set(const CaptureArea& area);
|
||||||
@ -21,7 +21,6 @@ public:
|
|||||||
private:
|
private:
|
||||||
void swapLanguages();
|
void swapLanguages();
|
||||||
|
|
||||||
CaptureAreaSelector& selector_;
|
|
||||||
QCheckBox* doTranslation_;
|
QCheckBox* doTranslation_;
|
||||||
QComboBox* sourceLanguage_;
|
QComboBox* sourceLanguage_;
|
||||||
QComboBox* targetLanguage_;
|
QComboBox* targetLanguage_;
|
||||||
|
@ -17,7 +17,7 @@ CaptureAreaSelector::CaptureAreaSelector(Capturer &capturer,
|
|||||||
: capturer_(capturer)
|
: capturer_(capturer)
|
||||||
, settings_(settings)
|
, settings_(settings)
|
||||||
, pixmap_(pixmap)
|
, pixmap_(pixmap)
|
||||||
, editor_(std::make_unique<CaptureAreaEditor>(models, *this))
|
, editor_(std::make_unique<CaptureAreaEditor>(models, this))
|
||||||
{
|
{
|
||||||
setWindowFlags(Qt::FramelessWindowHint | Qt::NoDropShadowWindowHint |
|
setWindowFlags(Qt::FramelessWindowHint | Qt::NoDropShadowWindowHint |
|
||||||
Qt::WindowStaysOnTopHint | Qt::X11BypassWindowManagerHint);
|
Qt::WindowStaysOnTopHint | Qt::X11BypassWindowManagerHint);
|
||||||
|
Loading…
Reference in New Issue
Block a user