1
0
mirror of https://github.com/altlinux/admc.git synced 2025-03-24 06:50:13 +03:00

AttributesTabEdit small fixes

This commit is contained in:
Semyon Knyazev 2024-12-12 23:55:03 +04:00
parent 4e86cb6f4d
commit c809fd3f93
2 changed files with 3 additions and 3 deletions

View File

@ -184,9 +184,9 @@ void AttributesTabEdit::copy_action(){
}
bool AttributesTabEdit::eventFilter(QObject *watched, QEvent *event){
if (watched == view && event->type() == 82){
if (watched == view && event->type() == QEvent::ContextMenu){
QMenu menu;
QAction* saveAction = menu.addAction("Копировать");
QAction* saveAction = menu.addAction(tr("Copy"));
connect(
saveAction, &QAction::triggered,
this, &AttributesTabEdit::copy_action);

View File

@ -90,7 +90,7 @@ private:
void edit_attribute();
void view_attribute();
void on_load_optional();
bool eventFilter(QObject *watched, QEvent *event);
bool eventFilter(QObject *watched, QEvent *event) override;
void copy_action();
void load_optional_attribute_values(AdInterface &ad);
void load_row(const QList<QStandardItem *> &row, const QString &attribute, const QList<QByteArray> &values);