1
/***************************************************************************
2
boldlistboxitem.h - description
4
begin : Sun Oct 12 2003
5
copyright : (C) 2003 by Leonid Zeitlin
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
18
#ifndef BOLDLISTBOXITEM_H
19
#define BOLDLISTBOXITEM_H
23
/**Listbox item that can optionally display its text in bold
24
*@author Leonid Zeitlin
27
class BoldListBoxItem : public QListBoxPixmap {
31
virtual void paint (QPainter *painter);
33
BoldListBoxItem(QListBox *listbox, const QPixmap &pix, const QString &text,
36
bool bold() { return m_bold; }
37
void setBold(bool bold) { m_bold = bold; }