freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype-demos][master] [ftinspect] Change unclear commen


From: Charlie Jiang (@cqjjjzr)
Subject: [Git][freetype/freetype-demos][master] [ftinspect] Change unclear comments.
Date: Tue, 04 Oct 2022 00:29:50 +0000

Charlie Jiang pushed to branch master at FreeType / FreeType Demo Programs

Commits:

  • 9ac95b36
    by Charlie Jiang at 2022-10-04T00:17:08+08:00
    [ftinspect] Change unclear comments.
    
    * src/ftinspect/engine/fontinfo.hpp,
      src/ftinspect/glyphcomponents/glyphcontinuous.cpp: Clearify comments.
    
    * src/ftinspect/maingui.cpp: Actually the left widget does more than
      setting the margin, so the comment line about removing the left widget and
      layout is removed.
    

3 changed files:

Changes:

  • src/ftinspect/engine/fontinfo.hpp
    ... ... @@ -223,7 +223,7 @@ struct FontFixedSize
    223 223
       double xPpem;
    
    224 224
       double yPpem;
    
    225 225
     
    
    226
    -  // Returns that if the list is updated.  WL: ???
    
    226
    +  // Returns `true` when the list is actually updated.
    
    227 227
       // We use a callback because Qt needs `beginResetModel` to be called
    
    228 228
       // *before* the internal storage updates.
    
    229 229
       static bool get(Engine* engine,
    

  • src/ftinspect/glyphcomponents/glyphcontinuous.cpp
    ... ... @@ -205,7 +205,8 @@ GlyphContinuous::mouseMoveEvent(QMouseEvent* event)
    205 205
       {
    
    206 206
         positionDelta_ = prevPositionDelta_ + delta;
    
    207 207
         positionDelta_.setX(0); // Don't move horizontally.
    
    208
    -    // but use the renderer // WL: ???
    
    208
    +    // The string renderer will handle the horizontal delta. See below.
    
    209
    +    
    
    209 210
         // Note the double use of `scale_`: one for undoing `delta /= scale_`,
    
    210 211
         // the other one for effectively dividing the width by the scaling
    
    211 212
         // factor.
    

  • src/ftinspect/maingui.cpp
    ... ... @@ -267,7 +267,7 @@ MainGUI::createLayout()
    267 267
       // left side
    
    268 268
       settingPanel_ = new SettingPanel(this, engine_);
    
    269 269
     
    
    270
    -  leftLayout_ = new QVBoxLayout; // The only point is to set `margin->remove`?
    
    270
    +  leftLayout_ = new QVBoxLayout;
    
    271 271
       leftLayout_->addWidget(settingPanel_);
    
    272 272
       leftLayout_->setContentsMargins(32, 32, 0, 16);
    
    273 273
     
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]