00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Tomeu Borras Riera * 00003 * tborras@conetxia.com * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00019 ***************************************************************************/ 00020 00021 #include <QFont> 00022 #include <QPainter> 00023 00024 #include "qlistviewitem1.h" 00025 00026 /* 00027 void QListViewItem1::paintCell(QPainter *p, const QColorGroup &cg, int c, int w, int b) { 00028 00029 QColorGroup g(cg); 00030 QFont forig(p->font()); 00031 QFont f(p->font()); 00032 f.setFamily(" Helvetica "); 00033 if (tipolista == 2) { 00034 g.setColor(QColorGroup::Text, QColor::QColor(0, 0, 100)); 00035 f.setWeight(QFont::Bold); 00036 f.setPointSize(10); 00037 } else if (tipolista < 7){ 00038 g.setColor(QColorGroup::Text, QColor::QColor(50, 50, 200)); 00039 f.setPointSize(10); 00040 } else { 00041 g.setColor(QColorGroup::Text, QColor::QColor(100, 100, 100)); 00042 f.setPointSize(9); 00043 } // end if 00044 p->setFont(f); 00045 00046 //Q3ListViewItem::paintCell(p, g, c, w, b); 00047 } 00048 00049 00050 void QListViewItem1::width(const QFontMetrics &fm, const Q3ListView *lv, int c) { 00051 //Q3ListViewItem::width(fm, lv, c); 00052 } // end width 00053 00054 */ 00055
1.5.1