Skip to content
Permalink
Browse files
Fix for ticket #630, thanks to patch from lubaby.
(attribute table drift on windows)

Untested on Windows at 0.9 unstable.


git-svn-id: http://svn.osgeo.org/qgis/trunk@6976 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Jun 2, 2007
1 parent 05131b1 commit 8cea3fefa6f26d26e19ef1bb47fc7f75d39bad27
Showing with 17 additions and 1 deletion.
  1. +13 −1 src/app/qgsattributedialog.cpp
  2. +4 −0 src/app/qgsattributedialog.h
@@ -62,7 +62,7 @@ QgsAttributeDialog::QgsAttributeDialog(const QgsFieldMap& fields, const QgsAttri

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

}

QString QgsAttributeDialog::value(int row)
@@ -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;
@@ -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);

0 comments on commit 8cea3fe

Please sign in to comment.