diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /libkdepim/csshelper.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim/csshelper.h')
-rw-r--r-- | libkdepim/csshelper.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/libkdepim/csshelper.h b/libkdepim/csshelper.h index 93b8fc8d8..87455cd13 100644 --- a/libkdepim/csshelper.h +++ b/libkdepim/csshelper.h @@ -32,9 +32,9 @@ #ifndef KPIM_CSSHELPER_H #define KPIM_CSSHELPER_H -#include <qcolor.h> -#include <qfont.h> -#include <qpaintdevicemetrics.h> +#include <tqcolor.h> +#include <tqfont.h> +#include <tqpaintdevicemetrics.h> class QString; @@ -46,26 +46,26 @@ class CSSHelper { default values. Sub-Classes should put their config loading here. */ - CSSHelper( const QPaintDeviceMetrics &pdm ); + CSSHelper( const TQPaintDeviceMetrics &pdm ); /** @return HTML head including style sheet definitions and the >body< tag */ - QString htmlHead( bool fixedFont = false ) const; + TQString htmlHead( bool fixedFont = false ) const; /** @return The collected CSS definitions as a string */ - QString cssDefinitions( bool fixedFont = false ) const; + TQString cssDefinitions( bool fixedFont = false ) const; /** @return a <div> start tag with embedded style information suitable for quoted text with quote level @p level */ - QString quoteFontTag( int level ) const; + TQString quoteFontTag( int level ) const; /** @return a <div> start tag with embedded style information suitable for non-quoted text */ - QString nonQuotedFontTag() const; + TQString nonQuotedFontTag() const; - QFont bodyFont( bool fixedFont = false, bool printing = false ) const; + TQFont bodyFont( bool fixedFont = false, bool printing = false ) const; - void setBodyFont( const QFont& font ); - void setPrintFont( const QFont& font ); + void setBodyFont( const TQFont& font ); + void setPrintFont( const TQFont& font ); protected: /** Recalculate PGP frame and body colors (should be called after changing @@ -73,34 +73,34 @@ class CSSHelper { void recalculatePGPColors(); protected: - QFont mBodyFont, mPrintFont, mFixedFont, mFixedPrintFont; - QFont mQuoteFont[3]; - QColor mQuoteColor[3]; + TQFont mBodyFont, mPrintFont, mFixedFont, mFixedPrintFont; + TQFont mQuoteFont[3]; + TQColor mQuoteColor[3]; bool mRecycleQuoteColors; bool mBackingPixmapOn; bool mShrinkQuotes; - QString mBackingPixmapStr; - QColor mForegroundColor, mLinkColor, mVisitedLinkColor, mBackgroundColor; + TQString mBackingPixmapStr; + TQColor mForegroundColor, mLinkColor, mVisitedLinkColor, mBackgroundColor; // colors for PGP (Frame, Header, Body) - QColor cPgpOk1F, cPgpOk1H, cPgpOk1B, + TQColor cPgpOk1F, cPgpOk1H, cPgpOk1B, cPgpOk0F, cPgpOk0H, cPgpOk0B, cPgpWarnF, cPgpWarnH, cPgpWarnB, cPgpErrF, cPgpErrH, cPgpErrB, cPgpEncrF, cPgpEncrH, cPgpEncrB; // color of frame of warning preceding the source of HTML messages - QColor cHtmlWarning; + TQColor cHtmlWarning; private: int fontSize( bool fixed, bool print = false ) const; // returns CSS rules specific to the print media type - QString printCssDefinitions( bool fixed ) const; + TQString printCssDefinitions( bool fixed ) const; // returns CSS rules specific to the screen media type - QString screenCssDefinitions( const CSSHelper * helper, bool fixed ) const; + TQString screenCssDefinitions( const CSSHelper * helper, bool fixed ) const; // returns CSS rules common to both screen and print media types - QString commonCssDefinitions() const; + TQString commonCssDefinitions() const; private: - const QPaintDeviceMetrics mMetrics; + const TQPaintDeviceMetrics mMetrics; }; |