Skip to content
Permalink
Browse files
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 db84601f0fbf11a8cfc822aa098bd0793744b721
Showing with 17 additions and 1 deletion.
  1. +13 −1 src/gui/qgsattributedialog.cpp
  2. +4 −0 src/gui/qgsattributedialog.h
@@ -61,7 +61,7 @@ QgsAttributeDialog::QgsAttributeDialog(const std::vector<QgsFeatureAttribute>* a

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

}

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

0 comments on commit db84601

Please sign in to comment.