MCPcopy Create free account
hub / github.com/OtterBrowser/otter-browser / ApplicationComboBoxWidget

Method ApplicationComboBoxWidget

src/ui/ApplicationComboBoxWidget.cpp:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28{
29
30ApplicationComboBoxWidget::ApplicationComboBoxWidget(QWidget *parent) : QComboBox(parent),
31 m_previousIndex(0),
32 m_alwaysShowDefaultApplication(false)
33{
34 addItem(tr("Default Application"));
35 insertSeparator(1);
36 addItem(tr("Other…"));
37
38 connect(this, static_cast<void(ApplicationComboBoxWidget::*)(int)>(&ApplicationComboBoxWidget::currentIndexChanged), this, &ApplicationComboBoxWidget::handleIndexChanged);
39}
40
41void ApplicationComboBoxWidget::changeEvent(QEvent *event)
42{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected