Skip to content
Snippets Groups Projects
  1. Sep 02, 2010
  2. Sep 01, 2010
  3. Aug 31, 2010
    • Thiago Macieira's avatar
      Remove one hack of the QTipLabel hack. · 7e48b8e5
      Thiago Macieira authored
      
      This code used two hacks: it created a class with
      metaObject()->className() == "QTipLabel" to fool the code in Qt into
      applying the style properly to this class.
      
      But it did that by creating a class called QTipLabel. This works as
      long as the class in Qt is hidden by symbol visibility. When symbol
      visibility is disabled (for whatever reason), then Creator simply
      crashes due to size mismatches and memory corruptions (virtual tables,
      etc.)
      
      This patch makes the class be called TextEditor::Internal::QTipLabel,
      but fools moc into thinking it isn't.
      
      A proper solution would be to simply override the meta object.
      
      Signed-off-by: default avatarLeandro Melo <leandro.melo@nokia.com>
      7e48b8e5
Loading