diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kregexpeditor/myfontmetrics.cpp | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kregexpeditor/myfontmetrics.cpp')
-rw-r--r-- | kregexpeditor/myfontmetrics.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kregexpeditor/myfontmetrics.cpp b/kregexpeditor/myfontmetrics.cpp index cdf29b2..f405c69 100644 --- a/kregexpeditor/myfontmetrics.cpp +++ b/kregexpeditor/myfontmetrics.cpp @@ -17,15 +17,15 @@ **/ #include "myfontmetrics.h" -QSize HackCalculateFontSize(QFontMetrics fm, QString str ) +TQSize HackCalculateFontSize(TQFontMetrics fm, TQString str ) { - QStringList list = QStringList::split( QString::fromLatin1("\n"), str ); + TQStringList list = TQStringList::split( TQString::fromLatin1("\n"), str ); int maxWidth = 0; int height = 0; - for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) { - QSize size = fm.size( 0, *it ); + for ( TQStringList::Iterator it = list.begin(); it != list.end(); ++it ) { + TQSize size = fm.size( 0, *it ); maxWidth = QMAX( maxWidth, size.width() ); height += size.height(); } - return QSize( maxWidth, height ); + return TQSize( maxWidth, height ); } |