Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for ticket #630, thanks to patch from lubaby.
(attribute table drift on windows)


git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6975 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Jun 2, 2007
1 parent 425ec88 commit db84601
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/gui/qgsattributedialog.cpp
Expand Up @@ -61,7 +61,7 @@ QgsAttributeDialog::QgsAttributeDialog(const std::vector<QgsFeatureAttribute>* a

QgsAttributeDialog::~QgsAttributeDialog()
{
savePositionAndColumnWidth();

}

QString QgsAttributeDialog::value(int row)
Expand Down Expand Up @@ -105,6 +105,18 @@ void QgsAttributeDialog::savePositionAndColumnWidth()

}

void QgsAttributeDialog::resizeEvent(QResizeEvent *event)
{
savePositionAndColumnWidth();
QWidget::resizeEvent(event);
}

void QgsAttributeDialog::moveEvent(QMoveEvent *event)
{
savePositionAndColumnWidth();
QWidget::moveEvent(event);
}

void QgsAttributeDialog::restorePositionAndColumnWidth()
{
QSettings settings;
Expand Down
4 changes: 4 additions & 0 deletions src/gui/qgsattributedialog.h
Expand Up @@ -53,6 +53,10 @@ class QgsAttributeDialog: public QDialog, private Ui::QgsAttributeDialogBase

void restorePositionAndColumnWidth();

void resizeEvent(QResizeEvent *event);

void moveEvent(QMoveEvent *event);

public slots:
//! Slot to be called when an attribute value is edited in the table.
void setAttributeValueChanged(int row, int column);
Expand Down

0 comments on commit db84601

Please sign in to comment.