diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kicker/kicker/ui/popupmenutitle.h | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/kicker/ui/popupmenutitle.h')
-rw-r--r-- | kicker/kicker/ui/popupmenutitle.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kicker/kicker/ui/popupmenutitle.h b/kicker/kicker/ui/popupmenutitle.h index 4724c88c7..439fc195f 100644 --- a/kicker/kicker/ui/popupmenutitle.h +++ b/kicker/kicker/ui/popupmenutitle.h @@ -25,28 +25,28 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #ifndef POPUPMENUTITLE_H #define POPUPMENUTITLE_H -#include <qfont.h> -#include <qstring.h> -#include <qstyle.h> -#include <qpainter.h> -#include <qmenudata.h> +#include <tqfont.h> +#include <tqstring.h> +#include <tqstyle.h> +#include <tqpainter.h> +#include <tqmenudata.h> #include <kapplication.h> class PopupMenuTitle : public QCustomMenuItem { public: - PopupMenuTitle(const QString &name, const QFont &font); + PopupMenuTitle(const TQString &name, const TQFont &font); bool fullSpan () const { return true; } - void paint(QPainter* p, const QColorGroup& cg, + void paint(TQPainter* p, const TQColorGroup& cg, bool /* act */, bool /*enabled*/, int x, int y, int w, int h) { p->save(); - QRect r(x, y, w, h); - kapp->style().drawPrimitive(QStyle::PE_HeaderSection, + TQRect r(x, y, w, h); + kapp->style().drawPrimitive(TQStyle::PE_HeaderSection, p, r, cg); if (!m_desktopName.isEmpty()) @@ -63,23 +63,23 @@ public: p->restore(); } - void setFont(const QFont &font) + void setFont(const TQFont &font) { m_font = font; m_font.setBold(true); } - QSize sizeHint() + TQSize sizeHint() { - QSize size = QFontMetrics(m_font).size(AlignHCenter, m_desktopName); + TQSize size = TQFontMetrics(m_font).size(AlignHCenter, m_desktopName); size.setHeight(size.height() + - (kapp->style().pixelMetric(QStyle::PM_DefaultFrameWidth) * 2 + 1)); + (kapp->style().pixelMetric(TQStyle::PM_DefaultFrameWidth) * 2 + 1)); return size; } private: - QString m_desktopName; - QFont m_font; + TQString m_desktopName; + TQFont m_font; }; #endif |