diff options
Diffstat (limited to 'kkbswitch/boldmenuitem.h')
-rw-r--r-- | kkbswitch/boldmenuitem.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kkbswitch/boldmenuitem.h b/kkbswitch/boldmenuitem.h index 99ed2b9..bc87c95 100644 --- a/kkbswitch/boldmenuitem.h +++ b/kkbswitch/boldmenuitem.h @@ -18,35 +18,35 @@ #ifndef BOLDMENUITEM_H #define BOLDMENUITEM_H -#include <qmenudata.h> +#include <ntqmenudata.h> /**A custom menu item that can display its text in bold *@author Leonid Zeitlin * 02.09.2001: somehow I cannot make it work. The item looks ok when not * selected, but appears empty when selected. I have a suspicion that this * is a problem with some KDE styles (B3 in particular), the style doesn't - * paint custom menu items correctly. With some other styles, such as Qt built-in + * paint custom menu items correctly. With some other styles, such as TQt built-in * Windows style, everything works correctly. I suspend the work on this for the * time being... */ -class BoldMenuItem : public QCustomMenuItem { +class BoldMenuItem : public TQCustomMenuItem { private: - QString m_text; - QColor m_active_text_color; + TQString m_text; + TQColor m_active_text_color; bool m_bold; - QSize m_size; + TQSize m_size; public: - BoldMenuItem(const QString &text, const QColor &active_text_color, bool bold = false); + BoldMenuItem(const TQString &text, const TQColor &active_text_color, bool bold = false); ~BoldMenuItem(); - QString& text() { return m_text; }; - void setText(const QString& value) { m_text = value; }; + TQString& text() { return m_text; }; + void setText(const TQString& value) { m_text = value; }; bool bold() { return m_bold; }; void setBold(bool value) { m_bold = value; }; - virtual void paint(QPainter* painter, const QColorGroup& /*cg*/, + virtual void paint(TQPainter* painter, const TQColorGroup& /*cg*/, bool act, bool /*enabled*/, int x, int y, int w, int h); - virtual void setFont(const QFont& font); - virtual QSize sizeHint() { return m_size; }; + virtual void setFont(const TQFont& font); + virtual TQSize sizeHint() { return m_size; }; }; #endif |