KKBSwitch – keyboard layout indicator
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

boldlistboxitem.h 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. * This program is free software; you can redistribute it and/or modify *
  11. * it under the terms of the GNU General Public License as published by *
  12. * the Free Software Foundation; either version 2 of the License, or *
  13. * (at your option) any later version. *
  14. * *
  15. ***************************************************************************/
  16. #ifndef BOLDLISTBOXITEM_H
  17. #define BOLDLISTBOXITEM_H
  18. #include <ntqlistbox.h>
  19. /**Listbox item that can optionally display its text in bold
  20. *@author Leonid Zeitlin
  21. */
  22. class BoldListBoxItem : public TQListBoxPixmap {
  23. private:
  24. bool m_bold;
  25. protected:
  26. virtual void paint (TQPainter *painter);
  27. public:
  28. BoldListBoxItem(TQListBox *listbox, const TQPixmap &pix, const TQString &text,
  29. bool bold = false);
  30. ~BoldListBoxItem();
  31. bool bold() { return m_bold; }
  32. void setBold(bool bold) { m_bold = bold; }
  33. };
  34. #endif