[Kstars-devel] branches/work/kdeedu_kstars_htm/kstars/kstars/skycomponents
James Bowlin
bowlin at mindspring.com
Mon Aug 6 21:15:22 CEST 2007
SVN commit 697097 by jbowlin:
Changed the LabelRun data container from a class to a struct.
Cast the results of m_fontMetrics.width("MMMMM") as an (int) to
prevent a compiler warning.
CCMAIL: kstars-devel at kde.org
M +8 -7 skylabeler.cpp
--- branches/work/kdeedu_kstars_htm/kstars/kstars/skycomponents/skylabeler.cpp #697096:697097
@@ -29,14 +29,15 @@
// A Little data container class
//---------------------------------------------------------------------------//
-class LabelRun {
- public:
- LabelRun(int s, int e) : start(s), end(e) {}
- int start;
- int end;
-};
+typedef struct LabelRun
+{
+ LabelRun(int s, int e) : start(s), end(e) {}
+ int start;
+ int end;
+} LabelRun;
+
//----- Now for the main event ----------------------------------------------//
//----- Static Methods ------------------------------------------------------//
@@ -146,7 +147,7 @@
SkyLabeler::setZoomFont( psky );
m_skyFont = psky.font( );
m_fontMetrics = QFontMetrics( m_skyFont );
- m_minDeltaX = m_fontMetrics.width("MMMMM");
+ m_minDeltaX = (int) m_fontMetrics.width("MMMMM");
// ----- Set up Zoom Dependent Offset -----
More information about the Kstars-devel
mailing list