File indexing completed on 2024-04-28 07:51:49

0001 /***************************************************************************
0002  *   Copyright (C) 2008 by Albert Astals Cid <aacid@kde.org>               *
0003  *                                                                         *
0004  *   This program is free software; you can redistribute it and/or modify  *
0005  *   it under the terms of the GNU General Public License as published by  *
0006  *   the Free Software Foundation; either version 2 of the License, or     *
0007  *   (at your option) any later version.                                   *
0008  ***************************************************************************/
0009 
0010 #include "row.h"
0011 
0012 Row::Row(Type type, const QString &text, int scoreRow, Flags flags)
0013 {
0014     m_type = type;
0015     m_text = text;
0016     m_scoreRow = scoreRow;
0017     m_flags = flags;
0018 }
0019 
0020 Row::Type Row::type() const
0021 {
0022     return m_type;
0023 }
0024 
0025 QString Row::text() const
0026 {
0027     return m_text;
0028 }
0029 
0030 int Row::scoreRow() const
0031 {
0032     if (m_type == ScoreRow) return m_scoreRow;
0033     else return -1;
0034 }
0035 
0036 Row::Flags Row::flags() const
0037 {
0038     return m_flags;
0039 }