Add bayer mask icons
This commit is contained in:
+4
-4
@@ -182,10 +182,10 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
|
|||||||
QAction *grbgAction = bayerActionGroup->addAction(tr("GRBG"));//1 0
|
QAction *grbgAction = bayerActionGroup->addAction(tr("GRBG"));//1 0
|
||||||
QAction *gbrgAction = bayerActionGroup->addAction(tr("GBRG"));//0 1
|
QAction *gbrgAction = bayerActionGroup->addAction(tr("GBRG"));//0 1
|
||||||
QAction *bggrAction = bayerActionGroup->addAction(tr("BGGR"));//1 1
|
QAction *bggrAction = bayerActionGroup->addAction(tr("BGGR"));//1 1
|
||||||
rggbAction->setCheckable(true); rggbAction->setData(0);
|
rggbAction->setCheckable(true); rggbAction->setData(0); rggbAction->setIcon(QIcon(":/bayer.png"));
|
||||||
grbgAction->setCheckable(true); grbgAction->setData(1);
|
grbgAction->setCheckable(true); grbgAction->setData(1); grbgAction->setIcon(QIcon(":/grbg.png"));
|
||||||
gbrgAction->setCheckable(true); gbrgAction->setData(2);
|
gbrgAction->setCheckable(true); gbrgAction->setData(2); gbrgAction->setIcon(QIcon(":/gbrg.png"));
|
||||||
bggrAction->setCheckable(true); bggrAction->setData(3);
|
bggrAction->setCheckable(true); bggrAction->setData(3); bggrAction->setIcon(QIcon(":/bggr.png"));
|
||||||
bayerMenu->addActions({rggbAction, grbgAction, gbrgAction, bggrAction});
|
bayerMenu->addActions({rggbAction, grbgAction, gbrgAction, bggrAction});
|
||||||
viewMenu->addMenu(bayerMenu);
|
viewMenu->addMenu(bayerMenu);
|
||||||
connect(bayerActionGroup, &QActionGroup::triggered, [this](QAction *action){
|
connect(bayerActionGroup, &QActionGroup::triggered, [this](QAction *action){
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 380 B After Width: | Height: | Size: 122 B |
Binary file not shown.
|
After Width: | Height: | Size: 316 B |
Binary file not shown.
|
After Width: | Height: | Size: 316 B |
Binary file not shown.
|
After Width: | Height: | Size: 316 B |
@@ -13,6 +13,9 @@
|
|||||||
<file>../translations/tenmon_fr.qm</file>
|
<file>../translations/tenmon_fr.qm</file>
|
||||||
<file>falsecolor.png</file>
|
<file>falsecolor.png</file>
|
||||||
<file>link.png</file>
|
<file>link.png</file>
|
||||||
|
<file>bggr.png</file>
|
||||||
|
<file>grbg.png</file>
|
||||||
|
<file>gbrg.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource lang="en" prefix="/">
|
<qresource lang="en" prefix="/">
|
||||||
<file alias="help">../about/help_en</file>
|
<file alias="help">../about/help_en</file>
|
||||||
|
|||||||
Reference in New Issue
Block a user