Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #2259 from elpaso/hidpi-improvements4
Scale attribute table cells to content
  • Loading branch information
m-kuhn committed Aug 19, 2015
2 parents d5d7c58 + ff15e84 commit ddda7d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/gui/attributetable/qgsdualview.cpp
Expand Up @@ -85,6 +85,8 @@ void QgsDualView::init( QgsVectorLayer* layer, QgsMapCanvas* mapCanvas, const Qg
else
columnBoxInit();

mTableView->resizeColumnsToContents();

mFeatureList->setEditSelection( QgsFeatureIds() << mFeatureListModel->idxToFid( mFeatureListModel->index( 0, 0 ) ) );
}

Expand Down
6 changes: 3 additions & 3 deletions src/gui/attributetable/qgsdualview.h
Expand Up @@ -13,8 +13,8 @@
* *
***************************************************************************/

#ifndef QGSFEATURELIST_H
#define QGSFEATURELIST_H
#ifndef QGSDUALVIEW_H
#define QGSDUALVIEW_H

#include <QStackedWidget>

Expand Down Expand Up @@ -271,4 +271,4 @@ class GUI_EXPORT QgsAttributeTableMapLayerAction : public QAction
QModelIndex mFieldIdx;
};

#endif // QGSFEATURELIST_H
#endif // QGSDUALVIEW_H
4 changes: 2 additions & 2 deletions src/gui/attributetable/qgsfeaturelistview.h
Expand Up @@ -13,8 +13,8 @@
* *
***************************************************************************/

#ifndef QGSATTRIBUTELISTVIEW_H
#define QGSATTRIBUTELISTVIEW_H
#ifndef QGSFEATURELISTVIEW_H
#define QGSFEATURELISTVIEW_H

#include <QListView>
#include <qdebug.h>
Expand Down

0 comments on commit ddda7d4

Please sign in to comment.