attribute table display classes

git-svn-id: http://svn.osgeo.org/qgis/trunk@145 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2002-11-23 23:58:02 +00:00
parent fed86dd728
commit d71bb9d7a5
2 changed files with 70 additions and 0 deletions

34
src/qgsattributetable.cpp Normal file
View File

@ -0,0 +1,34 @@
/***************************************************************************
qgsattributetable.cpp - description
-------------------
begin : Sat Nov 23 2002
copyright : (C) 2002 by Gary E.Sherman
email : sherman at mrcc dot com
Romans 3:23=>Romans 6:23=>Romans 5:8=>Romans 10:9,10=>Romans 12
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <qapplication.h>
#include <qcursor.h>
#include "qgsattributetable.h"
QgsAttributeTable::QgsAttributeTable(QWidget * parent, const char *name):QTable(parent, name)
{
}
QgsAttributeTable::~QgsAttributeTable()
{
}
void QgsAttributeTable::columnClicked(int col)
{
QApplication::setOverrideCursor(Qt::waitCursor);
sortColumn(col, true, true);
QApplication::restoreOverrideCursor();
}

36
src/qgsattributetable.h Normal file
View File

@ -0,0 +1,36 @@
/***************************************************************************
qgsattributetable.h - description
-------------------
begin : Sat Nov 23 2002
copyright : (C) 2002 by Gary E.Sherman
email : sherman at mrcc dot com
Romans 3:23=>Romans 6:23=>Romans 5:8=>Romans 10:9,10=>Romans 12
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSATTRIBUTETABLE_H
#define QGSATTRIBUTETABLE_H
#include <qtable.h>
/**
*@author Gary E.Sherman
*/
class QgsAttributeTable:public QTable
{
Q_OBJECT public:
QgsAttributeTable(QWidget * parent = 0, const char *name = 0);
~QgsAttributeTable();
public slots:void columnClicked(int col);
};
#endif