mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
attribute table display classes
git-svn-id: http://svn.osgeo.org/qgis/trunk@145 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
fed86dd728
commit
d71bb9d7a5
34
src/qgsattributetable.cpp
Normal file
34
src/qgsattributetable.cpp
Normal 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
36
src/qgsattributetable.h
Normal 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
|
Loading…
x
Reference in New Issue
Block a user