diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-20 20:47:19 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-20 11:40:01 +0000 |
commit | ab6f80909877f1e14de252c456dd2acd84c43974 (patch) | |
tree | 313139b1b1f7a155de4812cc23b25b597e6cc3fe /vcl/qa/cppunit | |
parent | e46baa9e04a7715f35b7a068dde6cbabc6dd4775 (diff) |
vcl: add more property functions to Font
Added increase and decrease quality functions to Font class, and
also charset mutator and accessor function.
See commit description in 8bfccd3a71d911b6d ("vcl: Create accessor
and mutator for font scaling in FontMetric") for reasoning behind
patch.
Unit test change in vcl/qa/cppunit/font.cxx:
- enhanced to check increase and decrease quality functions
Change-Id: I2f5970438f6ef1ad185163d5fdcec5bbc88912a4
Reviewed-on: https://gerrit.libreoffice.org/21622
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'vcl/qa/cppunit')
-rw-r--r-- | vcl/qa/cppunit/font.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/font.cxx b/vcl/qa/cppunit/font.cxx index f4fcf1892996..5649b329ba59 100644 --- a/vcl/qa/cppunit/font.cxx +++ b/vcl/qa/cppunit/font.cxx @@ -100,7 +100,13 @@ void VclFontTest::testQuality() CPPUNIT_ASSERT_EQUAL( (int)0, aFont.GetQuality() ); aFont.SetQuality( 100 ); - CPPUNIT_ASSERT_EQUAL( (int)100, aFont.GetQuality()); + CPPUNIT_ASSERT_EQUAL( (int)100, aFont.GetQuality() ); + + aFont.IncreaseQualityBy( 50 ); + CPPUNIT_ASSERT_EQUAL( (int)150, aFont.GetQuality() ); + + aFont.DecreaseQualityBy( 100 ); + CPPUNIT_ASSERT_EQUAL( (int)50, aFont.GetQuality() ); } |