UI: ZonesWindow: Add "Menu" button

This commit is contained in:
Nodir Temirkhodjaev 2023-12-20 12:55:25 +03:00
parent bafbd9926b
commit fbc2d818da
2 changed files with 5 additions and 0 deletions

View File

@ -381,9 +381,13 @@ QLayout *ZonesWindow::setupHeader()
}
});
// Menu button
m_btMenu = windowManager()->createMenuButton();
layout->addWidget(m_btEdit);
layout->addWidget(m_btSaveAsText);
layout->addStretch();
layout->addWidget(m_btMenu);
return layout;
}

View File

@ -94,6 +94,7 @@ private:
QAction *m_actEditZone = nullptr;
QAction *m_actRemoveZone = nullptr;
QPushButton *m_btSaveAsText = nullptr;
QPushButton *m_btMenu = nullptr;
QLabel *m_labelZoneName = nullptr;
QLineEdit *m_editZoneName = nullptr;
QLabel *m_labelSource = nullptr;