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:
parent
4e86cb6f4d
commit
c809fd3f93
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user