Skip to content

Commit

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

Untested on Windows at 0.9 unstable.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6976 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Jun 2, 2007
1 parent eb4cee1 commit be7b60f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/app/qgsattributedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ QgsAttributeDialog::QgsAttributeDialog(const QgsFieldMap& fields, const QgsAttri

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

}

QString QgsAttributeDialog::value(int row)
Expand Down Expand Up @@ -106,6 +106,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/app/qgsattributedialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,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 be7b60f

Please sign in to comment.