QTfrontend/hats.cpp
changeset 1237 7f3105a15d5d
parent 1236 f9110fd03754
child 1238 914bd2a9a249
equal deleted inserted replaced
1236:f9110fd03754 1237:7f3105a15d5d
    14  * You should have received a copy of the GNU General Public License
    14  * You should have received a copy of the GNU General Public License
    15  * along with this program; if not, write to the Free Software
    15  * along with this program; if not, write to the Free Software
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
    17  */
    17  */
    18 
    18 
       
    19 #include "hats.h"
       
    20 
    19 HatsModel::HatsModel(QObject* parent) :
    21 HatsModel::HatsModel(QObject* parent) :
    20   QAbstractTableModel(parent)
    22   QAbstractTableModel(parent)
    21 {
    23 {
    22 
    24 
    23 }
    25 }
       
    26 
       
    27 QVariant HatsModel::headerData(int section,
       
    28             Qt::Orientation orientation, int role) const
       
    29 {
       
    30 	return QVariant();
       
    31 }
       
    32 
       
    33 int HatsModel::rowCount(const QModelIndex &parent) const
       
    34 {
       
    35 	if (parent.isValid())
       
    36 		return 0;
       
    37 	else
       
    38 		return 60;
       
    39 }
       
    40 
       
    41 int HatsModel::columnCount(const QModelIndex & parent) const
       
    42 {
       
    43 	if (parent.isValid())
       
    44 		return 0;
       
    45 	else
       
    46 		return 2;
       
    47 }