9 #ifndef UI_PQLIGHTTOOLBAR_H 10 #define UI_PQLIGHTTOOLBAR_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QToolBar> 26 if (lightToolbar->objectName().isEmpty())
27 lightToolbar->setObjectName(QString::fromUtf8(
"lightToolbar"));
28 lightToolbar->setEnabled(
true);
29 lightToolbar->setOrientation(Qt::Horizontal);
30 actionActiveLightKit =
new QAction(lightToolbar);
31 actionActiveLightKit->setObjectName(QString::fromUtf8(
"actionActiveLightKit"));
32 actionActiveLightKit->setCheckable(
true);
33 actionActiveLightKit->setEnabled(
true);
34 const QIcon icon = QIcon(QString::fromUtf8(
":/pqWidgets/Icons/pqLightOn.svg"));
35 actionActiveLightKit->setIcon(icon);
37 lightToolbar->addAction(actionActiveLightKit);
41 QMetaObject::connectSlotsByName(lightToolbar);
46 lightToolbar->setWindowTitle(QCoreApplication::translate(
"pqLightToolbar",
"Light controls",
nullptr));
47 actionActiveLightKit->setText(QCoreApplication::translate(
"pqLightToolbar",
"Enable/Disable Light Kit",
nullptr));
58 #endif // UI_PQLIGHTTOOLBAR_H