diff --git a/src/app/qgsattributetabledialog.cpp b/src/app/qgsattributetabledialog.cpp index f40c1cd46a4..2caed7e6560 100644 --- a/src/app/qgsattributetabledialog.cpp +++ b/src/app/qgsattributetabledialog.cpp @@ -187,6 +187,14 @@ QgsAttributeTableDialog::QgsAttributeTableDialog( QgsVectorLayer *layer, QgsAttr mActionVisibleFilter->setIcon( filterIcon ); mActionEditedFilter->setIcon( filterIcon ); + mActionFeatureActions = new QToolButton(); + mActionFeatureActions->setAutoRaise( false ); + mActionFeatureActions->setPopupMode( QToolButton::InstantPopup ); + mActionFeatureActions->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mAction.svg" ) ) ); + mActionFeatureActions->setText( tr( "Actions" ) ); + mActionFeatureActions->setToolTip( tr( "Actions" ) ); + mToolbar->addWidget( mActionFeatureActions ); + // Connect filter signals connect( mActionAdvancedFilter, &QAction::triggered, this, &QgsAttributeTableDialog::filterExpressionBuilder ); connect( mActionShowAllFilter, &QAction::triggered, this, &QgsAttributeTableDialog::filterShowAll ); diff --git a/src/app/qgsattributetabledialog.h b/src/app/qgsattributetabledialog.h index 189dc2a4d6b..c2b0ab3de86 100644 --- a/src/app/qgsattributetabledialog.h +++ b/src/app/qgsattributetabledialog.h @@ -228,6 +228,7 @@ class APP_EXPORT QgsAttributeTableDialog : public QDialog, private Ui::QgsAttrib private: QMenu *mMenuActions = nullptr; + QToolButton *mActionFeatureActions = nullptr; QgsDockWidget *mDock = nullptr; QgsDistanceArea *myDa = nullptr; diff --git a/src/ui/qgsattributetabledialog.ui b/src/ui/qgsattributetabledialog.ui index 29aeb18ab0a..98b0812efec 100644 --- a/src/ui/qgsattributetabledialog.ui +++ b/src/ui/qgsattributetabledialog.ui @@ -29,6 +29,77 @@ 3 + + + + -1 + + + + + + + + 3 + + + 3 + + + 1 + + + 0 + + + 3 + + + + + + + + + 0 + 0 + + + + = + + + + + + + + 0 + 0 + + + + Qt::StrongFocus + + + + + + + Update All + + + + + + + Update Selected + + + + + + @@ -189,78 +260,6 @@ - - - - - - - -1 - - - - - - - - 3 - - - 3 - - - 1 - - - 0 - - - 3 - - - - - - - - - 0 - 0 - - - - = - - - - - - - - 0 - 0 - - - - Qt::StrongFocus - - - - - - - Update All - - - - - - - Update Selected - - - - @@ -634,15 +633,6 @@ Conditional formatting - - - - :/images/themes/default/mAction.svg:/images/themes/default/mAction.svg - - - Actions - - @@ -681,6 +671,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +