Skip to content
Permalink
Browse files

Remove useless Refresh button from table properties

  • Loading branch information
nyalldawson committed Jan 13, 2020
1 parent 62efbeb commit e7e53f4e9622e501b61276530e2bab01a4efde3e
@@ -31,7 +31,7 @@ QgsLayoutManualTableWidget::QgsLayoutManualTableWidget( QgsLayoutFrame *frame )
, mFrame( frame )
{
setupUi( this );
connect( mRefreshPushButton, &QPushButton::clicked, this, &QgsLayoutManualTableWidget::mRefreshPushButton_clicked );

connect( mSetContentsButton, &QPushButton::clicked, this, &QgsLayoutManualTableWidget::setTableContents );
connect( mMarginSpinBox, static_cast < void ( QDoubleSpinBox::* )( double ) > ( &QDoubleSpinBox::valueChanged ), this, &QgsLayoutManualTableWidget::mMarginSpinBox_valueChanged );
connect( mGridStrokeWidthSpinBox, static_cast < void ( QDoubleSpinBox::* )( double ) > ( &QDoubleSpinBox::valueChanged ), this, &QgsLayoutManualTableWidget::mGridStrokeWidthSpinBox_valueChanged );
@@ -134,17 +134,6 @@ bool QgsLayoutManualTableWidget::setNewItem( QgsLayoutItem *item )
return true;
}


void QgsLayoutManualTableWidget::mRefreshPushButton_clicked()
{
if ( !mTable )
{
return;
}

mTable->refreshAttributes();
}

void QgsLayoutManualTableWidget::setTableContents()
{
if ( !mTable )
@@ -49,7 +49,7 @@ class QgsLayoutManualTableWidget: public QgsLayoutItemBaseWidget, private Ui::Qg
void blockAllSignals( bool b );

private slots:
void mRefreshPushButton_clicked();

void setTableContents();
void mMarginSpinBox_valueChanged( double d );
void mGridStrokeWidthSpinBox_valueChanged( double d );
@@ -76,16 +76,9 @@
</property>
<layout class="QGridLayout" name="gridLayout_4" columnstretch="0,0">
<item row="3" column="0" colspan="2">
<widget class="QPushButton" name="mRefreshPushButton">
<property name="text">
<string>Refresh Table Data</string>
</property>
</widget>
</item>
<item row="4" column="0" colspan="2">
<widget class="QPushButton" name="mSetContentsButton">
<property name="text">
<string>Table Contents…</string>
<string>Edit Table…</string>
</property>
</widget>
</item>
@@ -480,7 +473,6 @@
<tabstops>
<tabstop>scrollArea</tabstop>
<tabstop>groupBox</tabstop>
<tabstop>mRefreshPushButton</tabstop>
<tabstop>mSetContentsButton</tabstop>
<tabstop>groupBox_6</tabstop>
<tabstop>mDrawEmptyCheckBox</tabstop>

0 comments on commit e7e53f4

Please sign in to comment.
You can’t perform that action at this time.