~ubuntu-branches/ubuntu/lucid/kkbswitch/lucid

« back to all changes in this revision

Viewing changes to kkbswitch/boldlistboxitem.h

  • Committer: Bazaar Package Importer
  • Author(s): Lior Kaplan
  • Date: 2005-09-07 02:01:14 UTC
  • Revision ID: james.westby@ubuntu.com-20050907020114-2wyo9eu21uihq86n
Tags: upstream-1.4.3
ImportĀ upstreamĀ versionĀ 1.4.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          boldlistboxitem.h  -  description
 
3
                             -------------------
 
4
    begin                : Sun Oct 12 2003
 
5
    copyright            : (C) 2003 by Leonid Zeitlin
 
6
    email                : lz@europe.com
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
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.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef BOLDLISTBOXITEM_H
 
19
#define BOLDLISTBOXITEM_H
 
20
 
 
21
#include <qlistbox.h>
 
22
 
 
23
/**Listbox item that can optionally display its text in bold
 
24
  *@author Leonid Zeitlin
 
25
  */
 
26
 
 
27
class BoldListBoxItem : public QListBoxPixmap  {
 
28
private:
 
29
  bool m_bold;
 
30
protected:
 
31
  virtual void paint (QPainter *painter);
 
32
public: 
 
33
        BoldListBoxItem(QListBox *listbox, const QPixmap &pix, const QString &text,
 
34
          bool bold = false);
 
35
        ~BoldListBoxItem();
 
36
        bool bold() { return m_bold; }
 
37
        void setBold(bool bold) { m_bold = bold; }
 
38
};
 
39
 
 
40
#endif