Skip to content

Commit

Permalink
Reverts commits 8003a86 and 578b115
Browse files Browse the repository at this point in the history
These were somehow of a hack and complicates the widget handling with columns addition
  • Loading branch information
DelazJ committed May 11, 2024
1 parent a634dbc commit 7b53a5e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
16 changes: 0 additions & 16 deletions src/app/qgsdxfexportdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -726,26 +726,10 @@ void QgsVectorLayerAndAttributeModel::enableDataDefinedBlocks( bool enabled )
emit dataChanged( index( 0, 0 ), index( rowCount() - 1, 0 ) );
}

QgsDxfExportLayerTreeView::QgsDxfExportLayerTreeView( QWidget *parent )
: QgsLayerTreeView( parent )
{
}

void QgsDxfExportLayerTreeView::resizeEvent( QResizeEvent *event )
{
header()->setMinimumSectionSize( viewport()->width() / 4 );
header()->setMaximumSectionSize( viewport()->width() / 4 );
QTreeView::resizeEvent( event ); // NOLINT(bugprone-parent-virtual-call) clazy:exclude=skipped-base-method
}

QgsDxfExportDialog::QgsDxfExportDialog( QWidget *parent, Qt::WindowFlags f )
: QDialog( parent, f )
{
setupUi( this );

mTreeView = new QgsDxfExportLayerTreeView( this );
mTreeViewContainer->layout()->addWidget( mTreeView );

QgsGui::enableAutoGeometryRestore( this );

connect( mVisibilityPresets, static_cast<void ( QComboBox::* )( int )>( &QComboBox::currentIndexChanged ), this, &QgsDxfExportDialog::mVisibilityPresets_currentIndexChanged );
Expand Down
10 changes: 0 additions & 10 deletions src/app/qgsdxfexportdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,6 @@ class QgsVectorLayerAndAttributeModel : public QgsLayerTreeModel
void enableDataDefinedBlocks( bool enabled );
};

class QgsDxfExportLayerTreeView : public QgsLayerTreeView
{
Q_OBJECT
public:
explicit QgsDxfExportLayerTreeView( QWidget *parent = nullptr );

protected:
void resizeEvent( QResizeEvent *event ) override;
};

class QgsDxfExportDialog : public QDialog, private Ui::QgsDxfExportDialogBase
{
Expand Down Expand Up @@ -147,7 +138,6 @@ class QgsDxfExportDialog : public QDialog, private Ui::QgsDxfExportDialogBase
QgsLayerTree *mLayerTreeGroup = nullptr;
FieldSelectorDelegate *mFieldSelectorDelegate = nullptr;
QgsVectorLayerAndAttributeModel *mModel = nullptr;
QgsDxfExportLayerTreeView *mTreeView = nullptr;
QgsMessageBar *mMessageBar = nullptr;

QgsCoordinateReferenceSystem mCRS;
Expand Down

0 comments on commit 7b53a5e

Please sign in to comment.